Diff bash-3.2_p57 with a bash-4.0_p44

/usr/portage/app-shells/bash/bash-4.0_p44.ebuild 2023-10-09 14:52:28.852368334 +0300
10 10
GENTOO_PATCH_VER="${PV}"
11 11

  
12 12
# Official patchlevel
13
# See ftp://ftp.cwru.edu/pub/bash/bash-3.2-patches/
13
# See ftp://ftp.cwru.edu/pub/bash/bash-4.0-patches/
14 14
PLEVEL="${PV##*_p}"
15 15
MY_PV="${PV/_p*}"
16 16
MY_PV="${MY_PV/_/-}"
......
39 39
	SRC_URI+=" https://dev.gentoo.org/~${GENTOO_PATCH_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${GENTOO_PATCH_VER}-patches.tar.xz"
40 40
fi
41 41

  
42
LICENSE="GPL-2"
42
LICENSE="GPL-3"
43 43
SLOT="${MY_PV}"
44 44
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86"
45
IUSE="afs +net nls +readline static"
45
IUSE="afs mem-scramble +net nls +readline static"
46 46

  
47 47
LIB_DEPEND=">=sys-libs/ncurses-5.2-r2[static-libs(+)]
48 48
	nls? ( virtual/libintl )
......
54 54
S="${WORKDIR}/${MY_P}"
55 55

  
56 56
PATCHES=(
57
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/autoconf-mktime-2.59.patch # bug #220040
58
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-3.2-loadables.patch
57
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.0-configure.patch # bug #304901
58
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.x-deferred-heredocs.patch
59

  
59 60
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-2.05b-parallel-build.patch # bug #41002
60
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-3.2-protos.patch
61
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-3.2-session-leader.patch # bug #231775
62
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-3.2-ldflags-for-build.patch # bug #211947
63
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-3.2-process-subst.patch
64
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-3.2-ulimit.patch
65
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-3.0-trap-fg-signals.patch
66
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-3.2-dev-fd-test-as-user.patch # bug #131875
67
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.2-dev-fd-buffer-overflow.patch # bug #431850
61
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.0-ldflags-for-build.patch # bug #211947
62
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.0-negative-return.patch
63
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.0-parallel-build.patch # bug #267613
64
	"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}-patches/${PN}-4.2-dev-fd-buffer-overflow.patch #431850
68 65
)
69 66

  
70 67
pkg_setup() {
......
94 91
	sed -ri -e 's:\$[{(](RL|HIST)_LIBSRC[)}]/[[:alpha:]_-]*\.h::g' Makefile.in || die
95 92

  
96 93
	default
94

  
95
	sed -i '1i#define NEED_FPURGE_DECL' execute_cmd.c || die # needs fpurge() decl
96
	sed -i '/\.o: .*shell\.h/s:$: pathnames.h:' Makefile.in || die # bug #267613
97 97
}
98 98

  
99 99
src_configure() {
......
109 109
		$(use_with afs)
110 110
		$(use_enable net net-redirections)
111 111
		--disable-profiling
112
		--without-gnu-malloc
112
		$(use_enable mem-scramble)
113
		$(use_with mem-scramble bash-malloc)
113 114
		$(use_enable readline)
114 115
		$(use_enable readline history)
115 116
		$(use_enable readline bang-history)
116 117
	)
117 118

  
118
	# Force pgrp synchronization
119
	# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=81653
120
	export bash_cv_pgrp_pipe=yes
121

  
122 119
	# For descriptions of these, see config-top.h
123 120
	# bashrc/#26952 bash_logout/#90488 ssh/#24762 mktemp/#574426
124 121
	append-cppflags \
Thank you!