Ravenports generated: 02 Oct 2022 02:46
[ravenports.git] / bucket_C8 / bash
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               bash
4 VERSION=                5.2
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 DIST_SUBDIR=            bash
17 DF_INDEX=               1
18 SPKGS[standard]=        complete
19                         primary
20                         nls
21                         docs
22 SPKGS[static]=          primary
23
24 OPTIONS_AVAILABLE=      STATIC NLS NOTSTD
25 OPTIONS_STANDARD=       STATIC NLS
26 VOPTS[static]=          STATIC=ON NLS=OFF NOTSTD=ON
27 OPT_ON[all]=            NLS
28
29 USES=                   bison cpe solaris-funcs
30
31 DISTNAME=               bash-5.2
32
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
38 LICENSE_SCHEME=         solo
39
40 CPE_VENDOR=             gnu
41 INFO_SUBDIR=            .
42 SOL_FUNCTIONS=          mkdtemp:lib/sh/tmpfile.c
43
44 MUST_CONFIGURE=         gnu
45 CONFIGURE_ARGS=         --enable-readline
46                         --enable-progcomp
47                         --enable-process-substitution
48                         --enable-history
49                         --enable-help-builtin
50                         --enable-extended-glob
51                         --enable-dparen-arithmetic
52                         --enable-directory-stack
53                         --enable-debugger
54                         --enable-cond-regexp
55                         --enable-alias
56                         --enable-brace-expansion
57                         --enable-array-variables
58                         --without-bash-malloc
59
60 INSTALL_REQ_TOOLCHAIN=  yes
61
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
67
68 [NOTSTD].DESCRIPTION=                   Non-standard designation
69 [NOTSTD].INFO_OFF=                      primary:bash
70 [NOTSTD].USES_OFF=                      makeinfo
71
72 [STATIC].BUILDRUN_DEPENDS_OFF=          ncurses:primary:standard
73 [STATIC].BUILD_DEPENDS_ON=              ncurses:primary:static
74 [STATIC].CFLAGS_ON=                     -fcommon
75
76 [NLS].CONFIGURE_ARGS_ON=                --with-libiconv-prefix={{ICONV_PREFIX}}
77 [NLS].CONFIGURE_ENABLE_BOTH=            nls
78 [NLS].USES_ON=                          gettext-runtime
79                                         iconv
80
81 post-patch:
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
86
87 post-install-NOTSTD-ON:
88         ${RM} -r ${STAGEDIR}${STD_DOCDIR}
89
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
94
95 post-install:
96         ${LN} -sf bash ${STAGEDIR}${PREFIX}/bin/rbash
97         ${RM} ${STAGEDIR}${STD_DOCDIR}/CHANGES
98
99 post-configure:
100         ${FIND} ${WRKSRC} -name Makefile -print0 | ${XARGS} -0 \
101                 ${REINPLACE_CMD} -e "s|^DESTDIR *=|& ${DESTDIR}|"
102
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.
109
110
111 [FILE:99:distinfo]
112 a139c166df7ff4471c5e0733051642ee5556c1cc8a4a78f145583c5c81ab32fb     10950833 bash/bash-5.2.tar.gz
113
114
115 [FILE:1240:manifests/plist.primary]
116 @shell bin/bash
117 @shell bin/rbash
118 %%NOTSTD-OFF%%share/man/man1/
119  bash.1.gz
120  bashbug.1.gz
121 %%STATIC-OFF%%include/bash/
122  alias.h
123  array.h
124  arrayfunc.h
125  assoc.h
126  bashansi.h
127  bashintl.h
128  bashjmp.h
129  bashtypes.h
130  builtins.h
131  command.h
132  config-bot.h
133  config-top.h
134  config.h
135  conftypes.h
136  dispose_cmd.h
137  error.h
138  execute_cmd.h
139  externs.h
140  general.h
141  hashlib.h
142  jobs.h
143  make_cmd.h
144  pathnames.h
145  quit.h
146  shell.h
147  sig.h
148  siglist.h
149  signames.h
150  subst.h
151  syntax.h
152  unwind_prot.h
153  variables.h
154  version.h
155  xmalloc.h
156  y.tab.h
157 %%STATIC-OFF%%include/bash/builtins/
158  bashgetopt.h
159  builtext.h
160  common.h
161  getopt.h
162 %%STATIC-OFF%%include/bash/include/
163  ansi_stdlib.h
164  chartypes.h
165  filecntl.h
166  gettext.h
167  maxpath.h
168  memalloc.h
169  ocache.h
170  posixdir.h
171  posixjmp.h
172  posixstat.h
173  posixtime.h
174  posixwait.h
175  shmbchar.h
176  shmbutil.h
177  shtty.h
178  stat-time.h
179  stdc.h
180  systimes.h
181  typemax.h
182  unionwait.h
183 %%STATIC-OFF%%lib/bash/
184  Makefile.inc
185  Makefile.sample
186  accept
187  basename
188  csv
189  cut
190  dirname
191  dsv
192  fdflags
193  finfo
194  getconf
195  head
196  id
197  ln
198  loadables.h
199  logname
200  mkdir
201  mkfifo
202  mktemp
203  mypid
204  pathchk
205  print
206  printenv
207  push
208  realpath
209  rm
210  rmdir
211  seq
212  setpgid
213  sleep
214  stat
215  strftime
216  sync
217  tee
218  truefalse
219  tty
220  uname
221  unlink
222  whoami
223 %%STATIC-OFF%%lib/pkgconfig/bash.pc
224 bin/bashbug
225
226
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
267
268
269 [FILE:89:manifests/plist.docs]
270 share/doc/bash/
271  COMPAT
272  FAQ
273  INTRO
274  NEWS
275  POSIX
276  RBASH
277  README
278  bash.html
279  bashref.html
280
281
282 [FILE:314:patches/patch-config-top.h]
283 --- config-top.h.orig   2021-11-05 13:11:12 UTC
284 +++ config-top.h
285 @@ -84,7 +84,7 @@
286  #endif
287  
288  /* Default primary and secondary prompt strings. */
289 -#define PPROMPT "\\s-\\v\\$ "
290 +#define PPROMPT "[\\u@\\h \\w]\\$ "
291  #define SPROMPT "> "
292  
293  /* Undefine this if you don't want the ksh-compatible behavior of reprinting
294
295
296 [FILE:498:patches/patch-doc_bash.1]
297 --- doc/bash.1.orig     2022-09-19 15:36:55 UTC
298 +++ doc/bash.1
299 @@ -2561,7 +2561,7 @@ The value of this parameter is expanded
300  .SM
301  .B PROMPTING
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''.
305  .TP
306  .B PS2
307  The value of this parameter is expanded as with
308 @@ -11661,7 +11661,7 @@ http://tiswww.case.edu/~chet/bash/POSIX
309  .SH FILES
310  .PD 0
311  .TP
312 -.FN /bin/bash
313 +.FN %%PREFIX%%/bin/bash
314  The \fBbash\fP executable
315  .TP
316  .FN /etc/profile
317
318
319 [FILE:944:patches/patch-doc_bashref.texi]
320 --- doc/bashref.texi.orig       2022-09-19 15:41:39 UTC
321 +++ doc/bashref.texi
322 @@ -1,6 +1,6 @@
323  \input texinfo.tex @c -*- texinfo -*-
324  @c %**start of header
325 -@setfilename bashref.info
326 +@setfilename bash.info
327  @settitle Bash Reference Manual
328  
329  @include version.texi
330 @@ -8,7 +8,7 @@
331  
332  @copying
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})
336  
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
340  or trailing colon.
341  
342  @item PS1
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.
347  
348
349
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
354  
355  #ifdef O_CLOEXEC
356    { "cloexec", O_CLOEXEC       },
357 +#else
358 +#define O_CLOEXEC 0
359  #endif
360  };
361  
362
363
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. */
371 +  if (local_prompt)
372    lpos = prompt_physical_chars + modmark;
373 +  else
374 +    lpos = 0;
375  
376  #if defined (HANDLE_MULTIBYTE)
377    memset (line_state_invisible->wrapped_line, 0, line_state_invisible->wbsize * sizeof (int));
378
379
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
383 @@ -19,9 +19,7 @@
384  #ifndef _LTCAP_H_
385  #define _LTCAP_H_ 1
386  
387 -#if !defined (__APPLE__)
388  #  define __private_extern__
389 -#endif
390  
391  #ifndef MAX_TGETENT_BUFSIZ
392  #  define MAX_TGETENT_BUFSIZ 2048
393
394
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)'
400         ;;
401  
402 -sunos5*|solaris2*)
403 +sunos5*)
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*)
408         ;;
409  
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*)
413         SHOBJ_CFLAGS=-fPIC
414         SHOBJ_LD='${CC}'
415         SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'
416
417
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.
423
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
428
429 TINFOLIBS=              ${LOCALBASE}/lib/libtinfo.a \
430                         ${LOCALBASE}/lib/db5/libdb.a \
431                         -lpthread
432
433 post-configure-opsys:
434         ${REINPLACE_CMD} -e 's|-ltinfo|${TINFOLIBS}|' ${WRKSRC}/Makefile
435 .  endif
436 .endif
437
438 # we could have used LDFLAGS_OFF options helper, but it doesn't
439 # currently exist
440
441 .if ${VARIANT} != static
442 LDFLAGS+=       ${VAR1}
443 .endif
444
445
446 [FILE:2609:sunos/patch-configure]
447 --- configure.orig      2020-12-04 14:05:14 UTC
448 +++ configure
449 @@ -5009,14 +5009,18 @@ prefer_static=no
450  if test "$opt_static_link" = yes; then
451         prefer_static=yes
452         prefer_shared=no
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
456                 STATIC_LD="-static"
457                 case "$host_os" in
458 -               solaris2*|linux*)       ;;
459 +               linux*) ;;
460 +               solaris*)       STATIC_LD= ;;
461                 *)              LDFLAGS="$LDFLAGS -static" ;;   # XXX experimental
462                 esac
463         fi
464 +else
465 +       TINFO_LIBRARY=-ltinfo
466  fi
467  
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
472  else
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
479  else
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.  */
485  
486 @@ -5345,7 +5349,7 @@ elif test $bash_cv_termcap_lib = libterm
487  TERMCAP_LIB=-ltermcap
488  TERMCAP_DEP=
489  elif test $bash_cv_termcap_lib = libtinfo; then
490 -TERMCAP_LIB=-ltinfo
491 +TERMCAP_LIB=${TINFO_LIBRARY}
492  TERMCAP_DEP=
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
498  else
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
505  else
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.  */
511  
512 @@ -20261,7 +20265,7 @@ elif test $bash_cv_termcap_lib = libterm
513  TERMCAP_LIB=-ltermcap
514  TERMCAP_DEP=
515  elif test $bash_cv_termcap_lib = libtinfo; then
516 -TERMCAP_LIB=-ltinfo
517 +TERMCAP_LIB=${TINFO_LIBRARY}
518  TERMCAP_DEP=
519  elif test $bash_cv_termcap_lib = libncurses; then
520  TERMCAP_LIB=-lncurses
521