Bash 5.0 has just been released[1], and I thought I'd try and update the 
port. I'm having problems getting the `seq` builtin to compile.
I've attached the (truncated) log, but the gist of it is this:

In file included from seq.c:32:
In file included from ../../bashintl.h:30:
../../include/gettext.h:27:11: fatal error: 'libintl.h' file not found
# include <libintl.h>

This happens whether or not the Makefile.in patch is applied.
Also attached is the cvs diff of my progress. I've disabled the
PATCHFILES section since there are none available.

[1] https://lists.gnu.org/archive/html/bug-bash/2019-01/msg00063.html
-- 
Stephen Gregoratto
===>  Building for bash-5.0

          ***********************************************************
          *                                                         *
          * GNU bash, version 5.0.0(1)-release (x86_64-unknown-openbsd6.4)
          *                                                         *
          ***********************************************************

cd /usr/ports/pobj/bash-5.0/bash-5.0/examples/loadables && make   
mkdir_p=mkdir\ -p\ -- 
SHARED_LIBS_LOG=/usr/ports/pobj/bash-5.0/bash-5.0/shared_libs.log 
LIBTOOL=/usr/bin/libtool  all
cc -fPIC -DHAVE_CONFIG_H -DSHELL -DDEV_FD_STAT_BROKEN -O2 -pipe 
-Wno-parentheses -Wno-format-security -I. -I.. -I../.. -I../../lib 
-I../../builtins -I.  -I../../include -I/usr/ports/pobj/bash-5.0/bash-5.0 
-I/usr/ports/pobj/bash-5.0/bash-5.0/lib  
-I/usr/ports/pobj/bash-5.0/bash-5.0/builtins  -c -o seq.o seq.c
In file included from seq.c:32:
In file included from ../../bashintl.h:30:
../../include/gettext.h:27:11: fatal error: 'libintl.h' file not found
# include <libintl.h>
          ^~~~~~~~~~~
1 error generated.
*** Error 1 in examples/loadables (Makefile:100 'seq.o')
*** Error 1 in /usr/ports/pobj/bash-5.0/bash-5.0 (Makefile:785 'loadables')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2797 
'/usr/ports/pobj/bash-5.0/.build_done')
*** Error 1 in /usr/ports/shells/bash 
(/usr/ports/infrastructure/mk/bsd.port.mk:2465 'build')
Index: Makefile
===================================================================
RCS file: /cvs/ports/shells/bash/Makefile,v
retrieving revision 1.108
diff -u -p -r1.108 Makefile
--- Makefile    7 Sep 2018 21:11:14 -0000       1.108
+++ Makefile    8 Jan 2019 07:05:04 -0000
@@ -2,8 +2,8 @@
 
 COMMENT=       GNU Bourne Again Shell
 
-DISTNAME=      bash-4.4.18
-PKGNAME=       bash-4.4.23
+DISTNAME=      bash-5.0
+PKGNAME=       bash-5.0
 CATEGORIES=    shells
 HOMEPAGE=      https://www.gnu.org/software/bash/
 
@@ -13,11 +13,11 @@ MAINTAINER= Christian Weisgerber <naddy@
 PERMIT_PACKAGE_CDROM=  Yes
 
 MASTER_SITES=  ${MASTER_SITE_GNU:=bash/}
-MASTER_SITES0= ${MASTER_SITE_GNU:=bash/bash-4.4-patches/}
+MASTER_SITES0= ${MASTER_SITE_GNU:=bash/bash-5.0-patches/}
 DIST_SUBDIR=   bash
-.for i in 19 20 21 22 23
-PATCHFILES+=   bash44-0$i:0
-.endfor
+#.for i in 19 20 21 22 23
+#PATCHFILES+=  bash50-0$i:0
+#.endfor
 
 LIB_DEPENDS=   devel/gettext
 WANTLIB=       c curses iconv intl
Index: distinfo
===================================================================
RCS file: /cvs/ports/shells/bash/distinfo,v
retrieving revision 1.64
diff -u -p -r1.64 distinfo
--- distinfo    3 Jun 2018 20:41:59 -0000       1.64
+++ distinfo    8 Jan 2019 07:05:04 -0000
@@ -1,12 +1,2 @@
-SHA256 (bash/bash-4.4.18.tar.gz) = YE2e7F5O1f0hgO5E3XVt3KkuC2qkIXu6srYic4AxfyM=
-SHA256 (bash/bash44-019) = JxcNbt/ogZg1QH/cCLQB0uFhsUAP6dDFMXpREEyJwR4=
-SHA256 (bash/bash44-020) = GEDiy/JrqCKRNmL3QDdZTtViNhSFOQxSgTs4FWyZUiw=
-SHA256 (bash/bash44-021) = vY9ZBUp2PsHGQXmtXLYH9VhwijF8K9siuBTj2kVjdME=
-SHA256 (bash/bash44-022) = RTMfCTbjarkb/kS5NuM+2KGxhI+oluih0PLvdPKXy3k=
-SHA256 (bash/bash44-023) = T+wjbz+9PQxHuJP9+pEiFCpHT272bCD/tsD0hk3VkbY=
-SIZE (bash/bash-4.4.18.tar.gz) = 9463662
-SIZE (bash/bash44-019) = 1671
-SIZE (bash/bash44-020) = 5156
-SIZE (bash/bash44-021) = 1810
-SIZE (bash/bash44-022) = 1818
-SIZE (bash/bash44-023) = 1557
+SHA256 (bash/bash-5.0.tar.gz) = tKgPKsZhcLKRPvv7nyWU8fdsexr9EfeZ4iA11jB3+00=
+SIZE (bash/bash-5.0.tar.gz) = 10135110
Index: patches/patch-configure
===================================================================
RCS file: /cvs/ports/shells/bash/patches/patch-configure,v
retrieving revision 1.5
diff -u -p -r1.5 patch-configure
--- patches/patch-configure     25 Sep 2017 09:16:13 -0000      1.5
+++ patches/patch-configure     8 Jan 2019 07:05:04 -0000
@@ -3,11 +3,11 @@ $OpenBSD: patch-configure,v 1.5 2017/09/
 Index: configure
 --- configure.orig
 +++ configure
-@@ -10265,8 +10265,7 @@ else
+@@ -10327,8 +10327,7 @@ else
  int
  main ()
  {
--int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
+-long double r; char *foo, bar; r = strtold(foo, &bar);
 -  ;
 +  long double r; char *foo, bar; r = strtold(foo, &bar);
    return 0;

Reply via email to