| 10 |
10 |
GENTOO_PATCH_VER="${PV}"
|
| 11 |
11 |
|
| 12 |
12 |
# Official patchlevel
|
| 13 |
|
# See ftp://ftp.cwru.edu/pub/bash/bash-4.1-patches/
|
|
13 |
# See ftp://ftp.cwru.edu/pub/bash/bash-4.2-patches/
|
| 14 |
14 |
PLEVEL="${PV##*_p}"
|
| 15 |
15 |
MY_PV="${PV/_p*}"
|
| 16 |
16 |
MY_PV="${MY_PV/_/-}"
|
| ... | ... | |
| 49 |
49 |
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
|
| 50 |
50 |
DEPEND="${RDEPEND}
|
| 51 |
51 |
static? ( ${LIB_DEPEND} )"
|
|
52 |
# We only need bison (yacc) when the .y files get patched (bash42-005)
|
|
53 |
BDEPEND="sys-devel/bison"
|
| 52 |
54 |
|
| 53 |
55 |
PATCHES=(
|
| 54 |
|
"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.1-fbsd-eaccess.patch #bug #303411
|
| 55 |
|
|
| 56 |
|
"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.1-parallel-build.patch
|
| 57 |
|
"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.2-dev-fd-buffer-overflow.patch #bug #431850
|
|
56 |
"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.2-execute-job-control.patch # bug #383237
|
|
57 |
"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.2-parallel-build.patch
|
|
58 |
"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.2-no-readline.patch
|
|
59 |
"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.2-read-retry.patch # bug #447810
|
|
60 |
"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.2-speed-up-read-N.patch
|
| 58 |
61 |
)
|
| 59 |
62 |
|
| 60 |
63 |
pkg_setup() {
|
| ... | ... | |
| 83 |
86 |
touch lib/{readline,termcap}/Makefile.in || die # for config.status
|
| 84 |
87 |
sed -ri -e 's:\$[{(](RL|HIST)_LIBSRC[)}]/[[:alpha:]_-]*\.h::g' Makefile.in || die
|
| 85 |
88 |
|
| 86 |
|
default
|
|
89 |
# Avoid regenerating docs after patches #407985
|
|
90 |
sed -i -r '/^(HS|RL)USER/s:=.*:=:' doc/Makefile.in || die
|
|
91 |
touch -r . doc/* || die
|
| 87 |
92 |
|
| 88 |
|
sed -i '1i#define NEED_FPURGE_DECL' execute_cmd.c || die # needs fpurge() decl
|
|
93 |
default
|
| 89 |
94 |
}
|
| 90 |
95 |
|
| 91 |
96 |
src_configure() {
|
|
97 |
# Upstream only test with Bison and require GNUisms like YYEOF and
|
|
98 |
# YYERRCODE. The former at least may be in POSIX soon:
|
|
99 |
# https://www.austingroupbugs.net/view.php?id=1269.
|
|
100 |
# configure warns on use of non-Bison but doesn't abort. The result
|
|
101 |
# may misbehave at runtime.
|
|
102 |
unset YACC
|
|
103 |
|
| 92 |
104 |
# bash 5.3 drops unprototyped functions, earlier versions are
|
| 93 |
105 |
# incompatible with C23.
|
| 94 |
106 |
append-cflags $(test-flags-CC -std=gnu17)
|
| ... | ... | |
| 106 |
118 |
# ncurses in one or two small places :(.
|
| 107 |
119 |
--with-curses
|
| 108 |
120 |
|
| 109 |
|
# bug #335896
|
| 110 |
|
--without-lispdir
|
| 111 |
|
|
| 112 |
121 |
$(use_with afs)
|
| 113 |
122 |
$(use_enable net net-redirections)
|
| 114 |
123 |
--disable-profiling
|