From d7a9a59b3d03981f249b8f1b7c33ce03b8c8e1f7 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 2 Nov 2009 16:01:01 +0000 Subject: main/heimdal: build fix for newer autoconf patch taken from gentoo rebuild adds pkgconfig as dependency for -dev package --- main/heimdal/APKBUILD | 36 ++++++++++++++++++++------------ main/heimdal/heimdal-autoconf-2.64.patch | 11 ++++++++++ 2 files changed, 34 insertions(+), 13 deletions(-) create mode 100644 main/heimdal/heimdal-autoconf-2.64.patch (limited to 'main/heimdal') diff --git a/main/heimdal/APKBUILD b/main/heimdal/APKBUILD index a494e201a6..e717850d65 100644 --- a/main/heimdal/APKBUILD +++ b/main/heimdal/APKBUILD @@ -2,7 +2,7 @@ # Contributor: Natanael Copa pkgname=heimdal pkgver=1.2.1 -pkgrel=3 +pkgrel=4 pkgdesc="An implementation of Kerberos 5" url="http://www.h5l.org/" license="BSD" @@ -23,26 +23,28 @@ source="http://www.h5l.org/dist/src/$pkgname-$pkgver.tar.gz heimdal-system_sqlite.patch heimdal-r23235-kb5-libwind_la.patch heimdal-r23238-kb5_locl_h-wind_h.patch +heimdal-autoconf-2.64.patch " # krb5.h needs com_err.h depends_dev="e2fsprogs-dev" -build() { +prepare() { [ -e /usr/lib/libasn1.so ] && echo "## remove old heimdal pkg first ##" && return 1 cd "$srcdir/$pkgname-$pkgver" - patch -Np0 -i ../../001_all_heimdal-no_libedit.patch || return 1 - patch -Np0 -i ../../002_all_heimdal-fPIC.patch || return 1 - patch -Np0 -i ../../003_all_heimdal-rxapps.patch || return 1 - patch -Np0 -i ../../005_all_heimdal-suid_fix.patch || return 1 - patch -Np1 -i ../../013_all_heimdal-pthread-lib.patch || return 1 - patch -Np0 -i ../../014_all_heimdal-path.patch || return 1 - patch -Np0 -i ../../022_all_heimdal-as-needed.patch || return 1 - patch -Np0 -i ../../heimdal-system_sqlite.patch || return 1 - patch -Np2 -i ../../heimdal-r23235-kb5-libwind_la.patch || return 1 - patch -Np2 -i ../../heimdal-r23238-kb5_locl_h-wind_h.patch || return 1 + patch -Np0 -i ../001_all_heimdal-no_libedit.patch || return 1 + patch -Np0 -i ../002_all_heimdal-fPIC.patch || return 1 + patch -Np0 -i ../003_all_heimdal-rxapps.patch || return 1 + patch -Np0 -i ../005_all_heimdal-suid_fix.patch || return 1 + patch -Np1 -i ../013_all_heimdal-pthread-lib.patch || return 1 + patch -Np0 -i ../014_all_heimdal-path.patch || return 1 + patch -Np0 -i ../022_all_heimdal-as-needed.patch || return 1 + patch -Np0 -i ../heimdal-system_sqlite.patch || return 1 + patch -Np2 -i ../heimdal-r23235-kb5-libwind_la.patch || return 1 + patch -Np2 -i ../heimdal-r23238-kb5_locl_h-wind_h.patch || return 1 + patch -p1 -i ../heimdal-autoconf-2.64.patch || return 1 # name clash with ruserpass in netdb.h sed -i -e 's/ruserpass/ruserpw/g' appl/ftp/ftp/*.[ch] || return 1 @@ -52,7 +54,10 @@ build() { lib/hdb/hdb.h lib/krb5/krb5.conf.5 lib/krb5/krb5.conf.cat5 sh ./autogen.sh || return 1 +} +build() { + cd "$srcdir/$pkgname-$pkgver" export LDFLAGS="${LDFLAGS} -Wl,--as-needed" ./configure --prefix=/usr \ @@ -64,6 +69,10 @@ build() { --with-openssl=/usr make || return 1 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" exec_prefix=/usr sysconfdir=/etc \ mandir=/usr/share/man infodir=/usr/share/info datadir=/var/lib/heimdal \ localstatedir=/var/lib/heimdal libexecdir=/usr/sbin install @@ -158,4 +167,5 @@ md5sums="6e5028077e2a6b101a4a72801ba71b9e heimdal-1.2.1.tar.gz d7649e078c87d2ca997080f0deb527c0 022_all_heimdal-as-needed.patch 949a389ebe7652861b2e178a7e0f1ed9 heimdal-system_sqlite.patch 072f6b2550693adb30117394b1dd354e heimdal-r23235-kb5-libwind_la.patch -7b4537b0e8bde95214211091e55eacf5 heimdal-r23238-kb5_locl_h-wind_h.patch" +7b4537b0e8bde95214211091e55eacf5 heimdal-r23238-kb5_locl_h-wind_h.patch +18826112861b7e47c908b27c90baafac heimdal-autoconf-2.64.patch" diff --git a/main/heimdal/heimdal-autoconf-2.64.patch b/main/heimdal/heimdal-autoconf-2.64.patch new file mode 100644 index 0000000000..47b02bda79 --- /dev/null +++ b/main/heimdal/heimdal-autoconf-2.64.patch @@ -0,0 +1,11 @@ +--- a/cf/roken-frag.m4.orig 2009-08-03 10:40:57.000000000 +0200 ++++ b/cf/roken-frag.m4 2009-08-03 10:41:09.000000000 +0200 +@@ -586,7 +586,7 @@ + #include + #endif]) + +-AC_CHECK_DECLS([optarg, optind, opterr, optopt, environ],[],[][ ++AC_CHECK_DECLS([optarg, optind, opterr, optopt, environ],[],[],[ + #include + #ifdef HAVE_UNISTD_H + #include -- cgit v1.2.3