diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2015-08-20 23:45:33 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-09-07 12:05:03 +0000 |
commit | 226fe478c20bcc6958b000864775186f115865c0 (patch) | |
tree | e6590a932ffd7592a32328f4167efdcedfb033f8 /testing/shadow/APKBUILD | |
parent | f79c671dd995300e190ba1a5acce57206ef2b445 (diff) | |
download | aports-226fe478c20bcc6958b000864775186f115865c0.tar.bz2 aports-226fe478c20bcc6958b000864775186f115865c0.tar.xz |
testing/shadow: add debug build
2 patches from gentoo were also added
the segfault breaking unprivileged lxc containers is traced at:
http://bugs.alpinelinux.org/issues/4544
Diffstat (limited to 'testing/shadow/APKBUILD')
-rw-r--r-- | testing/shadow/APKBUILD | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/testing/shadow/APKBUILD b/testing/shadow/APKBUILD index 2dd17dee2f..5be9e706d2 100644 --- a/testing/shadow/APKBUILD +++ b/testing/shadow/APKBUILD @@ -10,10 +10,12 @@ license="GPL" depends= depends_dev="linux-pam-dev" makedepends="$depends_dev" -install="" -subpackages="$pkgname-doc" +subpackages="$pkgname-doc $pkgname-dbg" source="http://pkg-shadow.alioth.debian.org/releases/shadow-$pkgver.tar.xz - login.pamd" + login.pamd + dots-in-usernames.patch + cross-size-checks.patch + " options="suid" _builddir="$srcdir"/shadow-$pkgver @@ -29,14 +31,15 @@ prepare() { build() { cd "$_builddir" + CFLAGS="$CFLAGS -O0" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --without-nscd \ - --without-nologin \ --disable-nls \ + --without-group-name-max-length \ || return 1 make || return 1 } @@ -61,11 +64,21 @@ package() { # avoid conflict with man-pages rm "$pkgdir"/usr/share/man/man3/getspnam.3* \ "$pkgdir"/usr/share/man/man5/passwd.5* || return 1 + + # for unprivileged lxc containera + touch "$pkgdir"/etc/subuid + touch "$pkgdir"/etc/subgid } md5sums="2bfafe7d4962682d31b5eba65dba4fc8 shadow-4.2.1.tar.xz -72dfc077a61ab7163e312640cc98bba8 login.pamd" +72dfc077a61ab7163e312640cc98bba8 login.pamd +f5fe3d7351d5e4046588b652c482c170 dots-in-usernames.patch +75bc0cafb44aa86075d2ec056816cc3e cross-size-checks.patch" sha256sums="3b0893d1476766868cd88920f4f1231c4795652aa407569faff802bcda0f3d41 shadow-4.2.1.tar.xz -c0d0f2f77133b0663c5a578afeba45d5a9c703ff6f3f6aba3727dfe01877dac0 login.pamd" +c0d0f2f77133b0663c5a578afeba45d5a9c703ff6f3f6aba3727dfe01877dac0 login.pamd +ee58c622d1e8283dc4b17e93cc5e68f4ea4336654ebcfb48e46e0efaa864b77f dots-in-usernames.patch +fc3e32ddfc8eeb284412e8df7ad045ad27b742f5ee733db1a0bc14c97480e013 cross-size-checks.patch" sha512sums="7a14bf8e08126f0402e37b6e4c559615ced7cf829e39156d929ed05cd8813de48a77ff1f7f6fe707da04cf662a2e9e84c22d63d88dd1ed13f935fde594db95f0 shadow-4.2.1.tar.xz -46a6f83f3698e101b58b8682852da749619412f75dfa85cecad03d0847f6c3dc452d984510db7094220e4570a0565b83b0556e16198ad894a3ec84b3e513d58d login.pamd" +46a6f83f3698e101b58b8682852da749619412f75dfa85cecad03d0847f6c3dc452d984510db7094220e4570a0565b83b0556e16198ad894a3ec84b3e513d58d login.pamd +745eea04c054226feba165b635dbb8570b8a04537d41e914400a4c54633c3a9cf350da0aabfec754fb8cf3e58fc1c8cf597b895506312f19469071760c11f31d dots-in-usernames.patch +c46760254439176babeef24d93900914092655af3a48f54385adf6ef5a3af76799fb7e96083acd27853d6ab6d7392543dbaf70bb26f164519e92f677da7851a4 cross-size-checks.patch" |