Diff pam-1.5.2-r3 with a pam-1.5.3

/usr/portage/sys-libs/pam/pam-1.5.3.ebuild 2023-10-09 14:52:35.560368503 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
MY_P="Linux-${PN^^}-${PV}"
7 7

  
......
9 9
# Can reconsider w/ EAPI 8 and IDEPEND, bug #810979
10 10
TMPFILES_OPTIONAL=1
11 11

  
12
inherit autotools db-use fcaps flag-o-matic toolchain-funcs usr-ldscript multilib-minimal
12
inherit db-use fcaps flag-o-matic toolchain-funcs usr-ldscript multilib-minimal
13 13

  
14 14
DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)"
15 15
HOMEPAGE="https://github.com/linux-pam/linux-pam"
16

  
17
SRC_URI="https://github.com/linux-pam/linux-pam/releases/download/v${PV}/${MY_P}.tar.xz
18
	https://github.com/linux-pam/linux-pam/releases/download/v${PV}/${MY_P}-docs.tar.xz"
16
SRC_URI="
17
	https://github.com/linux-pam/linux-pam/releases/download/v${PV}/${MY_P}.tar.xz
18
	https://github.com/linux-pam/linux-pam/releases/download/v${PV}/${MY_P}-docs.tar.xz
19
"
20
S="${WORKDIR}/${MY_P}"
19 21

  
20 22
LICENSE="|| ( BSD GPL-2 )"
21 23
SLOT="0"
......
23 25
IUSE="audit berkdb debug nis selinux"
24 26

  
25 27
BDEPEND="
28
	app-alternatives/yacc
26 29
	dev-libs/libxslt
27 30
	sys-devel/flex
28 31
	sys-devel/gettext
29 32
	virtual/pkgconfig
30
	app-alternatives/yacc
31 33
"
32

  
33 34
DEPEND="
34 35
	virtual/libcrypt:=[${MULTILIB_USEDEP}]
35 36
	>=virtual/libintl-0-r1[${MULTILIB_USEDEP}]
36 37
	audit? ( >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}] )
37 38
	berkdb? ( >=sys-libs/db-4.8.30-r1:=[${MULTILIB_USEDEP}] )
38 39
	selinux? ( >=sys-libs/libselinux-2.2.2-r4[${MULTILIB_USEDEP}] )
39
	nis? ( net-libs/libnsl:=[${MULTILIB_USEDEP}]
40
	>=net-libs/libtirpc-0.2.4-r2:=[${MULTILIB_USEDEP}] )"
41

  
40
	nis? (
41
		net-libs/libnsl:=[${MULTILIB_USEDEP}]
42
		>=net-libs/libtirpc-0.2.4-r2:=[${MULTILIB_USEDEP}]
43
	)
44
"
42 45
RDEPEND="${DEPEND}"
43

  
44 46
PDEPEND=">=sys-auth/pambase-20200616"
45 47

  
46
S="${WORKDIR}/${MY_P}"
47

  
48 48
PATCHES=(
49
	"${FILESDIR}"/${PN}-1.5.1-musl.patch
50
	"${FILESDIR}"/${PN}-1.5.2-clang-15-configure-implicit-func.patch
49
	"${FILESDIR}/${P}-termios.patch"
51 50
)
52 51

  
53 52
src_prepare() {
54 53
	default
55 54
	touch ChangeLog || die
56
	eautoreconf
57 55
}
58 56

  
59 57
multilib_src_configure() {
60
	# Do not let user's BROWSER setting mess us up. #549684
58
	# Do not let user's BROWSER setting mess us up, bug #549684
61 59
	unset BROWSER
62 60

  
63 61
	# This whole weird has_version libxcrypt block can go once
......
87 85
		--disable-regenerate-docu
88 86
		--disable-static
89 87
		--disable-Werror
88
		# TODO: wire this up now it's more useful as of 1.5.3
89
		--disable-econf
90

  
91
		# TODO: add elogind support
92
		# lastlog is enabled again for now by us until logind support
93
		# is handled. Even then, disabling lastlog will probably need
94
		# a news item.
95
		--disable-logind
96
		--enable-lastlog
97

  
90 98
		$(use_enable audit)
91 99
		$(use_enable berkdb db)
92 100
		$(use_enable debug)
93 101
		$(use_enable nis)
94 102
		$(use_enable selinux)
95
		--enable-isadir='.' #464016
96
		)
103
		--enable-isadir='.' # bug #464016
104
	)
97 105
	ECONF_SOURCE="${S}" econf "${myconf[@]}"
98 106
}
99 107

  
......
113 121

  
114 122
	# tmpfiles.eclass is impossible to use because
115 123
	# there is the pam -> tmpfiles -> systemd -> pam dependency loop
116

  
117 124
	dodir /usr/lib/tmpfiles.d
118 125

  
119 126
	cat ->>  "${D}"/usr/lib/tmpfiles.d/${CATEGORY}-${PN}.conf <<-_EOF_
Thank you!