# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= bash VERSION= 5.3.p9 KEYWORDS= shells VARIANTS= std static SDESC[std]= GNU Bourne Again SHell SDESC[static]= Static GNU Bourne Again SHell HOMEPAGE= http://www.gnu.org/software/bash/bash.html CONTACT= nobody DOWNLOAD_GROUPS= main patches SITES[main]= GNU/bash SITES[patches]= GNU/bash/bash-5.3-patches DISTFILE[1]= bash-5.3.tar.gz:main DISTFILE[2]= bash53-001:patches DISTFILE[3]= bash53-002:patches DISTFILE[4]= bash53-003:patches DISTFILE[5]= bash53-004:patches DISTFILE[6]= bash53-005:patches DISTFILE[7]= bash53-006:patches DISTFILE[8]= bash53-007:patches DISTFILE[9]= bash53-008:patches DISTFILE[10]= bash53-009:patches DIST_SUBDIR= bash DF_INDEX= 1 SPKGS[std]= set primary loadables dev nls man docs info SPKGS[static]= primary OPTIONS_AVAILABLE= STATIC NLS OPTIONS_STANDARD= STATIC NLS VOPTS[static]= STATIC=ON NLS=OFF OPT_ON[all]= NLS BUILD_DEPENDS= ncurses:dev:std RUN_DEPENDS= ncurses:terminfo:std USES= bison cpe DISTNAME= bash-5.3 LICENSE= GPLv3+:primary LICENSE_TERMS= primary:{{WRKDIR}}/TERMS LICENSE_FILE= GPLv3+:{{WRKSRC}}/COPYING LICENSE_AWK= TERMS:"" LICENSE_SOURCE= TERMS:{{WRKSRC}}/version.c LICENSE_SCHEME= solo CPE_VENDOR= gnu INFO_SUBDIR= . PATCHFILES= 2 3 4 5 6 7 8 9 10 MUST_CONFIGURE= gnu CONFIGURE_ARGS= --enable-progcomp --enable-process-substitution --enable-history --enable-help-builtin --enable-extended-glob --enable-dparen-arithmetic --enable-directory-stack --enable-debugger --enable-cond-regexp --enable-alias --enable-brace-expansion --enable-array-variables --without-bash-malloc INSTALL_REQ_TOOLCHAIN= yes CPPFLAGS= -DDEFAULT_PATH_VALUE='\"{{STANDARD_PATH}}:{{LOCALBASE}}/sbin:{{LOCALBASE}}/bin\"' -DSTANDARD_UTILS_PATH='\"{{STANDARD_PATH}}\"' VAR_OPSYS[freebsd]= VAR1=-Wl,--export-dynamic VAR_OPSYS[linux]= VAR1=-Wl,--export-dynamic VAR_OPSYS[netbsd]= VAR1=-Wl,--export-dynamic VAR_OPSYS[dragonfly]= VAR1=-Wl,--export-dynamic [STATIC].BUILDRUN_DEPENDS_OFF= ncurses:primary:std [STATIC].CONFIGURE_ARGS_OFF= --enable-readline [STATIC].CONFIGURE_ARGS_ON= --enable-static-link --enable-readline=no [STATIC].INFO_OFF= info:bash [STATIC].USES_OFF= makeinfo [NLS].CONFIGURE_ARGS_ON= --with-libiconv-prefix={{ICONV_PREFIX}} [NLS].CONFIGURE_ENABLE_BOTH= nls [NLS].USES_ON= gettext iconv post-patch: # Ensure y.tab.c is regenerated ${TOUCH} ${WRKSRC}/parse.y ${RM} ${WRKSRC}/y.tab.c ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/bash.1 post-install-STATIC-ON: ${RM} -r ${STAGEDIR}${STD_DOCDIR} # remove includes and preloadables # On linux, these build because bash isn't truly static linked if [ "${OPSYS}" = "Linux" ]; then \ ${RM} -r ${STAGEDIR}${PREFIX}/include/* ;\ ${RM} -r ${STAGEDIR}${PREFIX}/lib/bash ;\ ${RM} ${STAGEDIR}${PREFIX}/lib/pkgconfig/bash.pc ;\ fi post-install: ${LN} -sf bash ${STAGEDIR}${PREFIX}/bin/rbash ${RM} ${STAGEDIR}${STD_DOCDIR}/CHANGES post-configure: ${FIND} ${WRKSRC} -name Makefile -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|" [FILE:310:descriptions/desc.primary] This is GNU Bash. Bash is the GNU Project's Bourne Again SHell, a complete implementation of the POSIX.2 shell spec, but also with interactive command line editing, job control on architectures that support it, csh-like features such as history substitution and brace expansion, and a slew of other features. [FILE:57:descriptions/desc.loadables] This subpackage contains the loadable buildins for bash. [FILE:945:distinfo] 0d5cd86965f869a26cf64f4b71be7b96f90a3ba8b3d74e27e8e9d9d5550f31ba 11355854 bash/bash-5.3.tar.gz 1f608434364af86b9b45c8b0ea3fb3b165fb830d27697e6cdfc7ac17dee3287f 1531 bash/bash53-001 e385548a00130765ec7938a56fbdca52447ab41fabc95a25f19ade527e282001 2635 bash/bash53-002 f245d9c7dc3f5a20d84b53d249334747940936f09dc97e1dcb89fc3ab37d60ed 2683 bash/bash53-003 9591d245045529f32f0812f94180b9d9ce9023f5a765c039b852e5dfc99747d0 1266 bash/bash53-004 cca1ef52dbbf433bc98e33269b64b2c814028efe2538be1e2c9a377da90bc99d 1072 bash/bash53-005 29119addefed8eff91ae37fd51822c31780ee30d4a28376e96002706c995ff10 1346 bash/bash53-006 c0976bbfffa1453c7cfdd62058f206a318568ff2d690f5d4fa048793fa3eb299 1437 bash/bash53-007 097cd723cbfb8907674ac32214063a3fd85282657ec5b4e544d2c0f719653fb4 5717 bash/bash53-008 eee30fe78a4b0cb2fe20e010e00308899cfc613e0774ebb3c8557a1552f24f8c 2468 bash/bash53-009 [FILE:45:manifests/plist.primary] @shell bin/bash @shell bin/rbash bin/bashbug [FILE:344:manifests/plist.loadables] lib/bash/ Makefile.inc Makefile.sample accept basename chmod csv cut dirname dsv fdflags finfo fltexpr getconf head id kv ln loadables.h logname mkdir mkfifo mktemp mypid pathchk print printenv push realpath rm rmdir seq setpgid sleep stat strftime strptime sync tee truefalse tty uname unlink whoami [FILE:795:manifests/plist.dev] include/bash/ alias.h array.h arrayfunc.h assoc.h bashansi.h bashintl.h bashjmp.h bashtypes.h builtins.h command.h config-bot.h config-top.h config.h conftypes.h dispose_cmd.h error.h execute_cmd.h externs.h general.h hashlib.h jobs.h make_cmd.h pathnames.h quit.h shell.h sig.h siglist.h signames.h subst.h syntax.h unwind_prot.h variables.h version.h xmalloc.h y.tab.h include/bash/builtins/ bashgetopt.h builtext.h common.h getopt.h include/bash/include/ ansi_stdlib.h chartypes.h filecntl.h gettext.h maxpath.h memalloc.h ocache.h posixdir.h posixjmp.h posixselect.h posixstat.h posixtime.h posixwait.h shmbchar.h shmbutil.h shtty.h stat-time.h stdc.h systimes.h timer.h typemax.h unionwait.h unlocked-io.h lib/pkgconfig/bash.pc [FILE:1499:manifests/plist.nls] share/locale/af/LC_MESSAGES/bash.mo share/locale/bg/LC_MESSAGES/bash.mo share/locale/ca/LC_MESSAGES/bash.mo share/locale/cs/LC_MESSAGES/bash.mo share/locale/da/LC_MESSAGES/bash.mo share/locale/de/LC_MESSAGES/bash.mo share/locale/el/LC_MESSAGES/bash.mo share/locale/en@boldquot/LC_MESSAGES/bash.mo share/locale/en@quot/LC_MESSAGES/bash.mo share/locale/eo/LC_MESSAGES/bash.mo share/locale/es/LC_MESSAGES/bash.mo share/locale/et/LC_MESSAGES/bash.mo share/locale/fi/LC_MESSAGES/bash.mo share/locale/fr/LC_MESSAGES/bash.mo share/locale/ga/LC_MESSAGES/bash.mo share/locale/gl/LC_MESSAGES/bash.mo share/locale/hr/LC_MESSAGES/bash.mo share/locale/hu/LC_MESSAGES/bash.mo share/locale/id/LC_MESSAGES/bash.mo share/locale/it/LC_MESSAGES/bash.mo share/locale/ja/LC_MESSAGES/bash.mo share/locale/ka/LC_MESSAGES/bash.mo share/locale/ko/LC_MESSAGES/bash.mo share/locale/lt/LC_MESSAGES/bash.mo share/locale/nb/LC_MESSAGES/bash.mo share/locale/nl/LC_MESSAGES/bash.mo share/locale/pl/LC_MESSAGES/bash.mo share/locale/pt/LC_MESSAGES/bash.mo share/locale/pt_BR/LC_MESSAGES/bash.mo share/locale/ro/LC_MESSAGES/bash.mo share/locale/ru/LC_MESSAGES/bash.mo share/locale/sk/LC_MESSAGES/bash.mo share/locale/sl/LC_MESSAGES/bash.mo share/locale/sq/LC_MESSAGES/bash.mo share/locale/sr/LC_MESSAGES/bash.mo share/locale/sv/LC_MESSAGES/bash.mo share/locale/tr/LC_MESSAGES/bash.mo share/locale/uk/LC_MESSAGES/bash.mo share/locale/vi/LC_MESSAGES/bash.mo share/locale/zh_CN/LC_MESSAGES/bash.mo share/locale/zh_TW/LC_MESSAGES/bash.mo [FILE:35:manifests/plist.man] share/man/man1/ bash.1 bashbug.1 [FILE:89:manifests/plist.docs] share/doc/bash/ COMPAT FAQ INTRO NEWS POSIX RBASH README bash.html bashref.html [FILE:314:patches/patch-config-top.h] --- config-top.h.orig 2024-10-24 18:14:21 UTC +++ config-top.h @@ -79,7 +79,7 @@ #endif /* Default primary and secondary prompt strings. */ -#define PPROMPT "\\s-\\v\\$ " +#define PPROMPT "[\\u@\\h \\w]\\$ " #define SPROMPT "> " /* Undefine this if you don't want the ksh-compatible behavior of reprinting [FILE:237:patches/patch-doc_bash.1] --- doc/bash.1.orig 2025-04-30 13:04:32 UTC +++ doc/bash.1 @@ -13390,7 +13390,7 @@ http://tiswww.case.edu/\*~chet/bash/POSI .SH FILES .PD 0 .TP -.FN /bin/bash +.FN %%PREFIX%%/bin/bash The \fBbash\fP executable .TP .FN /etc/profile [FILE:874:patches/patch-doc_bashref.texi] --- doc/bashref.texi.orig 2025-05-27 15:56:19 UTC +++ doc/bashref.texi @@ -1,6 +1,6 @@ \input texinfo.tex @c -*- texinfo -*- @c %**start of header -@setfilename bashref.info +@setfilename bash.info @settitle Bash Reference Manual @include version.texi @@ -8,7 +8,7 @@ @copying This text is a brief description of the features that are present in -the Bash shell (version @value{VERSION}, @value{UPDATED}). +the Bash shell (version @value{VERSION}, @value{UPDATED}) This is Edition @value{EDITION}, last updated @value{UPDATED}, of @cite{The GNU Bash Reference Manual}, @@ -6720,7 +6720,7 @@ A common value is @item PS1 The primary prompt string. -The default value is @samp{\s-\v\$ }. +The default value is @samp{[\u@@\h \w]\$ }. @xref{Controlling the Prompt}, for the complete list of escape sequences that are expanded before @env{PS1} is displayed. [FILE:470:patches/patch-examples_loadables_Makefile.in] --- examples/loadables/Makefile.in.orig 2025-04-07 13:37:34 UTC +++ examples/loadables/Makefile.in @@ -301,7 +301,7 @@ install-supported: all installdirs insta @echo installing example loadable builtins in $(DESTDIR)${loadablesdir} @for prog in ${ALLPROG}; do \ echo $$prog ; \ - $(INSTALL_PROGRAM) $(INSTALLMODE) $$prog $(DESTDIR)$(loadablesdir)/$$prog ;\ + $(BSD_INSTALL_LIB) $(INSTALLMODE) $$prog $(DESTDIR)$(loadablesdir)/$$prog ;\ done uninstall-dev: [FILE:226:patches/patch-examples_loadables_fdflags.c] --- examples/loadables/fdflags.c.orig 2023-11-27 23:53:21 UTC +++ examples/loadables/fdflags.c @@ -121,6 +121,8 @@ static const struct #ifdef O_CLOEXEC { "cloexec", O_CLOEXEC }, +#else +#define O_CLOEXEC 0 #endif }; [FILE:274:patches/patch-examples_loadables_finfo.c] --- examples/loadables/finfo.c.orig 2023-10-30 19:01:06 UTC +++ examples/loadables/finfo.c @@ -28,7 +28,7 @@ #endif #include -#ifdef MAJOR_IN_MKDEV +#if defined MAJOR_IN_MKDEV || defined __sun__ # include #endif #ifdef MAJOR_IN_SYSMACROS [FILE:399:patches/patch-lib_readline_rlprivate.h] --- lib/readline/rlprivate.h.orig 2025-03-07 23:51:02 UTC +++ lib/readline/rlprivate.h @@ -457,6 +457,8 @@ extern void _rl_sigwinch_resize_terminal extern int _rl_init_terminal_io (const char *); #ifdef _MINIX extern void _rl_output_character_function (int); +#elif defined __sun__ +extern int _rl_output_character_function (char); #else extern int _rl_output_character_function (int); #endif [FILE:355:patches/patch-lib_readline_terminal.c] --- lib/readline/terminal.c.orig 2025-06-11 15:05:41 UTC +++ lib/readline/terminal.c @@ -809,6 +809,12 @@ _rl_output_character_function (int c) { putc (c, _rl_out_stream); } +#elif defined(__sun__) +int +_rl_output_character_function (char c) +{ + return putc (c, _rl_out_stream); +} #else /* !_MINIX */ int _rl_output_character_function (int c) [FILE:266:patches/patch-lib_termcap_ltcap.h] --- lib/termcap/ltcap.h.orig 2009-01-04 19:32:36 UTC +++ lib/termcap/ltcap.h @@ -19,9 +19,7 @@ #ifndef _LTCAP_H_ #define _LTCAP_H_ 1 -#if !defined (__APPLE__) # define __private_extern__ -#endif #ifndef MAX_TGETENT_BUFSIZ # define MAX_TGETENT_BUFSIZ 2048 [FILE:302:patches/patch-support_shobj-conf] --- support/shobj-conf.orig 2024-02-14 15:42:57 UTC +++ support/shobj-conf @@ -115,7 +115,7 @@ sunos5*-*gcc*|solaris2*-*gcc*) sunos5*|solaris2*) SHOBJ_CFLAGS='-fPIC' # was -K pic - SHOBJ_LD=/usr/ccs/bin/ld + SHOBJ_LD=ld SHOBJ_LDFLAGS='-G -dy -z text -i -h $@' # SHLIB_XLDFLAGS='-R $(libdir)' [FILE:685:files/special.mk] # On linux with glibc, we can't build a fully static bash because # of absurd restrictions put on static linking with nss, dlopen, etc. # So we build it dynamic but with libtinfo static. Leaving glibc-based # libraries like libc, libm, pthread, etc, is okay. .if ${OPSYS} == Linux . if "${PLIST_SUB:MSTATIC-ON=*}" == "STATIC-ON=" CONFIGURE_ARGS:= ${CONFIGURE_ARGS:N--enable-static-link} TINFOLIBS= ${LOCALBASE}/lib/libtinfo.a \ -lpthread post-configure-opsys: ${REINPLACE_CMD} -e 's|-ltinfo|${TINFOLIBS}|' ${WRKSRC}/Makefile . endif .endif # we could have used LDFLAGS_OFF options helper, but it doesn't # currently exist .if ${VARIANT} != static LDFLAGS+= ${VAR1} .endif [FILE:2620:sunos/patch-configure] --- configure.orig 2025-06-30 14:05:30 UTC +++ configure @@ -5402,15 +5402,18 @@ prefer_static=no if test "$opt_static_link" = yes; then prefer_static=yes prefer_shared=no + TINFO_LIBRARY=${prefix}/lib/libtinfo.a # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2 if test "$GCC" = "yes"; then STATIC_LD="-static" case "$host_os" in - solaris2*) ;; + solaris2*) STATIC_LD= ;; linux*) test "$opt_profiling" = "no" && LDFLAGS="$LDFLAGS -static" ;; *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental esac fi +else + TINFO_LIBRARY=-ltinfo fi # set the appropriate make variables for building the "build tools" @@ -5524,14 +5527,14 @@ if test "x$ac_cv_lib_termcap_tgetent" = then : bash_cv_termcap_lib=libtermcap else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 -printf %s "checking for tgetent in -ltinfo... " >&6; } + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in ${TINFO_LIBRARY}" >&5 +printf %s "checking for tgetent in ${TINFO_LIBRARY}... " >&6; } if test ${ac_cv_lib_tinfo_tgetent+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS -LIBS="-ltinfo $LIBS" +LIBS="${TINFO_LIBRARY} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5748,7 +5751,7 @@ elif test $bash_cv_termcap_lib = libterm TERMCAP_LIB=-ltermcap TERMCAP_DEP= elif test $bash_cv_termcap_lib = libtinfo; then -TERMCAP_LIB=-ltinfo +TERMCAP_LIB=${TINFO_LIBRARY} TERMCAP_DEP= elif test $bash_cv_termcap_lib = libncursesw; then TERMCAP_LIB=-lncursesw @@ -22757,14 +22760,14 @@ if test "x$ac_cv_lib_termcap_tgetent" = then : bash_cv_termcap_lib=libtermcap else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 -printf %s "checking for tgetent in -ltinfo... " >&6; } + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in ${TINFO_LIBRARY}" >&5 +printf %s "checking for tgetent in ${TINFO_LIBRARY}... " >&6; } if test ${ac_cv_lib_tinfo_tgetent+y} then : printf %s "(cached) " >&6 else case e in #( e) ac_check_lib_save_LIBS=$LIBS -LIBS="-ltinfo $LIBS" +LIBS="${TINFO_LIBRARY} $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -22981,7 +22984,7 @@ elif test $bash_cv_termcap_lib = libterm TERMCAP_LIB=-ltermcap TERMCAP_DEP= elif test $bash_cv_termcap_lib = libtinfo; then -TERMCAP_LIB=-ltinfo +TERMCAP_LIB=${TINFO_LIBRARY} TERMCAP_DEP= elif test $bash_cv_termcap_lib = libncursesw; then TERMCAP_LIB=-lncursesw