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.2-patches
15 DISTFILE[1]= bash-5.2.tar.gz:main
16 DISTFILE[2]= bash52-001:patches
17 DISTFILE[3]= bash52-002:patches
18 DISTFILE[4]= bash52-003:patches
19 DISTFILE[5]= bash52-004:patches
20 DISTFILE[6]= bash52-005:patches
21 DISTFILE[7]= bash52-006:patches
22 DISTFILE[8]= bash52-007:patches
23 DISTFILE[9]= bash52-008:patches
24 DISTFILE[10]= bash52-009:patches
25 DISTFILE[11]= bash52-010:patches
26 DISTFILE[12]= bash52-011:patches
27 DISTFILE[13]= bash52-012:patches
28 DISTFILE[14]= bash52-013:patches
29 DISTFILE[15]= bash52-014:patches
30 DISTFILE[16]= bash52-015:patches
33 SPKGS[standard]= complete
37 SPKGS[static]= primary
39 OPTIONS_AVAILABLE= STATIC NLS NOTSTD
40 OPTIONS_STANDARD= STATIC NLS
41 VOPTS[static]= STATIC=ON NLS=OFF NOTSTD=ON
44 BUILD_DEPENDS= ncurses:dev:standard
45 RUN_DEPENDS= ncurses:terminfo:standard
47 USES= bison cpe solaris-funcs
51 LICENSE= GPLv3+:primary
52 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
53 LICENSE_FILE= GPLv3+:{{WRKSRC}}/COPYING
54 LICENSE_AWK= TERMS:"<config.h>"
55 LICENSE_SOURCE= TERMS:{{WRKSRC}}/version.c
60 SOL_FUNCTIONS= mkdtemp:lib/sh/tmpfile.c
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[netbsd]= VAR1=-Wl,--export-dynamic
85 VAR_OPSYS[dragonfly]= VAR1=-Wl,--export-dynamic
87 [NOTSTD].DESCRIPTION= Non-standard designation
88 [NOTSTD].INFO_OFF= primary:bash
89 [NOTSTD].USES_OFF= makeinfo
91 [STATIC].BUILDRUN_DEPENDS_OFF= ncurses:primary:standard
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
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 post-extract-STATIC-ON:
122 # force static linking
123 ${RM} ${LOCALBASE}/lib/libncurses.so
125 [FILE:310:descriptions/desc.primary]
126 This is GNU Bash. Bash is the GNU Project's Bourne Again SHell,
127 a complete implementation of the POSIX.2 shell spec, but also
128 with interactive command line editing, job control on architectures
129 that support it, csh-like features such as history substitution and
130 brace expansion, and a slew of other features.
134 a139c166df7ff4471c5e0733051642ee5556c1cc8a4a78f145583c5c81ab32fb 10950833 bash/bash-5.2.tar.gz
135 f42f2fee923bc2209f406a1892772121c467f44533bedfe00a176139da5d310a 1381 bash/bash52-001
136 45cc5e1b876550eee96f95bffb36c41b6cb7c07d33f671db5634405cd00fd7b8 1328 bash/bash52-002
137 6a090cdbd334306fceacd0e4a1b9e0b0678efdbbdedbd1f5842035990c8abaff 2157 bash/bash52-003
138 38827724bba908cf5721bd8d4e595d80f02c05c35f3dd7dbc4cd3c5678a42512 2016 bash/bash52-004
139 ece0eb544368b3b4359fb8464caa9d89c7a6743c8ed070be1c7d599c3675d357 1515 bash/bash52-005
140 d1e0566a257d149a0d99d450ce2885123f9995e9c01d0a5ef6df7044a72a468c 8790 bash/bash52-006
141 2500a3fc21cb08133f06648a017cebfa27f30ea19c8cbe8dfefdf16227cfd490 9072 bash/bash52-007
142 6b4bd92fd0099d1bab436b941875e99e0cb3c320997587182d6267af1844b1e8 1771 bash/bash52-008
143 f95a817882eaeb0cb78bce82859a86bbb297a308ced730ebe449cd504211d3cd 1316 bash/bash52-009
144 c7705e029f752507310ecd7270aef437e8043a9959e4d0c6065a82517996c1cd 2045 bash/bash52-010
145 831b5f25bf3e88625f3ab315043be7498907c551f86041fa3b914123d79eb6f4 1229 bash/bash52-011
146 2fb107ce1fb8e93f36997c8b0b2743fc1ca98a454c7cc5a3fcabec533f67d42c 9107 bash/bash52-012
147 094b4fd81bc488a26febba5d799689b64d52a5505b63e8ee854f48d356bc7ce6 1503 bash/bash52-013
148 3ef9246f2906ef1e487a0a3f4c647ae1c289cbd8459caa7db5ce118ef136e624 3245 bash/bash52-014
149 ef73905169db67399a728e238a9413e0d689462cb9b72ab17a05dba51221358a 8088 bash/bash52-015
152 [FILE:1240:manifests/plist.primary]
155 %%NOTSTD-OFF%%share/man/man1/
158 %%STATIC-OFF%%include/bash/
194 %%STATIC-OFF%%include/bash/builtins/
199 %%STATIC-OFF%%include/bash/include/
220 %%STATIC-OFF%%lib/bash/
260 %%STATIC-OFF%%lib/pkgconfig/bash.pc
264 [FILE:1427:manifests/plist.nls]
265 share/locale/af/LC_MESSAGES/bash.mo
266 share/locale/bg/LC_MESSAGES/bash.mo
267 share/locale/ca/LC_MESSAGES/bash.mo
268 share/locale/cs/LC_MESSAGES/bash.mo
269 share/locale/da/LC_MESSAGES/bash.mo
270 share/locale/de/LC_MESSAGES/bash.mo
271 share/locale/el/LC_MESSAGES/bash.mo
272 share/locale/en@boldquot/LC_MESSAGES/bash.mo
273 share/locale/en@quot/LC_MESSAGES/bash.mo
274 share/locale/eo/LC_MESSAGES/bash.mo
275 share/locale/es/LC_MESSAGES/bash.mo
276 share/locale/et/LC_MESSAGES/bash.mo
277 share/locale/fi/LC_MESSAGES/bash.mo
278 share/locale/fr/LC_MESSAGES/bash.mo
279 share/locale/ga/LC_MESSAGES/bash.mo
280 share/locale/gl/LC_MESSAGES/bash.mo
281 share/locale/hr/LC_MESSAGES/bash.mo
282 share/locale/hu/LC_MESSAGES/bash.mo
283 share/locale/id/LC_MESSAGES/bash.mo
284 share/locale/it/LC_MESSAGES/bash.mo
285 share/locale/ja/LC_MESSAGES/bash.mo
286 share/locale/ko/LC_MESSAGES/bash.mo
287 share/locale/lt/LC_MESSAGES/bash.mo
288 share/locale/nb/LC_MESSAGES/bash.mo
289 share/locale/nl/LC_MESSAGES/bash.mo
290 share/locale/pl/LC_MESSAGES/bash.mo
291 share/locale/pt/LC_MESSAGES/bash.mo
292 share/locale/pt_BR/LC_MESSAGES/bash.mo
293 share/locale/ro/LC_MESSAGES/bash.mo
294 share/locale/ru/LC_MESSAGES/bash.mo
295 share/locale/sk/LC_MESSAGES/bash.mo
296 share/locale/sl/LC_MESSAGES/bash.mo
297 share/locale/sr/LC_MESSAGES/bash.mo
298 share/locale/sv/LC_MESSAGES/bash.mo
299 share/locale/tr/LC_MESSAGES/bash.mo
300 share/locale/uk/LC_MESSAGES/bash.mo
301 share/locale/vi/LC_MESSAGES/bash.mo
302 share/locale/zh_CN/LC_MESSAGES/bash.mo
303 share/locale/zh_TW/LC_MESSAGES/bash.mo
306 [FILE:89:manifests/plist.docs]
319 [FILE:314:patches/patch-config-top.h]
320 --- config-top.h.orig 2021-11-05 13:11:12 UTC
325 /* Default primary and secondary prompt strings. */
326 -#define PPROMPT "\\s-\\v\\$ "
327 +#define PPROMPT "[\\u@\\h \\w]\\$ "
330 /* Undefine this if you don't want the ksh-compatible behavior of reprinting
333 [FILE:498:patches/patch-doc_bash.1]
334 --- doc/bash.1.orig 2022-09-19 15:36:55 UTC
336 @@ -2561,7 +2561,7 @@ The value of this parameter is expanded
339 below) and used as the primary prompt string. The default value is
340 -``\fB\es\-\ev\e$ \fP''.
341 +``\fB\eu\@\eh\e$ \fP''.
344 The value of this parameter is expanded as with
345 @@ -11661,7 +11661,7 @@ http://tiswww.case.edu/~chet/bash/POSIX
350 +.FN %%PREFIX%%/bin/bash
351 The \fBbash\fP executable
356 [FILE:944:patches/patch-doc_bashref.texi]
357 --- doc/bashref.texi.orig 2022-09-19 15:41:39 UTC
360 \input texinfo.tex @c -*- texinfo -*-
361 @c %**start of header
362 -@setfilename bashref.info
363 +@setfilename bash.info
364 @settitle Bash Reference Manual
366 @include version.texi
370 This text is a brief description of the features that are present in
371 -the Bash shell (version @value{VERSION}, @value{UPDATED}).
372 +the Bash shell (version @value{VERSION}, @value{UPDATED})
374 This is Edition @value{EDITION}, last updated @value{UPDATED},
375 of @cite{The GNU Bash Reference Manual},
376 @@ -6004,7 +6004,7 @@ A null directory name may appear as two
380 -The primary prompt string. The default value is @samp{\s-\v\$ }.
381 +The primary prompt string. The default value is @samp{[\u@@\h \w]\$ }.
382 @xref{Controlling the Prompt}, for the complete list of escape
383 sequences that are expanded before @env{PS1} is displayed.
387 [FILE:226:patches/patch-examples_loadables_fdflags.c]
388 --- examples/loadables/fdflags.c.orig 2022-07-26 14:16:57 UTC
389 +++ examples/loadables/fdflags.c
390 @@ -109,6 +109,8 @@ static const struct
393 { "cloexec", O_CLOEXEC },
401 [FILE:528:patches/patch-examples_loadables_getconf.c]
402 $NetBSD: patch-examples_loadables_getconf.c,v 1.1 2022/10/04 12:45:31 kim Exp $
404 Handle _SC_RTSIG_MAX not being defined (NetBSD 9)
406 --- examples/loadables/getconf.c.orig 2021-12-03 16:46:22 UTC
407 +++ examples/loadables/getconf.c
408 @@ -846,7 +846,9 @@ static const struct conf vars[] =
410 { "_POSIX_TRACE_LOG", _SC_TRACE_LOG, SYSCONF },
412 +#ifdef _SC_RTSIG_MAX
413 { "RTSIG_MAX", _SC_RTSIG_MAX, SYSCONF },
415 #ifdef _SC_SEM_NSEMS_MAX
416 { "SEM_NSEMS_MAX", _SC_SEM_NSEMS_MAX, SYSCONF },
420 [FILE:533:patches/patch-lib_readline_display.c]
421 --- lib/readline/display.c.orig 2022-04-05 14:47:31 UTC
422 +++ lib/readline/display.c
423 @@ -953,7 +953,10 @@ rl_redisplay (void)
424 the line breaks in the prompt string in expand_prompt, taking invisible
425 characters into account, and if lpos exceeds the screen width, we copy
426 the data in the loop below. */
428 lpos = prompt_physical_chars + modmark;
432 #if defined (HANDLE_MULTIBYTE)
433 memset (line_state_invisible->wrapped_line, 0, line_state_invisible->wbsize * sizeof (int));
436 [FILE:266:patches/patch-lib_termcap_ltcap.h]
437 --- lib/termcap/ltcap.h.orig 2009-01-04 19:32:36 UTC
438 +++ lib/termcap/ltcap.h
443 -#if !defined (__APPLE__)
444 # define __private_extern__
447 #ifndef MAX_TGETENT_BUFSIZ
448 # define MAX_TGETENT_BUFSIZ 2048
451 [FILE:656:patches/patch-support_shobj-conf]
452 --- support/shobj-conf.orig 2021-12-03 15:54:46 UTC
453 +++ support/shobj-conf
454 @@ -113,7 +113,7 @@ sunos5*-*gcc*|solaris2*-*gcc*)
455 SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)'
460 SHOBJ_CFLAGS='-K pic'
461 SHOBJ_LD=/usr/ccs/bin/ld
462 SHOBJ_LDFLAGS='-G -dy -z text -i -h $@'
463 @@ -123,7 +123,7 @@ sunos5*|solaris2*)
466 # All versions of Linux (including Gentoo/FreeBSD) or the semi-mythical GNU Hurd.
467 -linux*-*|gnu*-*|k*bsd*-gnu-*|midnightbsd*|freebsd*|dragonfly*)
468 +linux*-*|gnu*-*|k*bsd*-gnu-*|midnightbsd*|freebsd*|dragonfly*|solaris*)
471 SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'
474 [FILE:723:files/special.mk]
475 # On linux with glibc, we can't build a fully static bash because
476 # of absurd restrictions put on static linking with nss, dlopen, etc.
477 # So we build it dynamic but with libtinfo static. Leaving glibc-based
478 # libraries like libc, libm, pthread, etc, is okay.
480 .if ${OPSYS} == Linux
481 . if "${PLIST_SUB:MSTATIC-ON=*}" == "STATIC-ON="
482 CONFIGURE_ARGS:= ${CONFIGURE_ARGS:N--enable-static-link}
483 CONFIGURE_ENV+= ac_cv_func_dlopen=no
485 TINFOLIBS= ${LOCALBASE}/lib/libtinfo.a \
488 post-configure-opsys:
489 ${REINPLACE_CMD} -e 's|-ltinfo|${TINFOLIBS}|' ${WRKSRC}/Makefile
493 # we could have used LDFLAGS_OFF options helper, but it doesn't
496 .if ${VARIANT} != static
501 [FILE:2609:sunos/patch-configure]
502 --- configure.orig 2020-12-04 14:05:14 UTC
504 @@ -5009,14 +5009,18 @@ prefer_static=no
505 if test "$opt_static_link" = yes; then
508 + TINFO_LIBRARY=${prefix}/lib/libtinfo.a
509 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
510 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
513 - solaris2*|linux*) ;;
515 + solaris*) STATIC_LD= ;;
516 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
520 + TINFO_LIBRARY=-ltinfo
523 # set the appropriate make variables for building the "build tools"
524 @@ -5160,13 +5164,13 @@ $as_echo "$ac_cv_lib_termcap_tgetent" >&
525 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
526 bash_cv_termcap_lib=libtermcap
528 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
529 -$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
530 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in ${TINFO_LIBRARY}" >&5
531 +$as_echo_n "checking for tgetent in ${TINFO_LIBRARY}... " >&6; }
532 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
533 $as_echo_n "(cached) " >&6
535 ac_check_lib_save_LIBS=$LIBS
536 -LIBS="-ltinfo $LIBS"
537 +LIBS="${TINFO_LIBRARY} $LIBS"
538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
539 /* end confdefs.h. */
541 @@ -5345,7 +5349,7 @@ elif test $bash_cv_termcap_lib = libterm
542 TERMCAP_LIB=-ltermcap
544 elif test $bash_cv_termcap_lib = libtinfo; then
546 +TERMCAP_LIB=${TINFO_LIBRARY}
548 elif test $bash_cv_termcap_lib = libncurses; then
549 TERMCAP_LIB=-lncurses
550 @@ -20076,13 +20080,13 @@ $as_echo "$ac_cv_lib_termcap_tgetent" >&
551 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
552 bash_cv_termcap_lib=libtermcap
554 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
555 -$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
556 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in ${TINFO_LIBRARY}" >&5
557 +$as_echo_n "checking for tgetent in ${TINFO_LIBRARY}... " >&6; }
558 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
559 $as_echo_n "(cached) " >&6
561 ac_check_lib_save_LIBS=$LIBS
562 -LIBS="-ltinfo $LIBS"
563 +LIBS="${TINFO_LIBRARY} $LIBS"
564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
565 /* end confdefs.h. */
567 @@ -20261,7 +20265,7 @@ elif test $bash_cv_termcap_lib = libterm
568 TERMCAP_LIB=-ltermcap
570 elif test $bash_cv_termcap_lib = libtinfo; then
572 +TERMCAP_LIB=${TINFO_LIBRARY}
574 elif test $bash_cv_termcap_lib = libncurses; then
575 TERMCAP_LIB=-lncurses