Ravenports generated: 09 Dec 2022 21:46
[ravenports.git] / bucket_C8 / bash
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               bash
4 VERSION=                5.2.p12
5 KEYWORDS=               shells
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
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main patches
13 SITES[main]=            GNU/bash
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 DIST_SUBDIR=            bash
29 DF_INDEX=               1
30 SPKGS[standard]=        complete
31                         primary
32                         nls
33                         docs
34 SPKGS[static]=          primary
35
36 OPTIONS_AVAILABLE=      STATIC NLS NOTSTD
37 OPTIONS_STANDARD=       STATIC NLS
38 VOPTS[static]=          STATIC=ON NLS=OFF NOTSTD=ON
39 OPT_ON[all]=            NLS
40
41 USES=                   bison cpe solaris-funcs
42
43 DISTNAME=               bash-5.2
44
45 LICENSE=                GPLv3+:primary
46 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
47 LICENSE_FILE=           GPLv3+:{{WRKSRC}}/COPYING
48 LICENSE_AWK=            TERMS:"<config.h>"
49 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/version.c
50 LICENSE_SCHEME=         solo
51
52 CPE_VENDOR=             gnu
53 INFO_SUBDIR=            .
54 SOL_FUNCTIONS=          mkdtemp:lib/sh/tmpfile.c
55
56 MUST_CONFIGURE=         gnu
57 CONFIGURE_ARGS=         --enable-readline
58                         --enable-progcomp
59                         --enable-process-substitution
60                         --enable-history
61                         --enable-help-builtin
62                         --enable-extended-glob
63                         --enable-dparen-arithmetic
64                         --enable-directory-stack
65                         --enable-debugger
66                         --enable-cond-regexp
67                         --enable-alias
68                         --enable-brace-expansion
69                         --enable-array-variables
70                         --without-bash-malloc
71
72 INSTALL_REQ_TOOLCHAIN=  yes
73
74 CPPFLAGS=               -DDEFAULT_PATH_VALUE='\"{{STANDARD_PATH}}:{{LOCALBASE}}/sbin:{{LOCALBASE}}/bin\"'
75                         -DSTANDARD_UTILS_PATH='\"{{STANDARD_PATH}}\"'
76 VAR_OPSYS[freebsd]=     VAR1=-Wl,--export-dynamic
77 VAR_OPSYS[linux]=       VAR1=-Wl,--export-dynamic
78 VAR_OPSYS[dragonfly]=   VAR1=-Wl,--export-dynamic
79
80 [NOTSTD].DESCRIPTION=                   Non-standard designation
81 [NOTSTD].INFO_OFF=                      primary:bash
82 [NOTSTD].USES_OFF=                      makeinfo
83
84 [STATIC].BUILDRUN_DEPENDS_OFF=          ncurses:primary:standard
85 [STATIC].BUILD_DEPENDS_ON=              ncurses:primary:static
86 [STATIC].CFLAGS_ON=                     -fcommon
87
88 [NLS].CONFIGURE_ARGS_ON=                --with-libiconv-prefix={{ICONV_PREFIX}}
89 [NLS].CONFIGURE_ENABLE_BOTH=            nls
90 [NLS].USES_ON=                          gettext-runtime
91                                         iconv
92
93 post-patch:
94         # Ensure y.tab.c is regenerated
95         ${TOUCH} ${WRKSRC}/parse.y
96         ${RM} ${WRKSRC}/y.tab.c
97         ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/bash.1
98
99 post-install-NOTSTD-ON:
100         ${RM} -r ${STAGEDIR}${STD_DOCDIR}
101
102 post-install-STATIC-ON:
103         # These are not installed when --enable-static-link set
104         ${RM} -r ${STAGEDIR}${PREFIX}/include
105         ${RM} -r ${STAGEDIR}${PREFIX}/lib
106
107 post-install:
108         ${LN} -sf bash ${STAGEDIR}${PREFIX}/bin/rbash
109         ${RM} ${STAGEDIR}${STD_DOCDIR}/CHANGES
110
111 post-configure:
112         ${FIND} ${WRKSRC} -name Makefile -print0 | ${XARGS} -0 \
113                 ${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|"
114
115 [FILE:310:descriptions/desc.primary]
116 This is GNU Bash.  Bash is the GNU Project's Bourne Again SHell,
117 a complete implementation of the POSIX.2 shell spec, but also
118 with interactive command line editing, job control on architectures
119 that support it, csh-like features such as history substitution and
120 brace expansion, and a slew of other features.
121
122
123 [FILE:1227:distinfo]
124 a139c166df7ff4471c5e0733051642ee5556c1cc8a4a78f145583c5c81ab32fb     10950833 bash/bash-5.2.tar.gz
125 f42f2fee923bc2209f406a1892772121c467f44533bedfe00a176139da5d310a         1381 bash/bash52-001
126 45cc5e1b876550eee96f95bffb36c41b6cb7c07d33f671db5634405cd00fd7b8         1328 bash/bash52-002
127 6a090cdbd334306fceacd0e4a1b9e0b0678efdbbdedbd1f5842035990c8abaff         2157 bash/bash52-003
128 38827724bba908cf5721bd8d4e595d80f02c05c35f3dd7dbc4cd3c5678a42512         2016 bash/bash52-004
129 ece0eb544368b3b4359fb8464caa9d89c7a6743c8ed070be1c7d599c3675d357         1515 bash/bash52-005
130 d1e0566a257d149a0d99d450ce2885123f9995e9c01d0a5ef6df7044a72a468c         8790 bash/bash52-006
131 2500a3fc21cb08133f06648a017cebfa27f30ea19c8cbe8dfefdf16227cfd490         9072 bash/bash52-007
132 6b4bd92fd0099d1bab436b941875e99e0cb3c320997587182d6267af1844b1e8         1771 bash/bash52-008
133 f95a817882eaeb0cb78bce82859a86bbb297a308ced730ebe449cd504211d3cd         1316 bash/bash52-009
134 c7705e029f752507310ecd7270aef437e8043a9959e4d0c6065a82517996c1cd         2045 bash/bash52-010
135 831b5f25bf3e88625f3ab315043be7498907c551f86041fa3b914123d79eb6f4         1229 bash/bash52-011
136 2fb107ce1fb8e93f36997c8b0b2743fc1ca98a454c7cc5a3fcabec533f67d42c         9107 bash/bash52-012
137
138
139 [FILE:1240:manifests/plist.primary]
140 @shell bin/bash
141 @shell bin/rbash
142 %%NOTSTD-OFF%%share/man/man1/
143  bash.1.gz
144  bashbug.1.gz
145 %%STATIC-OFF%%include/bash/
146  alias.h
147  array.h
148  arrayfunc.h
149  assoc.h
150  bashansi.h
151  bashintl.h
152  bashjmp.h
153  bashtypes.h
154  builtins.h
155  command.h
156  config-bot.h
157  config-top.h
158  config.h
159  conftypes.h
160  dispose_cmd.h
161  error.h
162  execute_cmd.h
163  externs.h
164  general.h
165  hashlib.h
166  jobs.h
167  make_cmd.h
168  pathnames.h
169  quit.h
170  shell.h
171  sig.h
172  siglist.h
173  signames.h
174  subst.h
175  syntax.h
176  unwind_prot.h
177  variables.h
178  version.h
179  xmalloc.h
180  y.tab.h
181 %%STATIC-OFF%%include/bash/builtins/
182  bashgetopt.h
183  builtext.h
184  common.h
185  getopt.h
186 %%STATIC-OFF%%include/bash/include/
187  ansi_stdlib.h
188  chartypes.h
189  filecntl.h
190  gettext.h
191  maxpath.h
192  memalloc.h
193  ocache.h
194  posixdir.h
195  posixjmp.h
196  posixstat.h
197  posixtime.h
198  posixwait.h
199  shmbchar.h
200  shmbutil.h
201  shtty.h
202  stat-time.h
203  stdc.h
204  systimes.h
205  typemax.h
206  unionwait.h
207 %%STATIC-OFF%%lib/bash/
208  Makefile.inc
209  Makefile.sample
210  accept
211  basename
212  csv
213  cut
214  dirname
215  dsv
216  fdflags
217  finfo
218  getconf
219  head
220  id
221  ln
222  loadables.h
223  logname
224  mkdir
225  mkfifo
226  mktemp
227  mypid
228  pathchk
229  print
230  printenv
231  push
232  realpath
233  rm
234  rmdir
235  seq
236  setpgid
237  sleep
238  stat
239  strftime
240  sync
241  tee
242  truefalse
243  tty
244  uname
245  unlink
246  whoami
247 %%STATIC-OFF%%lib/pkgconfig/bash.pc
248 bin/bashbug
249
250
251 [FILE:1427:manifests/plist.nls]
252 share/locale/af/LC_MESSAGES/bash.mo
253 share/locale/bg/LC_MESSAGES/bash.mo
254 share/locale/ca/LC_MESSAGES/bash.mo
255 share/locale/cs/LC_MESSAGES/bash.mo
256 share/locale/da/LC_MESSAGES/bash.mo
257 share/locale/de/LC_MESSAGES/bash.mo
258 share/locale/el/LC_MESSAGES/bash.mo
259 share/locale/en@boldquot/LC_MESSAGES/bash.mo
260 share/locale/en@quot/LC_MESSAGES/bash.mo
261 share/locale/eo/LC_MESSAGES/bash.mo
262 share/locale/es/LC_MESSAGES/bash.mo
263 share/locale/et/LC_MESSAGES/bash.mo
264 share/locale/fi/LC_MESSAGES/bash.mo
265 share/locale/fr/LC_MESSAGES/bash.mo
266 share/locale/ga/LC_MESSAGES/bash.mo
267 share/locale/gl/LC_MESSAGES/bash.mo
268 share/locale/hr/LC_MESSAGES/bash.mo
269 share/locale/hu/LC_MESSAGES/bash.mo
270 share/locale/id/LC_MESSAGES/bash.mo
271 share/locale/it/LC_MESSAGES/bash.mo
272 share/locale/ja/LC_MESSAGES/bash.mo
273 share/locale/ko/LC_MESSAGES/bash.mo
274 share/locale/lt/LC_MESSAGES/bash.mo
275 share/locale/nb/LC_MESSAGES/bash.mo
276 share/locale/nl/LC_MESSAGES/bash.mo
277 share/locale/pl/LC_MESSAGES/bash.mo
278 share/locale/pt/LC_MESSAGES/bash.mo
279 share/locale/pt_BR/LC_MESSAGES/bash.mo
280 share/locale/ro/LC_MESSAGES/bash.mo
281 share/locale/ru/LC_MESSAGES/bash.mo
282 share/locale/sk/LC_MESSAGES/bash.mo
283 share/locale/sl/LC_MESSAGES/bash.mo
284 share/locale/sr/LC_MESSAGES/bash.mo
285 share/locale/sv/LC_MESSAGES/bash.mo
286 share/locale/tr/LC_MESSAGES/bash.mo
287 share/locale/uk/LC_MESSAGES/bash.mo
288 share/locale/vi/LC_MESSAGES/bash.mo
289 share/locale/zh_CN/LC_MESSAGES/bash.mo
290 share/locale/zh_TW/LC_MESSAGES/bash.mo
291
292
293 [FILE:89:manifests/plist.docs]
294 share/doc/bash/
295  COMPAT
296  FAQ
297  INTRO
298  NEWS
299  POSIX
300  RBASH
301  README
302  bash.html
303  bashref.html
304
305
306 [FILE:314:patches/patch-config-top.h]
307 --- config-top.h.orig   2021-11-05 13:11:12 UTC
308 +++ config-top.h
309 @@ -84,7 +84,7 @@
310  #endif
311  
312  /* Default primary and secondary prompt strings. */
313 -#define PPROMPT "\\s-\\v\\$ "
314 +#define PPROMPT "[\\u@\\h \\w]\\$ "
315  #define SPROMPT "> "
316  
317  /* Undefine this if you don't want the ksh-compatible behavior of reprinting
318
319
320 [FILE:498:patches/patch-doc_bash.1]
321 --- doc/bash.1.orig     2022-09-19 15:36:55 UTC
322 +++ doc/bash.1
323 @@ -2561,7 +2561,7 @@ The value of this parameter is expanded
324  .SM
325  .B PROMPTING
326  below) and used as the primary prompt string.  The default value is
327 -``\fB\es\-\ev\e$ \fP''.
328 +``\fB\eu\@\eh\e$ \fP''.
329  .TP
330  .B PS2
331  The value of this parameter is expanded as with
332 @@ -11661,7 +11661,7 @@ http://tiswww.case.edu/~chet/bash/POSIX
333  .SH FILES
334  .PD 0
335  .TP
336 -.FN /bin/bash
337 +.FN %%PREFIX%%/bin/bash
338  The \fBbash\fP executable
339  .TP
340  .FN /etc/profile
341
342
343 [FILE:944:patches/patch-doc_bashref.texi]
344 --- doc/bashref.texi.orig       2022-09-19 15:41:39 UTC
345 +++ doc/bashref.texi
346 @@ -1,6 +1,6 @@
347  \input texinfo.tex @c -*- texinfo -*-
348  @c %**start of header
349 -@setfilename bashref.info
350 +@setfilename bash.info
351  @settitle Bash Reference Manual
352  
353  @include version.texi
354 @@ -8,7 +8,7 @@
355  
356  @copying
357  This text is a brief description of the features that are present in
358 -the Bash shell (version @value{VERSION}, @value{UPDATED}).
359 +the Bash shell (version @value{VERSION}, @value{UPDATED})
360  
361  This is Edition @value{EDITION}, last updated @value{UPDATED},
362  of @cite{The GNU Bash Reference Manual},
363 @@ -6004,7 +6004,7 @@ A null directory name may appear as two
364  or trailing colon.
365  
366  @item PS1
367 -The primary prompt string.  The default value is @samp{\s-\v\$ }.
368 +The primary prompt string.  The default value is @samp{[\u@@\h \w]\$ }.
369  @xref{Controlling the Prompt}, for the complete list of escape
370  sequences that are expanded before @env{PS1} is displayed.
371  
372
373
374 [FILE:226:patches/patch-examples_loadables_fdflags.c]
375 --- examples/loadables/fdflags.c.orig   2022-07-26 14:16:57 UTC
376 +++ examples/loadables/fdflags.c
377 @@ -109,6 +109,8 @@ static const struct
378  
379  #ifdef O_CLOEXEC
380    { "cloexec", O_CLOEXEC       },
381 +#else
382 +#define O_CLOEXEC 0
383  #endif
384  };
385  
386
387
388 [FILE:533:patches/patch-lib_readline_display.c]
389 --- lib/readline/display.c.orig 2022-04-05 14:47:31 UTC
390 +++ lib/readline/display.c
391 @@ -953,7 +953,10 @@ rl_redisplay (void)
392       the line breaks in the prompt string in expand_prompt, taking invisible
393       characters into account, and if lpos exceeds the screen width, we copy
394       the data in the loop below. */
395 +  if (local_prompt)
396    lpos = prompt_physical_chars + modmark;
397 +  else
398 +    lpos = 0;
399  
400  #if defined (HANDLE_MULTIBYTE)
401    memset (line_state_invisible->wrapped_line, 0, line_state_invisible->wbsize * sizeof (int));
402
403
404 [FILE:266:patches/patch-lib_termcap_ltcap.h]
405 --- lib/termcap/ltcap.h.orig    2009-01-04 19:32:36 UTC
406 +++ lib/termcap/ltcap.h
407 @@ -19,9 +19,7 @@
408  #ifndef _LTCAP_H_
409  #define _LTCAP_H_ 1
410  
411 -#if !defined (__APPLE__)
412  #  define __private_extern__
413 -#endif
414  
415  #ifndef MAX_TGETENT_BUFSIZ
416  #  define MAX_TGETENT_BUFSIZ 2048
417
418
419 [FILE:656:patches/patch-support_shobj-conf]
420 --- support/shobj-conf.orig     2021-12-03 15:54:46 UTC
421 +++ support/shobj-conf
422 @@ -113,7 +113,7 @@ sunos5*-*gcc*|solaris2*-*gcc*)
423         SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)'
424         ;;
425  
426 -sunos5*|solaris2*)
427 +sunos5*)
428         SHOBJ_CFLAGS='-K pic'
429         SHOBJ_LD=/usr/ccs/bin/ld
430         SHOBJ_LDFLAGS='-G -dy -z text -i -h $@'
431 @@ -123,7 +123,7 @@ sunos5*|solaris2*)
432         ;;
433  
434  # All versions of Linux (including Gentoo/FreeBSD) or the semi-mythical GNU Hurd.
435 -linux*-*|gnu*-*|k*bsd*-gnu-*|midnightbsd*|freebsd*|dragonfly*)
436 +linux*-*|gnu*-*|k*bsd*-gnu-*|midnightbsd*|freebsd*|dragonfly*|solaris*)
437         SHOBJ_CFLAGS=-fPIC
438         SHOBJ_LD='${CC}'
439         SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'
440
441
442 [FILE:757:files/special.mk]
443 # On linux with glibc, we can't build a fully static bash because
444 # of absurd restrictions put on static linking with nss, dlopen, etc.
445 # So we build it dynamic but with libtinfo static.  Leaving glibc-based
446 # libraries like libc, libm, pthread, etc, is okay.
447
448 .if ${OPSYS} == Linux
449 .  if "${PLIST_SUB:MSTATIC-ON=*}" == "STATIC-ON="
450 CONFIGURE_ARGS:=        ${CONFIGURE_ARGS:N--enable-static-link}
451 CONFIGURE_ENV+=         ac_cv_func_dlopen=no
452
453 TINFOLIBS=              ${LOCALBASE}/lib/libtinfo.a \
454                         ${LOCALBASE}/lib/db5/libdb.a \
455                         -lpthread
456
457 post-configure-opsys:
458         ${REINPLACE_CMD} -e 's|-ltinfo|${TINFOLIBS}|' ${WRKSRC}/Makefile
459 .  endif
460 .endif
461
462 # we could have used LDFLAGS_OFF options helper, but it doesn't
463 # currently exist
464
465 .if ${VARIANT} != static
466 LDFLAGS+=       ${VAR1}
467 .endif
468
469
470 [FILE:2609:sunos/patch-configure]
471 --- configure.orig      2020-12-04 14:05:14 UTC
472 +++ configure
473 @@ -5009,14 +5009,18 @@ prefer_static=no
474  if test "$opt_static_link" = yes; then
475         prefer_static=yes
476         prefer_shared=no
477 +       TINFO_LIBRARY=${prefix}/lib/libtinfo.a
478         # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
479         if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
480                 STATIC_LD="-static"
481                 case "$host_os" in
482 -               solaris2*|linux*)       ;;
483 +               linux*) ;;
484 +               solaris*)       STATIC_LD= ;;
485                 *)              LDFLAGS="$LDFLAGS -static" ;;   # XXX experimental
486                 esac
487         fi
488 +else
489 +       TINFO_LIBRARY=-ltinfo
490  fi
491  
492  # set the appropriate make variables for building the "build tools"
493 @@ -5160,13 +5164,13 @@ $as_echo "$ac_cv_lib_termcap_tgetent" >&
494  if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
495    bash_cv_termcap_lib=libtermcap
496  else
497 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
498 -$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
499 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in ${TINFO_LIBRARY}" >&5
500 +$as_echo_n "checking for tgetent in ${TINFO_LIBRARY}... " >&6; }
501  if ${ac_cv_lib_tinfo_tgetent+:} false; then :
502    $as_echo_n "(cached) " >&6
503  else
504    ac_check_lib_save_LIBS=$LIBS
505 -LIBS="-ltinfo  $LIBS"
506 +LIBS="${TINFO_LIBRARY}  $LIBS"
507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
508  /* end confdefs.h.  */
509  
510 @@ -5345,7 +5349,7 @@ elif test $bash_cv_termcap_lib = libterm
511  TERMCAP_LIB=-ltermcap
512  TERMCAP_DEP=
513  elif test $bash_cv_termcap_lib = libtinfo; then
514 -TERMCAP_LIB=-ltinfo
515 +TERMCAP_LIB=${TINFO_LIBRARY}
516  TERMCAP_DEP=
517  elif test $bash_cv_termcap_lib = libncurses; then
518  TERMCAP_LIB=-lncurses
519 @@ -20076,13 +20080,13 @@ $as_echo "$ac_cv_lib_termcap_tgetent" >&
520  if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
521    bash_cv_termcap_lib=libtermcap
522  else
523 -  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
524 -$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
525 +  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in ${TINFO_LIBRARY}" >&5
526 +$as_echo_n "checking for tgetent in ${TINFO_LIBRARY}... " >&6; }
527  if ${ac_cv_lib_tinfo_tgetent+:} false; then :
528    $as_echo_n "(cached) " >&6
529  else
530    ac_check_lib_save_LIBS=$LIBS
531 -LIBS="-ltinfo  $LIBS"
532 +LIBS="${TINFO_LIBRARY}  $LIBS"
533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
534  /* end confdefs.h.  */
535  
536 @@ -20261,7 +20265,7 @@ elif test $bash_cv_termcap_lib = libterm
537  TERMCAP_LIB=-ltermcap
538  TERMCAP_DEP=
539  elif test $bash_cv_termcap_lib = libtinfo; then
540 -TERMCAP_LIB=-ltinfo
541 +TERMCAP_LIB=${TINFO_LIBRARY}
542  TERMCAP_DEP=
543  elif test $bash_cv_termcap_lib = libncurses; then
544  TERMCAP_LIB=-lncurses
545