From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 93F07158B20 for ; Fri, 07 Feb 2025 12:18:18 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 7757834300F for ; Fri, 07 Feb 2025 12:18:18 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 686F31103CB; Fri, 07 Feb 2025 12:18:17 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 5CCF51103CB for ; Fri, 07 Feb 2025 12:18:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0BDC934092E for ; Fri, 07 Feb 2025 12:18:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3071F2532 for ; Fri, 07 Feb 2025 12:18:15 +0000 (UTC) From: "Eray Aslan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Eray Aslan" Message-ID: <1738930300.546b5929b0b382b7fc0d66c1a8d51454431f6ab0.eras@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/mit-krb5-appl/, app-crypt/mit-krb5-appl/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/mit-krb5-appl/files/mit-krb5-appl-c99.patch app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3-r5.ebuild X-VCS-Directories: app-crypt/mit-krb5-appl/ app-crypt/mit-krb5-appl/files/ X-VCS-Committer: eras X-VCS-Committer-Name: Eray Aslan X-VCS-Revision: 546b5929b0b382b7fc0d66c1a8d51454431f6ab0 X-VCS-Branch: master Date: Fri, 07 Feb 2025 12:18:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6eb16663-d2f4-446b-902b-342314833f43 X-Archives-Hash: f875052e43085cd5dd379e2c5c070de7 commit: 546b5929b0b382b7fc0d66c1a8d51454431f6ab0 Author: NHOrus yahoo com> AuthorDate: Sat Feb 1 13:50:32 2025 +0000 Commit: Eray Aslan gentoo org> CommitDate: Fri Feb 7 12:11:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=546b5929 app-crypt/mit-krb5-appl: port to C99 and up to C17 Fails to build with C23 due to very active usage of vararg functions: Some of function pointers take parameters, some of them take no parameters Bug: https://bugs.gentoo.org/946064 Closes: https://bugs.gentoo.org/878615 Signed-off-by: NHOrus yahoo.com> Signed-off-by: Eray Aslan gentoo.org> .../mit-krb5-appl/files/mit-krb5-appl-c99.patch | 71 ++++++++++++++++++++++ .../mit-krb5-appl/mit-krb5-appl-1.0.3-r5.ebuild | 71 ++++++++++++++++++++++ 2 files changed, 142 insertions(+) diff --git a/app-crypt/mit-krb5-appl/files/mit-krb5-appl-c99.patch b/app-crypt/mit-krb5-appl/files/mit-krb5-appl-c99.patch new file mode 100644 index 000000000000..d1f22845390d --- /dev/null +++ b/app-crypt/mit-krb5-appl/files/mit-krb5-appl-c99.patch @@ -0,0 +1,71 @@ +Port to C99/ up to C17: declare all implicit ints explicitly +https://bugs.gentoo.org/878615 +--- a/gssftp/ftp/cmds.c ++++ b/gssftp/ftp/cmds.c +@@ -312,8 +312,7 @@ + /* + * Set control channel protection level. + */ +-void setclevel(argc, argv) +- char *argv[]; ++void setclevel(int argc, char *argv[]) + { + register struct levels *p; + int comret; +@@ -365,8 +364,7 @@ + * Set data channel protection level. + */ + void +-setdlevel(argc, argv) +- char *argv[]; ++setdlevel(int argc, char *argv[]) + { + register struct levels *p; + int comret; +@@ -845,10 +843,7 @@ + /* + * Receive one file. + */ +-static int getit(argc, argv, restartit, rmode) +- int argc; +- char *argv[]; +- char *rmode; ++static int getit(int argc, char *argv[], int restartit, char *rmode) + { + int loc = 0; + char *oldargv1, *oldargv2; +@@ -1164,8 +1159,7 @@ + * Show status. + */ + /*ARGSUSED*/ +-void status(argc, argv) +- char *argv[]; ++void status(int argc, char *argv[]) + { + int i; + +--- a/telnet/telnet/commands.c ++++ b/telnet/telnet/commands.c +@@ -1890,8 +1890,7 @@ + } + + unsigned char * +-env_default(init, welldefined) +- int init; ++env_default(int init, int welldefined) + { + static struct env_lst *nep = NULL; + +--- a/telnet/telnet/sys_bsd.c ++++ b/telnet/telnet/sys_bsd.c +@@ -976,8 +976,8 @@ + */ + + int +-process_rings(netin, netout, netex, ttyin, ttyout, poll) +- int poll; /* If 0, then block until something to do */ ++process_rings(int netin, int netout, int netex, int ttyin, ++ int ttyout, int poll) /* If 0, then block until something to do */ + { + register int c; + /* One wants to be a bit careful about setting returnValue diff --git a/app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3-r5.ebuild b/app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3-r5.ebuild new file mode 100644 index 000000000000..39508320026e --- /dev/null +++ b/app-crypt/mit-krb5-appl/mit-krb5-appl-1.0.3-r5.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2025 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="https://web.mit.edu/kerberos/www/" +SRC_URI="https://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 ~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" + "${FILESDIR}/${PN}-c99.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 + # bug https://bugs.gentoo.org/946064 and others + append-cflags -std=gnu17 + + 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 +}