summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFantix King2012-09-22 15:26:44 +0800
committerFantix King2015-12-30 05:02:31 +0800
commitcf7445d0c3ee302fe8f58093fcf9fbddd030a31b (patch)
tree589fc6751c5e57bdd1f4371d9afc84c6c0ff300e
downloadaur-cf7445d0c3ee302fe8f58093fcf9fbddd030a31b.tar.gz
1.10.3-1.1
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD69
-rw-r--r--krb5-1.10.1-gcc47.patch11
3 files changed, 103 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c1165fde78d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+# Generated by mksrcinfo v8
+# Tue Dec 29 20:58:35 UTC 2015
+pkgbase = libx32-krb5
+ pkgdesc = The Kerberos network authentication system (x32 ABI)
+ pkgver = 1.10.3
+ pkgrel = 1.1
+ url = http://web.mit.edu/kerberos/
+ arch = x86_64
+ license = custom
+ makedepends = perl
+ makedepends = gcc-multilib-x32
+ depends = libx32-e2fsprogs
+ depends = libx32-libldap
+ depends = libx32-keyutils
+ depends = krb5
+ options = !emptydirs
+ source = http://web.mit.edu/kerberos/dist/krb5/1.10/krb5-1.10.3-signed.tar
+ source = krb5-1.10.1-gcc47.patch
+ sha1sums = 04ab9837e5d1958158bcb30bd6480201089a0cbb
+ sha1sums = 78b759d566b1fdefd9bbcd06df14f07f12effe96
+
+pkgname = libx32-krb5
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..36ad9c4704f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,69 @@
+# $Id: PKGBUILD 78820 2012-10-25 06:47:28Z foutrelis $
+# Upstream Maintainer: Florian Pritz <flo@xinu.at>
+# Contributor: St├ęphane Gaudreault <stephane@archlinux.org>
+# Maintainer: Fantix King <fantix.king at gmail.com>
+
+_pkgbasename=krb5
+pkgname=libx32-$_pkgbasename
+pkgver=1.10.3
+pkgrel=1.1
+pkgdesc="The Kerberos network authentication system (x32 ABI)"
+arch=('x86_64')
+url="http://web.mit.edu/kerberos/"
+license=('custom')
+depends=('libx32-e2fsprogs' 'libx32-libldap' 'libx32-keyutils' "$_pkgbasename")
+makedepends=('perl' 'gcc-multilib-x32')
+source=("http://web.mit.edu/kerberos/dist/${_pkgbasename}/1.10/${_pkgbasename}-${pkgver}-signed.tar"
+ 'krb5-1.10.1-gcc47.patch')
+sha1sums=('04ab9837e5d1958158bcb30bd6480201089a0cbb'
+ '78b759d566b1fdefd9bbcd06df14f07f12effe96')
+options=('!emptydirs')
+
+build() {
+ tar zxvf ${_pkgbasename}-${pkgver}.tar.gz
+ cd "${srcdir}/${_pkgbasename}-${pkgver}/src"
+
+ # With gcc47 : deltat.c:1694:12: error: 'yylval' may be used uninitialized
+ # in this function [-Werror=maybe-uninitialized]
+ # As this is generated code, just ignore the complaint.
+ patch -Np2 -i ../../krb5-1.10.1-gcc47.patch
+ rm lib/krb5/krb/deltat.c
+
+ export CC="gcc -mx32"
+ export CXX="g++ -mx32"
+ export PKG_CONFIG_PATH="/usr/libx32/pkgconfig"
+ export PYTHON="/usr/bin/python2-x32"
+
+ export CFLAGS+=" -fPIC -fno-strict-aliasing -fstack-protector-all"
+ export CPPFLAGS+=" -I/usr/include/et"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/krb5 \
+ --mandir=/usr/share/man \
+ --localstatedir=/var/lib \
+ --libdir=/usr/libx32 \
+ --enable-shared \
+ --with-system-et \
+ --with-system-ss \
+ --disable-rpath \
+ --without-tcl \
+ --enable-dns-for-realm \
+ --with-ldap \
+ --without-system-verto
+
+ make
+}
+
+check() {
+ # We can't do this in the build directory.
+ cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ make -C src check
+}
+
+package() {
+ cd "${srcdir}/${_pkgbasename}-${pkgver}/src"
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/{include,share,bin,sbin}
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}
diff --git a/krb5-1.10.1-gcc47.patch b/krb5-1.10.1-gcc47.patch
new file mode 100644
index 00000000000..ffd01c2a33d
--- /dev/null
+++ b/krb5-1.10.1-gcc47.patch
@@ -0,0 +1,11 @@
+diff -Naur krb5-1.10.1.ori/src/lib/krb5/krb/x-deltat.y krb5-1.10.1/src/lib/krb5/krb/x-deltat.y
+--- krb5-1.10.1.ori/src/lib/krb5/krb/x-deltat.y 2011-09-06 07:34:32.000000000 -0400
++++ krb5-1.10.1/src/lib/krb5/krb/x-deltat.y 2012-03-24 13:15:11.543551318 -0400
+@@ -44,6 +44,7 @@
+ #ifdef __GNUC__
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wuninitialized"
++#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+ #endif
+
+ #include <ctype.h>