From 3654cd6facb2603452ab75fab03c10877226d659 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Mon, 26 Sep 2016 22:09:39 +0700 Subject: [PATCH] krb5: Upgraded to 1.14.3. Signed-off-by: Willy Sudiarto Raharjo --- krb5/krb5-ldflags.patch | 14 ++++++++++++++ krb5/krb5.SlackBuild | 11 +++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 krb5/krb5-ldflags.patch diff --git a/krb5/krb5-ldflags.patch b/krb5/krb5-ldflags.patch new file mode 100644 index 0000000..3f88b5e --- /dev/null +++ b/krb5/krb5-ldflags.patch @@ -0,0 +1,14 @@ +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)##'` + + + diff --git a/krb5/krb5.SlackBuild b/krb5/krb5.SlackBuild index 468dd13..4ed8c71 100644 --- a/krb5/krb5.SlackBuild +++ b/krb5/krb5.SlackBuild @@ -32,7 +32,7 @@ # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=krb5 -VERSION=${VERSION:-1.14.2} +VERSION=${VERSION:-1.14.3} BUILD=${BUILD:-1} TAG=${TAG:-_csb} @@ -72,10 +72,15 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION/src +cd $PRGNAM-$VERSION +patch -p1 < $CWD/krb5-ldflags.patch +sed -i "/KRB5ROOT=/s/\/local//" src/util/ac_check_krb5.m4 + +cd src CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ +CPPFLAGS+=" -I/usr/include/et" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -84,6 +89,7 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --enable-dns-for-realm \ --with-ldap \ + --with-system-et \ --build=$ARCH-slackware-linux make @@ -92,6 +98,7 @@ make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +rm -rf $PKG/usr/man/cat{1,5,8} find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done