1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
6 VARIANTS= standard static
7 SDESC[standard]= GNU Bourne Again SHell
8 SDESC[static]= Static GNU Bourne Again SHell
9 HOMEPAGE= http://www.gnu.org/software/bash/bash.html
12 DOWNLOAD_GROUPS= main patches
14 SITES[patches]= GNU/bash/bash-5.1-patches
15 DISTFILE[1]= bash-5.1.tar.gz:main
16 DISTFILE[2]= bash51-001:patches
17 DISTFILE[3]= bash51-002:patches
18 DISTFILE[4]= bash51-003:patches
19 DISTFILE[5]= bash51-004:patches
20 DISTFILE[6]= bash51-005:patches
21 DISTFILE[7]= bash51-006:patches
22 DISTFILE[8]= bash51-007:patches
23 DISTFILE[9]= bash51-008:patches
24 DISTFILE[10]= bash51-009:patches
25 DISTFILE[11]= bash51-010:patches
26 DISTFILE[12]= bash51-011:patches
27 DISTFILE[13]= bash51-012:patches
28 DISTFILE[14]= bash51-013:patches
29 DISTFILE[15]= bash51-014:patches
30 DISTFILE[16]= bash51-015:patches
31 DISTFILE[17]= bash51-016:patches
34 SPKGS[standard]= complete
38 SPKGS[static]= primary
40 OPTIONS_AVAILABLE= STATIC NLS NOTSTD
41 OPTIONS_STANDARD= STATIC NLS
42 VOPTS[static]= STATIC=ON NLS=OFF NOTSTD=ON
45 USES= bison cpe solaris-funcs
49 LICENSE= GPLv3+:primary
50 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
51 LICENSE_FILE= GPLv3+:{{WRKSRC}}/COPYING
52 LICENSE_AWK= TERMS:"<config.h>"
53 LICENSE_SOURCE= TERMS:{{WRKSRC}}/version.c
58 SOL_FUNCTIONS= mkdtemp:lib/sh/tmpfile.c
60 PATCHFILES= 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
63 CONFIGURE_ARGS= --enable-readline
65 --enable-process-substitution
68 --enable-extended-glob
69 --enable-dparen-arithmetic
70 --enable-directory-stack
74 --enable-brace-expansion
75 --enable-array-variables
78 INSTALL_REQ_TOOLCHAIN= yes
80 CPPFLAGS= -DDEFAULT_PATH_VALUE='\"{{STANDARD_PATH}}:{{LOCALBASE}}/sbin:{{LOCALBASE}}/bin\"'
81 -DSTANDARD_UTILS_PATH='\"{{STANDARD_PATH}}\"'
82 VAR_OPSYS[freebsd]= VAR1=-Wl,--export-dynamic
83 VAR_OPSYS[linux]= VAR1=-Wl,--export-dynamic
84 VAR_OPSYS[dragonfly]= VAR1=-Wl,--export-dynamic
86 [NOTSTD].DESCRIPTION= Non-standard designation
87 [NOTSTD].INFO_OFF= primary:bash
88 [NOTSTD].USES_OFF= makeinfo
90 [STATIC].BUILDRUN_DEPENDS_OFF= ncurses:primary:standard
91 [STATIC].BUILD_DEPENDS_ON= ncurses:primary:static
92 [STATIC].CFLAGS_ON= -fcommon
94 [NLS].CONFIGURE_ARGS_ON= --with-libiconv-prefix={{ICONV_PREFIX}}
95 [NLS].CONFIGURE_ENABLE_BOTH= nls
96 [NLS].USES_ON= gettext-runtime
100 # Ensure y.tab.c is regenerated
101 ${TOUCH} ${WRKSRC}/parse.y
102 ${RM} ${WRKSRC}/y.tab.c
103 ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/bash.1
105 post-install-NOTSTD-ON:
106 ${RM} -r ${STAGEDIR}${STD_DOCDIR}
108 post-install-STATIC-ON:
109 # These are not installed when --enable-static-link set
110 ${RM} -r ${STAGEDIR}${PREFIX}/include
111 ${RM} -r ${STAGEDIR}${PREFIX}/lib
114 ${LN} -sf bash ${STAGEDIR}${PREFIX}/bin/rbash
115 ${RM} ${STAGEDIR}${STD_DOCDIR}/CHANGES
118 ${FIND} ${WRKSRC} -name Makefile -print0 | ${XARGS} -0 \
119 ${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|"
121 [FILE:310:descriptions/desc.primary]
122 This is GNU Bash. Bash is the GNU Project's Bourne Again SHell,
123 a complete implementation of the POSIX.2 shell spec, but also
124 with interactive command line editing, job control on architectures
125 that support it, csh-like features such as history substitution and
126 brace expansion, and a slew of other features.
130 cc012bc860406dcf42f64431bcd3d2fa7560c02915a601aba9cd597a39329baa 10458638 bash/bash-5.1.tar.gz
131 ebb07b3dbadd98598f078125d0ae0d699295978a5cdaef6282fe19adef45b5fa 2894 bash/bash51-001
132 15ea6121a801e48e658ceee712ea9b88d4ded022046a6147550790caf04f5dbe 1575 bash/bash51-002
133 22f2cc262f056b22966281babf4b0a2f84cb7dd2223422e5dcd013c3dcbab6b1 1800 bash/bash51-003
134 9aaeb65664ef0d28c0067e47ba5652b518298b3b92d33327d84b98b28d873c86 3745 bash/bash51-004
135 cccbb5e9e6763915d232d29c713007a62b06e65126e3dd2d1128a0dc5ef46da5 2577 bash/bash51-005
136 75e17d937de862615c6375def40a7574462210dce88cf741f660e2cc29473d14 1412 bash/bash51-006
137 acfcb8c7e9f73457c0fb12324afb613785e0c9cef3315c9bbab4be702f40393a 2621 bash/bash51-007
138 f22cf3c51a28f084a25aef28950e8777489072628f972b12643b4534a17ed2d1 1821 bash/bash51-008
139 e45cda953ab4b4b4bde6dc34d0d8ca40d1cc502046eb28070c9ebcd47e33c3ee 1627 bash/bash51-009
140 a2c8d7b2704eeceff7b1503b7ad9500ea1cb6e9393faebdb3acd2afdd7aeae2a 1700 bash/bash51-010
141 58191f164934200746f48459a05bca34d1aec1180b08ca2deeee3bb29622027b 2229 bash/bash51-011
142 10f189c8367c4a15c7392e7bf70d0ff6953f78c9b312ed7622303a779273ab98 6372 bash/bash51-012
143 c7acb66df435d284304c16ca83a5265f9edd9368612095b01a733d45c77ed5ad 1277 bash/bash51-013
144 6a4ee0c81b437b96279a792c1efcec4ba56f009195a318083db6b53b096f83d0 1456 bash/bash51-014
145 1b37692ef1f6cc3dcec246773443276066e6b1379868f8c14e01f4dfd4df80f0 1409 bash/bash51-015
146 8899144f76a5db1fb41a89ed881c9f19add95728dd71db324f772ef225c5384f 2122 bash/bash51-016
149 [FILE:1188:manifests/plist.primary]
152 %%NOTSTD-OFF%%share/man/man1/
155 %%STATIC-OFF%%include/bash/
190 %%STATIC-OFF%%include/bash/builtins/
195 %%STATIC-OFF%%include/bash/include/
216 %%STATIC-OFF%%lib/bash/
252 %%STATIC-OFF%%lib/pkgconfig/bash.pc
256 [FILE:1427:manifests/plist.nls]
257 share/locale/af/LC_MESSAGES/bash.mo
258 share/locale/bg/LC_MESSAGES/bash.mo
259 share/locale/ca/LC_MESSAGES/bash.mo
260 share/locale/cs/LC_MESSAGES/bash.mo
261 share/locale/da/LC_MESSAGES/bash.mo
262 share/locale/de/LC_MESSAGES/bash.mo
263 share/locale/el/LC_MESSAGES/bash.mo
264 share/locale/en@boldquot/LC_MESSAGES/bash.mo
265 share/locale/en@quot/LC_MESSAGES/bash.mo
266 share/locale/eo/LC_MESSAGES/bash.mo
267 share/locale/es/LC_MESSAGES/bash.mo
268 share/locale/et/LC_MESSAGES/bash.mo
269 share/locale/fi/LC_MESSAGES/bash.mo
270 share/locale/fr/LC_MESSAGES/bash.mo
271 share/locale/ga/LC_MESSAGES/bash.mo
272 share/locale/gl/LC_MESSAGES/bash.mo
273 share/locale/hr/LC_MESSAGES/bash.mo
274 share/locale/hu/LC_MESSAGES/bash.mo
275 share/locale/id/LC_MESSAGES/bash.mo
276 share/locale/it/LC_MESSAGES/bash.mo
277 share/locale/ja/LC_MESSAGES/bash.mo
278 share/locale/ko/LC_MESSAGES/bash.mo
279 share/locale/lt/LC_MESSAGES/bash.mo
280 share/locale/nb/LC_MESSAGES/bash.mo
281 share/locale/nl/LC_MESSAGES/bash.mo
282 share/locale/pl/LC_MESSAGES/bash.mo
283 share/locale/pt/LC_MESSAGES/bash.mo
284 share/locale/pt_BR/LC_MESSAGES/bash.mo
285 share/locale/ro/LC_MESSAGES/bash.mo
286 share/locale/ru/LC_MESSAGES/bash.mo
287 share/locale/sk/LC_MESSAGES/bash.mo
288 share/locale/sl/LC_MESSAGES/bash.mo
289 share/locale/sr/LC_MESSAGES/bash.mo
290 share/locale/sv/LC_MESSAGES/bash.mo
291 share/locale/tr/LC_MESSAGES/bash.mo
292 share/locale/uk/LC_MESSAGES/bash.mo
293 share/locale/vi/LC_MESSAGES/bash.mo
294 share/locale/zh_CN/LC_MESSAGES/bash.mo
295 share/locale/zh_TW/LC_MESSAGES/bash.mo
298 [FILE:89:manifests/plist.docs]
311 [FILE:314:patches/patch-config-top.h]
312 --- config-top.h.orig 2020-11-16 15:34:26 UTC
317 /* Default primary and secondary prompt strings. */
318 -#define PPROMPT "\\s-\\v\\$ "
319 +#define PPROMPT "[\\u@\\h \\w]\\$ "
322 /* Undefine this if you don't want the ksh-compatible behavior of reprinting
325 [FILE:747:patches/patch-doc_Makefile.in]
326 --- doc/Makefile.in.orig 2020-05-20 20:41:49 UTC
328 @@ -175,7 +175,7 @@ pdf: ${PDFFILES}
329 bashref.dvi: $(BASHREF_FILES) $(HSUSER) $(RLUSER)
330 ${SET_TEXINPUTS} $(TEXI2DVI) $(srcdir)/bashref.texi || { ${RM} $@ ; exit 1; }
332 -bashref.info: $(BASHREF_FILES) $(HSUSER) $(RLUSER)
333 +bash.info: $(BASHREF_FILES) $(HSUSER) $(RLUSER)
334 $(MAKEINFO) --no-split -I$(TEXINPUTDIR) $(srcdir)/bashref.texi
337 @@ -188,9 +188,6 @@ bashref.pdf: $(BASHREF_FILES) $(HSUSER)
338 bashref.html: $(BASHREF_FILES) $(HSUSER) $(RLUSER)
339 $(MAKEINFO) --html --no-split -I$(TEXINPUTDIR) $(srcdir)/bashref.texi
341 -bash.info: bashref.info
342 - ${SHELL} ${INFOPOST} < $(srcdir)/bashref.info > $@ ; \
349 [FILE:498:patches/patch-doc_bash.1]
350 --- doc/bash.1.orig 2020-11-18 20:03:59 UTC
352 @@ -2503,7 +2503,7 @@ The value of this parameter is expanded
355 below) and used as the primary prompt string. The default value is
356 -``\fB\es\-\ev\e$ \fP''.
357 +``\fB\eu\@\eh\e$ \fP''.
360 The value of this parameter is expanded as with
361 @@ -11199,7 +11199,7 @@ http://tiswww.case.edu/~chet/bash/POSIX
366 +.FN %%PREFIX%%/bin/bash
367 The \fBbash\fP executable
372 [FILE:944:patches/patch-doc_bashref.texi]
373 --- doc/bashref.texi.orig 2020-11-18 20:12:13 UTC
376 \input texinfo.tex @c -*- texinfo -*-
377 @c %**start of header
378 -@setfilename bashref.info
379 +@setfilename bash.info
380 @settitle Bash Reference Manual
382 @include version.texi
386 This text is a brief description of the features that are present in
387 -the Bash shell (version @value{VERSION}, @value{UPDATED}).
388 +the Bash shell (version @value{VERSION}, @value{UPDATED})
390 This is Edition @value{EDITION}, last updated @value{UPDATED},
391 of @cite{The GNU Bash Reference Manual},
392 @@ -5635,7 +5635,7 @@ A null directory name may appear as two
396 -The primary prompt string. The default value is @samp{\s-\v\$ }.
397 +The primary prompt string. The default value is @samp{[\u@@\h \w]\$ }.
398 @xref{Controlling the Prompt}, for the complete list of escape
399 sequences that are expanded before @env{PS1} is displayed.
403 [FILE:226:patches/patch-examples_loadables_fdflags.c]
404 --- examples/loadables/fdflags.c.orig 2019-03-01 19:25:23 UTC
405 +++ examples/loadables/fdflags.c
406 @@ -109,6 +109,8 @@ static const struct
409 { "cloexec", O_CLOEXEC },
417 [FILE:533:patches/patch-lib_readline_display.c]
418 --- lib/readline/display.c.orig 2020-09-08 12:56:42 UTC
419 +++ lib/readline/display.c
420 @@ -932,7 +932,10 @@ rl_redisplay (void)
421 the line breaks in the prompt string in expand_prompt, taking invisible
422 characters into account, and if lpos exceeds the screen width, we copy
423 the data in the loop below. */
425 lpos = prompt_physical_chars + modmark;
429 #if defined (HANDLE_MULTIBYTE)
430 memset (line_state_invisible->wrapped_line, 0, line_state_invisible->wbsize * sizeof (int));
433 [FILE:266:patches/patch-lib_termcap_ltcap.h]
434 --- lib/termcap/ltcap.h.orig 2009-01-04 19:32:36 UTC
435 +++ lib/termcap/ltcap.h
440 -#if !defined (__APPLE__)
441 # define __private_extern__
444 #ifndef MAX_TGETENT_BUFSIZ
445 # define MAX_TGETENT_BUFSIZ 2048
448 [FILE:364:patches/patch-support_Makefile.in]
449 --- support/Makefile.in.orig 2018-05-11 18:28:43 UTC
450 +++ support/Makefile.in
451 @@ -77,7 +77,7 @@ OBJ1 = man2html.o
452 all: man2html$(EXEEXT)
454 man2html$(EXEEXT): $(OBJ1)
455 - $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(OBJ1) -o $@ ${LIBS_FOR_BUILD}
456 + $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(OBJ1) -o $@ ${LIBS_FOR_BUILD} ${LDFLAGS}
459 $(RM) man2html$(EXEEXT) $(OBJ1)
462 [FILE:630:patches/patch-support_shobj-conf]
463 --- support/shobj-conf.orig 2019-12-13 14:51:17 UTC
464 +++ support/shobj-conf
465 @@ -113,7 +113,7 @@ sunos5*-*gcc*|solaris2*-*gcc*)
466 SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)'
471 SHOBJ_CFLAGS='-K pic'
472 SHOBJ_LD=/usr/ccs/bin/ld
473 SHOBJ_LDFLAGS='-G -dy -z text -i -h $@'
474 @@ -123,7 +123,7 @@ sunos5*|solaris2*)
477 # All versions of Linux (including Gentoo/FreeBSD) or the semi-mythical GNU Hurd.
478 -linux*-*|gnu*-*|k*bsd*-gnu-*|freebsd*|dragonfly*)
479 +linux*-*|gnu*-*|k*bsd*-gnu-*|freebsd*|dragonfly*|solaris*)
482 SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'
485 [FILE:757:files/special.mk]
486 # On linux with glibc, we can't build a fully static bash because
487 # of absurd restrictions put on static linking with nss, dlopen, etc.
488 # So we build it dynamic but with libtinfo static. Leaving glibc-based
489 # libraries like libc, libm, pthread, etc, is okay.
491 .if ${OPSYS} == Linux
492 . if "${PLIST_SUB:MSTATIC-ON=*}" == "STATIC-ON="
493 CONFIGURE_ARGS:= ${CONFIGURE_ARGS:N--enable-static-link}
494 CONFIGURE_ENV+= ac_cv_func_dlopen=no
496 TINFOLIBS= ${LOCALBASE}/lib/libtinfo.a \
497 ${LOCALBASE}/lib/db5/libdb.a \
500 post-configure-opsys:
501 ${REINPLACE_CMD} -e 's|-ltinfo|${TINFOLIBS}|' ${WRKSRC}/Makefile
505 # we could have used LDFLAGS_OFF options helper, but it doesn't
508 .if ${VARIANT} != static
513 [FILE:2609:sunos/patch-configure]
514 --- configure.orig 2020-12-04 14:05:14 UTC
516 @@ -5009,14 +5009,18 @@ prefer_static=no
517 if test "$opt_static_link" = yes; then
520 + TINFO_LIBRARY=${prefix}/lib/libtinfo.a
521 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
522 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
525 - solaris2*|linux*) ;;
527 + solaris*) STATIC_LD= ;;
528 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
532 + TINFO_LIBRARY=-ltinfo
535 # set the appropriate make variables for building the "build tools"
536 @@ -5160,13 +5164,13 @@ $as_echo "$ac_cv_lib_termcap_tgetent" >&
537 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
538 bash_cv_termcap_lib=libtermcap
540 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
541 -$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
542 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in ${TINFO_LIBRARY}" >&5
543 +$as_echo_n "checking for tgetent in ${TINFO_LIBRARY}... " >&6; }
544 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
545 $as_echo_n "(cached) " >&6
547 ac_check_lib_save_LIBS=$LIBS
548 -LIBS="-ltinfo $LIBS"
549 +LIBS="${TINFO_LIBRARY} $LIBS"
550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
551 /* end confdefs.h. */
553 @@ -5345,7 +5349,7 @@ elif test $bash_cv_termcap_lib = libterm
554 TERMCAP_LIB=-ltermcap
556 elif test $bash_cv_termcap_lib = libtinfo; then
558 +TERMCAP_LIB=${TINFO_LIBRARY}
560 elif test $bash_cv_termcap_lib = libncurses; then
561 TERMCAP_LIB=-lncurses
562 @@ -20076,13 +20080,13 @@ $as_echo "$ac_cv_lib_termcap_tgetent" >&
563 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
564 bash_cv_termcap_lib=libtermcap
566 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
567 -$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
568 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in ${TINFO_LIBRARY}" >&5
569 +$as_echo_n "checking for tgetent in ${TINFO_LIBRARY}... " >&6; }
570 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
571 $as_echo_n "(cached) " >&6
573 ac_check_lib_save_LIBS=$LIBS
574 -LIBS="-ltinfo $LIBS"
575 +LIBS="${TINFO_LIBRARY} $LIBS"
576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
577 /* end confdefs.h. */
579 @@ -20261,7 +20265,7 @@ elif test $bash_cv_termcap_lib = libterm
580 TERMCAP_LIB=-ltermcap
582 elif test $bash_cv_termcap_lib = libtinfo; then
584 +TERMCAP_LIB=${TINFO_LIBRARY}
586 elif test $bash_cv_termcap_lib = libncurses; then
587 TERMCAP_LIB=-lncurses