summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-01-05 05:11:57 +0000
committerSam James <sam@gentoo.org>2024-01-05 05:11:57 +0000
commit6cdc746112f557b44a8c8f895e30fe5a9da6eb83 (patch)
treef6539b39964292fd28e537b95db0d3960184819a /app-crypt
parentnet-analyzer/fprobe: fix autoconf underquoting (diff)
downloadgentoo-6cdc746112f557b44a8c8f895e30fe5a9da6eb83.tar.gz
gentoo-6cdc746112f557b44a8c8f895e30fe5a9da6eb83.tar.bz2
gentoo-6cdc746112f557b44a8c8f895e30fe5a9da6eb83.zip
app-crypt/mit-krb5-appl: fix autoconf-2.72 compat
Closes: https://bugs.gentoo.org/920878 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/mit-krb5-appl/files/mit-krb5-appl-autoconf-2.72.patch30
-rw-r--r--app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3-r4.ebuild67
2 files changed, 97 insertions, 0 deletions
diff --git a/app-crypt/mit-krb5-appl/files/mit-krb5-appl-autoconf-2.72.patch b/app-crypt/mit-krb5-appl/files/mit-krb5-appl-autoconf-2.72.patch
new file mode 100644
index 000000000000..3d682ab799a9
--- /dev/null
+++ b/app-crypt/mit-krb5-appl/files/mit-krb5-appl-autoconf-2.72.patch
@@ -0,0 +1,30 @@
+https://github.com/krb5/krb5/commit/d864d740d019fdf2c640460f2aa2760c7fa4d5e9 (rebased)
+
+From d864d740d019fdf2c640460f2aa2760c7fa4d5e9 Mon Sep 17 00:00:00 2001
+From: Julien Rische <jrische@redhat.com>
+Date: Thu, 17 Nov 2022 15:01:24 +0100
+Subject: [PATCH] Fix aclocal.m4 syntax error for autoconf 2.72
+
+An incorrect closure inside KRB5_AC_INET6 is innocuous with autoconf
+versions up to 2.71, but will cause an error at configure time with
+the forthcoming autoconf 2.72.
+
+[ghudson@mit.edu: added more context to commit message]
+
+ticket: 9077 (new)
+tags: pullup
+target_version: 1.20-next
+target_version: 1.19-next
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -193,8 +193,8 @@ AC_TRY_COMPILE([
+ struct sockaddr_in6 in;
+ AF_INET6;
+ IN6_IS_ADDR_LINKLOCAL (&in.sin6_addr);
+-],krb5_cv_inet6=yes,krb5_cv_inet6=no)])
+-fi
++],[krb5_cv_inet6=yes],[krb5_cv_inet6=no])
++fi])
+ AC_MSG_RESULT($krb5_cv_inet6)
+ if test "$krb5_cv_inet6" = no && test "$ac_cv_func_inet_ntop" = yes; then
+ AC_MSG_CHECKING(for IPv6 compile-time support with -DINET6)
diff --git a/app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3-r4.ebuild b/app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3-r4.ebuild
new file mode 100644
index 000000000000..3155167a82d3
--- /dev/null
+++ b/app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3-r4.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools flag-o-matic toolchain-funcs
+
+MY_P=${P/mit-}
+MAJOR_MINOR="$(ver_cut 1-2)"
+DESCRIPTION="Kerberized applications split from the main MIT Kerberos V distribution"
+HOMEPAGE="http://web.mit.edu/kerberos/www/"
+SRC_URI="http://web.mit.edu/kerberos/dist/krb5-appl/${MAJOR_MINOR}/${MY_P}-signed.tar"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="openafs-krb5-a BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+
+BDEPEND="virtual/pkgconfig"
+RDEPEND=">=app-crypt/mit-krb5-1.8.0
+ sys-fs/e2fsprogs
+ sys-libs/ncurses:=
+ virtual/libcrypt:="
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-tinfo.patch"
+ "${FILESDIR}/${PN}-sig_t.patch"
+ "${FILESDIR}/${PN}-autoconf-2.72.patch"
+)
+
+src_unpack() {
+ unpack ${A}
+ unpack ./"${MY_P}".tar.gz
+}
+
+src_prepare() {
+ default
+
+ sed -i -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ append-cppflags "-I/usr/include/et"
+ append-cppflags -fno-strict-aliasing
+ append-cppflags -fno-strict-overflow
+ econf
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+ for i in {telnetd,ftpd} ; do
+ mv "${ED}"/usr/share/man/man8/${i}.8 "${ED}"/usr/share/man/man8/k${i}.8 \
+ || die "mv failed (man)"
+ mv "${ED}"/usr/sbin/${i} "${ED}"/usr/sbin/k${i} || die "mv failed"
+ done
+
+ for i in {rcp,rlogin,rsh,telnet,ftp} ; do
+ mv "${ED}"/usr/share/man/man1/${i}.1 "${ED}"/usr/share/man/man1/k${i}.1 \
+ || die "mv failed (man)"
+ mv "${ED}"/usr/bin/${i} "${ED}"/usr/bin/k${i} || die "mv failed"
+ done
+
+ rm "${ED}"/usr/share/man/man1/tmac.doc || die
+ dodoc README
+}