diff options
Diffstat (limited to 'sys-libs/pam')
-rw-r--r-- | sys-libs/pam/Manifest | 7 | ||||
-rw-r--r-- | sys-libs/pam/files/fix-test-calls.patch | 48 | ||||
-rw-r--r-- | sys-libs/pam/pam-1.3.1-r2.ebuild | 2 | ||||
-rw-r--r-- | sys-libs/pam/pam-1.3.1_p20200128-r1.ebuild | 4 | ||||
-rw-r--r-- | sys-libs/pam/pam-1.4.0-r2.ebuild (renamed from sys-libs/pam/pam-1.4.0.ebuild) | 32 |
5 files changed, 73 insertions, 20 deletions
diff --git a/sys-libs/pam/Manifest b/sys-libs/pam/Manifest index a138cf9a501f..5cb0ce70c54e 100644 --- a/sys-libs/pam/Manifest +++ b/sys-libs/pam/Manifest @@ -1,9 +1,10 @@ +AUX fix-test-calls.patch 1969 BLAKE2B 13344bc09298e1ee68db1cf4b3d4c26ef430f6e6941b965edbca4b90bf8ecf762024f60b3541750fd1ae000f6bfd3f5e9792f0f0578beaccd405941f8b868397 SHA512 8051b3d8170ed4930274aa37c49d886b913a7cd043e247806a64c7929ea4c36b723e77d881c65e082f7424491cc29f0a726ddbbf401e15b6d7583f6f39342583 AUX pam-remove-browsers.patch 985 BLAKE2B 3e258e00f7287436b1b6a97323764612a3098dc4effb12e62cd8d55151ace2b97b6ea7b67ae33613aa6b3cca318bfbfc310b48a99b0c81e1beaa9d16188e69eb SHA512 42d89d35fc754e51112040a5468067ee9f6a3a411e538cb634187e28975040c0b7ef48fab166ec6a20a849f6ed9d74a069355269cf708d9985ded6b87fe13ed1 DIST pam-1.3.1.tar.gz 749997 BLAKE2B 3b44c41daaa5810c53e3e2baeac1ab58463768fde433f874b9bd09c7c28cfd55e0f227c9a0c318e66444a3adb23c112a2db32d5c7211b07c84c2d4600a47ca5c SHA512 0c5019493b2ac42180ee9c4974a51329a2395a44f5f892c1ca567ec9b43cc3a9bce0212861d4dfb82eb236c5eaa682b27189ce672ed6cafa37d8801d059a944d DIST pam-1.4.0-doc.tar.xz 48080 BLAKE2B 48cec348c3db7ecae6ea85934fa242d908643d0a8f6d1789a8aac3b254dc21439e11066f9ff2a7238e61e5d16c41a6c49a26dbc7351fe7eb0a1fef4a2f69378e SHA512 634cbb1b948a2b1431b9ef219a4e9e63e870b34520665170f55aca10e65cd46f0c190697cafd18a42caeaec26299f63fd8ad794ae379648e767d8481af6c36f2 DIST pam-1.4.0.tar.gz 804586 BLAKE2B 941925677c19f0a77a4fbc29f723706d5eb31b4020b0d35732ae3c00e5a623c943ea784e11aef1c2d5092d2a7fbe1724eeefa45d8d8ebd8a053a39f01a8b541c SHA512 16003f5c118125aeabf22503bc328a4bdd68b3af35d70b608a8b261adbaffae58ce490765f246c469b2ffbff67bd5216e0586ece0eb934905074423a990c2f98 DIST pam-4dd9b97b762cc73816cb867d49c9d0d0b91d642c.tar.gz 765455 BLAKE2B 8a8543b51c9fa877cd48d483d9af489df00376f92f26fea648d38a0ce3168702888a662e5d3c7423cce8a5d56896e84e4c1829e56d08fca8c3ab878b20945a7d SHA512 bdb236a47a5810449fb96546ff89d70dec185a215b0d047178a12e40945fde4ffdb801dbbd87ff95eead1bb7acb4748333a2d3383881d5de0dbd89ec5ceddd3f -EBUILD pam-1.3.1-r2.ebuild 3342 BLAKE2B a9c03e5ae1005b63f416b3778de5e6a4cfc02fde311aa3ff1bc41b459fd39d464afe43561934885abe1f19c1e98075bfc4071843d9ccb89026b376a52985a5be SHA512 1c7d78bc680eb1025b41b8e724b2e59eaceccccef6cbb57a6887a268a21e49a813f75e16f7d3f7a2b3f20b402453a0e9a42b99e8f7ee252c6af88601dc6bbb53 -EBUILD pam-1.3.1_p20200128-r1.ebuild 3551 BLAKE2B aa6581a5d90745c4a195e2516c73cc9ef25b768bbb7cc3ff4dcb2e7a86276916a44276aa002fdc7f96524a63484d3feb5370bcaeb5823c399e5e26dffff94200 SHA512 5ee4e9449e15fd5d113299cee9bd19210e837f4a72e6c4b01c7bcf97d85ac3415813d2ded97711b11df1b437e7740dabc91d3cb5a0df74b586de95eb3716a89b -EBUILD pam-1.4.0.ebuild 3604 BLAKE2B fd67cc30dfa80bfd479d8de6725e512a9b91ba1fdea30239048850d46acfa2d63ddbcfa7012e23f1ac0b833588b441001d5f614223427c01ce277c80a0443c09 SHA512 4c2192a36db1e575b88623ec52eca8953dedc07483ce756715d22d1168018511bd548c26d31af3473c495aa87f020160cc65d182cae6dd4fcb21a227b06d8a39 +EBUILD pam-1.3.1-r2.ebuild 3322 BLAKE2B 5e020cfb239bb8e415d3ea28ecfc4450d85ca8fa5d564b2fa5a044c6258d4b5c7da692f8d9b3b203667bbdd3eea0305b679c073fe540369a426fc4f14b1616b6 SHA512 4a2caac1f4dacd20d28b646b998d7afbc1fed807db944b09c3e3bd15fb758d3f0bf7faf5a6e937bb00740b0cd10b8f891e2eb12a41b3dfb2fbbce45c8f3414ec +EBUILD pam-1.3.1_p20200128-r1.ebuild 3523 BLAKE2B fd389d7d746ad0c80a8db91a0d37094b7c7e6a824fa9b5be4a5cf59b688449ce2abc8bd93dc9b6816d092bf5283fdec9c6538cf264ff4d0b185cba3cf4c0b43b SHA512 acc60d8d7bad9a447b0323710e4c58c8ac321b73431b3fc6832696ba7e3be0a7200a7eb73b7a22e092eecb3d514a69fc5a0cd3498c40e6839217be0e74f0b44b +EBUILD pam-1.4.0-r2.ebuild 3771 BLAKE2B a657f1dd46a011e2988be9ca97ff092fceb75b8c7a628f654462eeb3761735ea1aad76d9c7ae0b7f15c088b42097115c070304d531cca93f20d04bc5476f26f4 SHA512 9160b511d71eebdaad9148fd86d8d72dc4fd5bdbded2e0965600f150b4688621c3ec4a0b7c8880ad13648f9d6e8a89b955a5d5123080f96ce5bff5c5f36659cb MISC metadata.xml 1086 BLAKE2B 39d2291ff9553394ce684a87a49a2c41b18689102d8cf352c905ce2ede28508501aa41a4a473d287c461b77e5732aa4ed0eaac94db94c851ed9491bffdac8acf SHA512 6743a2021ef7d7ab9fc547b270c17b205747a498e0e2bafc07ad171d52657a4aa3f84803c2b4e5c088b73b1732d600b5b2189c958d4b15fba8e081714790fc72 diff --git a/sys-libs/pam/files/fix-test-calls.patch b/sys-libs/pam/files/fix-test-calls.patch new file mode 100644 index 000000000000..32d4c2d94997 --- /dev/null +++ b/sys-libs/pam/files/fix-test-calls.patch @@ -0,0 +1,48 @@ +From c5700c0a04c85ace09f6a179cc7a3692c07282b0 Mon Sep 17 00:00:00 2001 +From: "Dmitry V. Levin" <ldv@altlinux.org> +Date: Mon, 15 Jun 2020 16:00:00 +0000 +Subject: [PATCH] configure.ac: fix non-portable use of test builtin + +Portable code should not assume that test builtin supports == operator. + +* configure.ac (opt_uidmin, opt_sysuidmin, opt_kerneloverflowuid): Fix +initialization. + +Resolves: https://github.com/linux-pam/linux-pam/issues/241 +Fixes: 926d7935e ("pam_usertype: new module to tell if uid is in login.defs ranges") +--- + configure.ac | 15 ++++++--------- + 1 file changed, 6 insertions(+), 9 deletions(-) + +diff --git a/configure.ac b/configure.ac +index c1862ea7..7737efc7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -662,21 +662,18 @@ dnl + dnl Get values for default uid ranges in login.defs used in pam_usertype + dnl + AC_ARG_WITH([uidmin], AS_HELP_STRING([--with-uidmin=<number>],[default value for regular user min uid (1000)]), opt_uidmin=$withval) +-if test x"$opt_uidmin" == x; then +- opt_uidmin=1000 +-fi ++test -n "$opt_uidmin" || ++ opt_uidmin=1000 + AC_DEFINE_UNQUOTED(PAM_USERTYPE_UIDMIN, $opt_uidmin, [Minimum regular user uid.]) + + AC_ARG_WITH([sysuidmin], AS_HELP_STRING([--with-sysuidmin=<number>],[default value for system user min uid (101)]), opt_sysuidmin=$withval) +-if test x"$opt_sysuidmin" == x; then +- opt_sysuidmin=101 +-fi ++test -n "$opt_sysuidmin" || ++ opt_sysuidmin=101 + AC_DEFINE_UNQUOTED(PAM_USERTYPE_SYSUIDMIN, $opt_sysuidmin, [Minimum system user uid.]) + + AC_ARG_WITH([kerneloverflowuid], AS_HELP_STRING([--with-kernel-overflow-uid=<number>],[kernel overflow uid, default (uint16_t)-2=65534]), opt_kerneloverflowuid=$withval) +-if test x"$opt_kerneloverflowuid" == x; then +- opt_kerneloverflowuid=65534 +-fi ++test -n "$opt_kerneloverflowuid" || ++ opt_kerneloverflowuid=65534 + AC_DEFINE_UNQUOTED(PAM_USERTYPE_OVERFLOW_UID, $opt_kerneloverflowuid, [Kernel overflow uid.]) + + AC_ARG_ENABLE([tally], diff --git a/sys-libs/pam/pam-1.3.1-r2.ebuild b/sys-libs/pam/pam-1.3.1-r2.ebuild index 26873bc6edcf..560c09a3fe16 100644 --- a/sys-libs/pam/pam-1.3.1-r2.ebuild +++ b/sys-libs/pam/pam-1.3.1-r2.ebuild @@ -21,7 +21,7 @@ BDEPEND="app-text/docbook-xml-dtd:4.1.2 dev-libs/libxslt sys-devel/flex sys-devel/gettext - virtual/pkgconfig[${MULTILIB_USEDEP}]" + virtual/pkgconfig" DEPEND=" virtual/libcrypt:=[${MULTILIB_USEDEP}] diff --git a/sys-libs/pam/pam-1.3.1_p20200128-r1.ebuild b/sys-libs/pam/pam-1.3.1_p20200128-r1.ebuild index 97a36d6399c7..0cb0dcb2aced 100644 --- a/sys-libs/pam/pam-1.3.1_p20200128-r1.ebuild +++ b/sys-libs/pam/pam-1.3.1_p20200128-r1.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/linux-pam/linux-pam/archive/${COMMIT_HASH}.tar.gz#/$ LICENSE="|| ( BSD GPL-2 )" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" IUSE="audit berkdb +cracklib debug nis +pie selinux static-libs" BDEPEND="app-text/docbook-xml-dtd:4.1.2 @@ -23,7 +23,7 @@ BDEPEND="app-text/docbook-xml-dtd:4.1.2 dev-libs/libxslt sys-devel/flex sys-devel/gettext - virtual/pkgconfig[${MULTILIB_USEDEP}]" + virtual/pkgconfig" DEPEND=" virtual/libcrypt:=[${MULTILIB_USEDEP}] diff --git a/sys-libs/pam/pam-1.4.0.ebuild b/sys-libs/pam/pam-1.4.0-r2.ebuild index 3583a5ca60aa..95952e5cfb40 100644 --- a/sys-libs/pam/pam-1.4.0.ebuild +++ b/sys-libs/pam/pam-1.4.0-r2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit autotools db-use fcaps multilib-minimal toolchain-funcs usr-ldscript +inherit autotools db-use fcaps toolchain-funcs usr-ldscript multilib-minimal DESCRIPTION="Linux-PAM (Pluggable Authentication Modules)" HOMEPAGE="https://github.com/linux-pam/linux-pam" @@ -20,7 +20,8 @@ BDEPEND=" dev-libs/libxslt sys-devel/flex sys-devel/gettext - virtual/pkgconfig[${MULTILIB_USEDEP}]" + virtual/pkgconfig +" DEPEND=" virtual/libcrypt:=[${MULTILIB_USEDEP}] @@ -32,13 +33,14 @@ DEPEND=" RDEPEND="${DEPEND}" -PDEPEND="sys-auth/pambase" +PDEPEND=">=sys-auth/pambase-20200616" S="${WORKDIR}/linux-${P}" src_prepare() { default touch ChangeLog || die + eapply "${FILESDIR}"/fix-test-calls.patch eautoreconf } @@ -53,6 +55,7 @@ multilib_src_configure() { export ac_cv_header_xcrypt_h=no local myconf=( + CC_FOR_BUILD="$(tc-getBUILD_CC)" --with-db-uniquename=-$(db_findver sys-libs/db) --with-xml-catalog="${EPREFIX}"/etc/xml/catalog --enable-securedir="${EPREFIX}"/$(get_libdir)/security @@ -65,17 +68,17 @@ multilib_src_configure() { --disable-tally2 --disable-doc --disable-regenerate-docu + --disable-Werror $(use_enable audit) $(use_enable berkdb db) $(use_enable debug) - $(use_enable debug Werror) $(use_enable nis) $(use_enable pie) $(use_enable selinux) $(use_enable static-libs static) --enable-isadir='.' #464016 ) - ECONF_SOURCE="${S}" econf ${myconf[@]} + ECONF_SOURCE="${S}" econf "${myconf[@]}" } multilib_src_compile() { @@ -92,16 +95,17 @@ multilib_src_install() { multilib_src_install_all() { find "${ED}" -type f -name '*.la' -delete || die + # tmpfiles.eclass is impossible to use because + # there is the pam -> tmpfiles -> systemd -> pam dependency loop + dodir /usr/lib/tmpfiles.d - cat - > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}-:${SLOT}.conf <<EOF -d /var/run/faillock 0755 root root - -EOF - - if use selinux; then - cat - >> "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<EOF -d /run/sepermit 0755 root root -EOF - fi + + cat ->> "${D}"/usr/lib/tmpfiles.d/${CATEGORY}-${PN}.conf <<-_EOF_ + d /run/faillock 0755 root root + _EOF_ + use selinux && cat ->> "${D}"/usr/lib/tmpfiles.d/${CATEGORY}-${PN}-selinux.conf <<-_EOF_ + d /run/sepermit 0755 root root + _EOF_ for i in "${WORKDIR}"/${P}-doc/*; do doman ${i} |