shadow: update to 4.2.1.

This commit is contained in:
Juan RP 2014-08-25 10:54:46 +02:00
parent cab1a0982e
commit 747e077f38
2 changed files with 36 additions and 12 deletions

View File

@ -0,0 +1,28 @@
Added support to cache the value of the id32bit test, to allow cross compilation.
--xtraeme
--- configure.in.orig 2014-05-09 13:53:10.000000000 +0200
+++ configure.in 2014-08-25 10:41:31.198567162 +0200
@@ -335,6 +335,9 @@ if test "$enable_subids" != "no"; then
dnl
dnl FIXME: check if 32 bit UIDs/GIDs are supported by libc
dnl
+ AC_CACHE_CHECK(
+ [wheter subordinate IDs are supported],
+ [ac_cv_id32bit], [
AC_RUN_IFELSE([AC_LANG_SOURCE([
#include <sys/types.h>
int main(void) {
@@ -342,9 +345,9 @@ int main(void) {
gid_t g;
return (sizeof u < 4) || (sizeof g < 4);
}
- ])], [id32bit="yes"], [id32bit="no"])
+ ])])], [ac_cv_id32bit="yes"], [ac_cv_id32bit="no"])
- if test "x$id32bit" = "xyes"; then
+ if test "x$ac_cv_id32bit" = "xyes"; then
AC_DEFINE(ENABLE_SUBIDS, 1, [Define to support the subordinate IDs.])
enable_subids="yes"
else

View File

@ -1,12 +1,13 @@
# Template file for 'shadow'
pkgname=shadow
version=4.1.5.1
revision=17
version=4.2.1
revision=1
build_style=gnu-configure
configure_args="--bindir=/usr/bin --sbindir=/usr/sbin
--libdir=/usr/lib --enable-shared --disable-static
--with-libpam --without-selinux --with-acl --with-attr
--disable-nls"
--enable-subordinate-ids ac_cv_id32bit=yes"
hostmakedepends="automake libtool gettext-devel"
makedepends="acl-devel pam-devel>=1.1.8_4"
depends="pam"
conf_files="
@ -29,17 +30,12 @@ short_desc="Shadow password file utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
license="BSD"
homepage="http://pkg-shadow.alioth.debian.org"
distfiles="http://pkgs.fedoraproject.org/repo/pkgs/shadow-utils/${pkgname}-${version}.tar.bz2/a00449aa439c69287b6d472191dc2247/${pkgname}-${version}.tar.bz2"
checksum=aa32333748d68b58ed3a83625f0165e0f6b9dc4639e6377c9300c6bf4fe978fb
if [ "$CROSS_BUILD" ]; then
hostmakedepends="automake libtool gettext-devel"
pre_configure() {
autoreconf -fi
}
fi
distfiles="http://pkg-shadow.alioth.debian.org/releases/$pkgname-$version.tar.xz"
checksum=3b0893d1476766868cd88920f4f1231c4795652aa407569faff802bcda0f3d41
pre_configure() {
autoreconf -fi
case "$XBPS_TARGET_MACHINE" in
# Completely disable unportable ruserok().
*-musl) sed '/RUSEROK/d' -i configure;;