[arch-commits] Commit in lib32-krb5/repos (3 files)
Levente Polyak
anthraxx at archlinux.org
Sun Mar 22 23:31:44 UTC 2020
Date: Sunday, March 22, 2020 @ 23:31:44
Author: anthraxx
Revision: 603632
archrelease: copy trunk to multilib-staging-x86_64
Added:
lib32-krb5/repos/multilib-staging-x86_64/
lib32-krb5/repos/multilib-staging-x86_64/PKGBUILD
(from rev 603631, lib32-krb5/trunk/PKGBUILD)
lib32-krb5/repos/multilib-staging-x86_64/krb5-config_LDFLAGS.patch
(from rev 603631, lib32-krb5/trunk/krb5-config_LDFLAGS.patch)
---------------------------+
PKGBUILD | 76 ++++++++++++++++++++++++++++++++++++++++++++
krb5-config_LDFLAGS.patch | 12 ++++++
2 files changed, 88 insertions(+)
Copied: lib32-krb5/repos/multilib-staging-x86_64/PKGBUILD (from rev 603631, lib32-krb5/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD (rev 0)
+++ multilib-staging-x86_64/PKGBUILD 2020-03-22 23:31:44 UTC (rev 603632)
@@ -0,0 +1,76 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Florian Pritz <flo at xinu.at>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+
+_pkgbasename=krb5
+pkgname=lib32-${_pkgbasename}
+_pkgvermajor=1.18
+pkgver=1.18
+pkgrel=1
+pkgdesc='The Kerberos network authentication system (32-bit)'
+url='https://web.mit.edu/kerberos/'
+arch=('x86_64')
+license=('custom')
+depends=('lib32-e2fsprogs' 'lib32-libldap' 'lib32-keyutils' "${_pkgbasename}")
+makedepends=('perl')
+options=('!emptydirs')
+source=(https://web.mit.edu/kerberos/dist/krb5/${_pkgvermajor}/${_pkgbasename}-${pkgver}.tar.gz{,.asc}
+ krb5-config_LDFLAGS.patch)
+sha512sums=('36a01ea310b4b3d0a3d209b641739575239e1ca5e93b3de99cb1fec83e82f9a70ad0761dd6eb77cda5c18c53044ab80168b00725642a0c2dfde0e492c42af6a9'
+ 'SKIP'
+ '5a3782ff17b383f8cd0415fd13538ab56afd788130d6ad640e9f2682b7deaae7f25713ce358058ed771091040dccf62a3bc87e6fd473d505ec189a95debcc801')
+validpgpkeys=('2C732B1C0DBEF678AB3AF606A32F17FD0055C305' # Tom Yu <tlyu at mit.edu>
+ 'C4493CB739F4A89F9852CBC20CBA08575F8372DF') # Greg Hudson <ghudson at mit.edu>
+
+prepare() {
+ cd ${_pkgbasename}-${pkgver}
+
+ # cf https://bugs.gentoo.org/show_bug.cgi?id=448778
+ patch -p1 < "${srcdir}"/krb5-config_LDFLAGS.patch
+
+ # FS#25384
+ sed -i "/KRB5ROOT=/s/\/local//" src/util/ac_check_krb5.m4
+}
+
+build() {
+ cd "${srcdir}/${_pkgbasename}-${pkgver}/src"
+
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ export CFLAGS+=" -fPIC -fno-strict-aliasing -fstack-protector-all"
+ export CPPFLAGS+=" -I/usr/include/et"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/lib \
+ --libdir=/usr/lib32 \
+ --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.
+
+ # only works if the hostname is set properly/resolves to something. whatever...
+ #cd "${srcdir}/${_pkgbasename}-${pkgver}"
+ #make -C src check
+#}
+
+package() {
+ cd ${_pkgbasename}-${pkgver}/src
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/{include,share,bin,sbin}
+ install -d "${pkgdir}/usr/share/licenses"
+ ln -s ${_pkgbasename} "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
Copied: lib32-krb5/repos/multilib-staging-x86_64/krb5-config_LDFLAGS.patch (from rev 603631, lib32-krb5/trunk/krb5-config_LDFLAGS.patch)
===================================================================
--- multilib-staging-x86_64/krb5-config_LDFLAGS.patch (rev 0)
+++ multilib-staging-x86_64/krb5-config_LDFLAGS.patch 2020-03-22 23:31:44 UTC (rev 603632)
@@ -0,0 +1,12 @@
+Bug #448778
+--- krb5-1.11/src/build-tools/krb5-config.in 2012-12-18 02:47:04.000000000 +0000
++++ krb5-1.11/src/build-tools/krb5-config.in 2012-12-28 07:13:16.582693363 +0000
+@@ -217,7 +217,7 @@
+ -e 's#\$(PROG_RPATH)#'$libdir'#' \
+ -e 's#\$(PROG_LIBPATH)#'$libdirarg'#' \
+ -e 's#\$(RPATH_FLAG)#'"$RPATH_FLAG"'#' \
+- -e 's#\$(LDFLAGS)#'"$LDFLAGS"'#' \
++ -e 's#\$(LDFLAGS)##' \
+ -e 's#\$(PTHREAD_CFLAGS)#'"$PTHREAD_CFLAGS"'#' \
+ -e 's#\$(CFLAGS)##'`
+
More information about the arch-commits
mailing list