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
18 SPKGS[standard]= complete
22 SPKGS[static]= primary
24 OPTIONS_AVAILABLE= STATIC NLS NOTSTD
25 OPTIONS_STANDARD= STATIC NLS
26 VOPTS[static]= STATIC=ON NLS=OFF NOTSTD=ON
29 USES= bison cpe solaris-funcs
33 LICENSE= GPLv3+:primary
34 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
35 LICENSE_FILE= GPLv3+:{{WRKSRC}}/COPYING
36 LICENSE_AWK= TERMS:"<config.h>"
37 LICENSE_SOURCE= TERMS:{{WRKSRC}}/version.c
42 SOL_FUNCTIONS= mkdtemp:lib/sh/tmpfile.c
45 CONFIGURE_ARGS= --enable-readline
47 --enable-process-substitution
50 --enable-extended-glob
51 --enable-dparen-arithmetic
52 --enable-directory-stack
56 --enable-brace-expansion
57 --enable-array-variables
60 INSTALL_REQ_TOOLCHAIN= yes
62 CPPFLAGS= -DDEFAULT_PATH_VALUE='\"{{STANDARD_PATH}}:{{LOCALBASE}}/sbin:{{LOCALBASE}}/bin\"'
63 -DSTANDARD_UTILS_PATH='\"{{STANDARD_PATH}}\"'
64 VAR_OPSYS[freebsd]= VAR1=-Wl,--export-dynamic
65 VAR_OPSYS[linux]= VAR1=-Wl,--export-dynamic
66 VAR_OPSYS[dragonfly]= VAR1=-Wl,--export-dynamic
68 [NOTSTD].DESCRIPTION= Non-standard designation
69 [NOTSTD].INFO_OFF= primary:bash
70 [NOTSTD].USES_OFF= makeinfo
72 [STATIC].BUILDRUN_DEPENDS_OFF= ncurses:primary:standard
73 [STATIC].BUILD_DEPENDS_ON= ncurses:primary:static
74 [STATIC].CFLAGS_ON= -fcommon
76 [NLS].CONFIGURE_ARGS_ON= --with-libiconv-prefix={{ICONV_PREFIX}}
77 [NLS].CONFIGURE_ENABLE_BOTH= nls
78 [NLS].USES_ON= gettext-runtime
82 # Ensure y.tab.c is regenerated
83 ${TOUCH} ${WRKSRC}/parse.y
84 ${RM} ${WRKSRC}/y.tab.c
85 ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/bash.1
87 post-install-NOTSTD-ON:
88 ${RM} -r ${STAGEDIR}${STD_DOCDIR}
90 post-install-STATIC-ON:
91 # These are not installed when --enable-static-link set
92 ${RM} -r ${STAGEDIR}${PREFIX}/include
93 ${RM} -r ${STAGEDIR}${PREFIX}/lib
96 ${LN} -sf bash ${STAGEDIR}${PREFIX}/bin/rbash
97 ${RM} ${STAGEDIR}${STD_DOCDIR}/CHANGES
100 ${FIND} ${WRKSRC} -name Makefile -print0 | ${XARGS} -0 \
101 ${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|"
103 [FILE:310:descriptions/desc.primary]
104 This is GNU Bash. Bash is the GNU Project's Bourne Again SHell,
105 a complete implementation of the POSIX.2 shell spec, but also
106 with interactive command line editing, job control on architectures
107 that support it, csh-like features such as history substitution and
108 brace expansion, and a slew of other features.
112 a139c166df7ff4471c5e0733051642ee5556c1cc8a4a78f145583c5c81ab32fb 10950833 bash/bash-5.2.tar.gz
115 [FILE:1240:manifests/plist.primary]
118 %%NOTSTD-OFF%%share/man/man1/
121 %%STATIC-OFF%%include/bash/
157 %%STATIC-OFF%%include/bash/builtins/
162 %%STATIC-OFF%%include/bash/include/
183 %%STATIC-OFF%%lib/bash/
223 %%STATIC-OFF%%lib/pkgconfig/bash.pc
227 [FILE:1427:manifests/plist.nls]
228 share/locale/af/LC_MESSAGES/bash.mo
229 share/locale/bg/LC_MESSAGES/bash.mo
230 share/locale/ca/LC_MESSAGES/bash.mo
231 share/locale/cs/LC_MESSAGES/bash.mo
232 share/locale/da/LC_MESSAGES/bash.mo
233 share/locale/de/LC_MESSAGES/bash.mo
234 share/locale/el/LC_MESSAGES/bash.mo
235 share/locale/en@boldquot/LC_MESSAGES/bash.mo
236 share/locale/en@quot/LC_MESSAGES/bash.mo
237 share/locale/eo/LC_MESSAGES/bash.mo
238 share/locale/es/LC_MESSAGES/bash.mo
239 share/locale/et/LC_MESSAGES/bash.mo
240 share/locale/fi/LC_MESSAGES/bash.mo
241 share/locale/fr/LC_MESSAGES/bash.mo
242 share/locale/ga/LC_MESSAGES/bash.mo
243 share/locale/gl/LC_MESSAGES/bash.mo
244 share/locale/hr/LC_MESSAGES/bash.mo
245 share/locale/hu/LC_MESSAGES/bash.mo
246 share/locale/id/LC_MESSAGES/bash.mo
247 share/locale/it/LC_MESSAGES/bash.mo
248 share/locale/ja/LC_MESSAGES/bash.mo
249 share/locale/ko/LC_MESSAGES/bash.mo
250 share/locale/lt/LC_MESSAGES/bash.mo
251 share/locale/nb/LC_MESSAGES/bash.mo
252 share/locale/nl/LC_MESSAGES/bash.mo
253 share/locale/pl/LC_MESSAGES/bash.mo
254 share/locale/pt/LC_MESSAGES/bash.mo
255 share/locale/pt_BR/LC_MESSAGES/bash.mo
256 share/locale/ro/LC_MESSAGES/bash.mo
257 share/locale/ru/LC_MESSAGES/bash.mo
258 share/locale/sk/LC_MESSAGES/bash.mo
259 share/locale/sl/LC_MESSAGES/bash.mo
260 share/locale/sr/LC_MESSAGES/bash.mo
261 share/locale/sv/LC_MESSAGES/bash.mo
262 share/locale/tr/LC_MESSAGES/bash.mo
263 share/locale/uk/LC_MESSAGES/bash.mo
264 share/locale/vi/LC_MESSAGES/bash.mo
265 share/locale/zh_CN/LC_MESSAGES/bash.mo
266 share/locale/zh_TW/LC_MESSAGES/bash.mo
269 [FILE:89:manifests/plist.docs]
282 [FILE:314:patches/patch-config-top.h]
283 --- config-top.h.orig 2021-11-05 13:11:12 UTC
288 /* Default primary and secondary prompt strings. */
289 -#define PPROMPT "\\s-\\v\\$ "
290 +#define PPROMPT "[\\u@\\h \\w]\\$ "
293 /* Undefine this if you don't want the ksh-compatible behavior of reprinting
296 [FILE:498:patches/patch-doc_bash.1]
297 --- doc/bash.1.orig 2022-09-19 15:36:55 UTC
299 @@ -2561,7 +2561,7 @@ The value of this parameter is expanded
302 below) and used as the primary prompt string. The default value is
303 -``\fB\es\-\ev\e$ \fP''.
304 +``\fB\eu\@\eh\e$ \fP''.
307 The value of this parameter is expanded as with
308 @@ -11661,7 +11661,7 @@ http://tiswww.case.edu/~chet/bash/POSIX
313 +.FN %%PREFIX%%/bin/bash
314 The \fBbash\fP executable
319 [FILE:944:patches/patch-doc_bashref.texi]
320 --- doc/bashref.texi.orig 2022-09-19 15:41:39 UTC
323 \input texinfo.tex @c -*- texinfo -*-
324 @c %**start of header
325 -@setfilename bashref.info
326 +@setfilename bash.info
327 @settitle Bash Reference Manual
329 @include version.texi
333 This text is a brief description of the features that are present in
334 -the Bash shell (version @value{VERSION}, @value{UPDATED}).
335 +the Bash shell (version @value{VERSION}, @value{UPDATED})
337 This is Edition @value{EDITION}, last updated @value{UPDATED},
338 of @cite{The GNU Bash Reference Manual},
339 @@ -6004,7 +6004,7 @@ A null directory name may appear as two
343 -The primary prompt string. The default value is @samp{\s-\v\$ }.
344 +The primary prompt string. The default value is @samp{[\u@@\h \w]\$ }.
345 @xref{Controlling the Prompt}, for the complete list of escape
346 sequences that are expanded before @env{PS1} is displayed.
350 [FILE:226:patches/patch-examples_loadables_fdflags.c]
351 --- examples/loadables/fdflags.c.orig 2022-07-26 14:16:57 UTC
352 +++ examples/loadables/fdflags.c
353 @@ -109,6 +109,8 @@ static const struct
356 { "cloexec", O_CLOEXEC },
364 [FILE:533:patches/patch-lib_readline_display.c]
365 --- lib/readline/display.c.orig 2022-04-05 14:47:31 UTC
366 +++ lib/readline/display.c
367 @@ -953,7 +953,10 @@ rl_redisplay (void)
368 the line breaks in the prompt string in expand_prompt, taking invisible
369 characters into account, and if lpos exceeds the screen width, we copy
370 the data in the loop below. */
372 lpos = prompt_physical_chars + modmark;
376 #if defined (HANDLE_MULTIBYTE)
377 memset (line_state_invisible->wrapped_line, 0, line_state_invisible->wbsize * sizeof (int));
380 [FILE:266:patches/patch-lib_termcap_ltcap.h]
381 --- lib/termcap/ltcap.h.orig 2009-01-04 19:32:36 UTC
382 +++ lib/termcap/ltcap.h
387 -#if !defined (__APPLE__)
388 # define __private_extern__
391 #ifndef MAX_TGETENT_BUFSIZ
392 # define MAX_TGETENT_BUFSIZ 2048
395 [FILE:656:patches/patch-support_shobj-conf]
396 --- support/shobj-conf.orig 2021-12-03 15:54:46 UTC
397 +++ support/shobj-conf
398 @@ -113,7 +113,7 @@ sunos5*-*gcc*|solaris2*-*gcc*)
399 SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)'
404 SHOBJ_CFLAGS='-K pic'
405 SHOBJ_LD=/usr/ccs/bin/ld
406 SHOBJ_LDFLAGS='-G -dy -z text -i -h $@'
407 @@ -123,7 +123,7 @@ sunos5*|solaris2*)
410 # All versions of Linux (including Gentoo/FreeBSD) or the semi-mythical GNU Hurd.
411 -linux*-*|gnu*-*|k*bsd*-gnu-*|midnightbsd*|freebsd*|dragonfly*)
412 +linux*-*|gnu*-*|k*bsd*-gnu-*|midnightbsd*|freebsd*|dragonfly*|solaris*)
415 SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'
418 [FILE:757:files/special.mk]
419 # On linux with glibc, we can't build a fully static bash because
420 # of absurd restrictions put on static linking with nss, dlopen, etc.
421 # So we build it dynamic but with libtinfo static. Leaving glibc-based
422 # libraries like libc, libm, pthread, etc, is okay.
424 .if ${OPSYS} == Linux
425 . if "${PLIST_SUB:MSTATIC-ON=*}" == "STATIC-ON="
426 CONFIGURE_ARGS:= ${CONFIGURE_ARGS:N--enable-static-link}
427 CONFIGURE_ENV+= ac_cv_func_dlopen=no
429 TINFOLIBS= ${LOCALBASE}/lib/libtinfo.a \
430 ${LOCALBASE}/lib/db5/libdb.a \
433 post-configure-opsys:
434 ${REINPLACE_CMD} -e 's|-ltinfo|${TINFOLIBS}|' ${WRKSRC}/Makefile
438 # we could have used LDFLAGS_OFF options helper, but it doesn't
441 .if ${VARIANT} != static
446 [FILE:2609:sunos/patch-configure]
447 --- configure.orig 2020-12-04 14:05:14 UTC
449 @@ -5009,14 +5009,18 @@ prefer_static=no
450 if test "$opt_static_link" = yes; then
453 + TINFO_LIBRARY=${prefix}/lib/libtinfo.a
454 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
455 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
458 - solaris2*|linux*) ;;
460 + solaris*) STATIC_LD= ;;
461 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
465 + TINFO_LIBRARY=-ltinfo
468 # set the appropriate make variables for building the "build tools"
469 @@ -5160,13 +5164,13 @@ $as_echo "$ac_cv_lib_termcap_tgetent" >&
470 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
471 bash_cv_termcap_lib=libtermcap
473 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
474 -$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
475 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in ${TINFO_LIBRARY}" >&5
476 +$as_echo_n "checking for tgetent in ${TINFO_LIBRARY}... " >&6; }
477 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
478 $as_echo_n "(cached) " >&6
480 ac_check_lib_save_LIBS=$LIBS
481 -LIBS="-ltinfo $LIBS"
482 +LIBS="${TINFO_LIBRARY} $LIBS"
483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
484 /* end confdefs.h. */
486 @@ -5345,7 +5349,7 @@ elif test $bash_cv_termcap_lib = libterm
487 TERMCAP_LIB=-ltermcap
489 elif test $bash_cv_termcap_lib = libtinfo; then
491 +TERMCAP_LIB=${TINFO_LIBRARY}
493 elif test $bash_cv_termcap_lib = libncurses; then
494 TERMCAP_LIB=-lncurses
495 @@ -20076,13 +20080,13 @@ $as_echo "$ac_cv_lib_termcap_tgetent" >&
496 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
497 bash_cv_termcap_lib=libtermcap
499 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
500 -$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
501 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in ${TINFO_LIBRARY}" >&5
502 +$as_echo_n "checking for tgetent in ${TINFO_LIBRARY}... " >&6; }
503 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
504 $as_echo_n "(cached) " >&6
506 ac_check_lib_save_LIBS=$LIBS
507 -LIBS="-ltinfo $LIBS"
508 +LIBS="${TINFO_LIBRARY} $LIBS"
509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
510 /* end confdefs.h. */
512 @@ -20261,7 +20265,7 @@ elif test $bash_cv_termcap_lib = libterm
513 TERMCAP_LIB=-ltermcap
515 elif test $bash_cv_termcap_lib = libtinfo; then
517 +TERMCAP_LIB=${TINFO_LIBRARY}
519 elif test $bash_cv_termcap_lib = libncurses; then
520 TERMCAP_LIB=-lncurses