From nobody Fri May 05 22:26:25 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QClds5bg1z49shs; Fri, 5 May 2023 22:26:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QClds51Qqz3mP4; Fri, 5 May 2023 22:26:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683325585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lHIFi+2wMYsORvJLsBE4rkSJMxhCuaY/7lN7fC79Qmc=; b=R6BchL1HD+bEYi/H8uqKi5yReo1z+MDQ/zIGdaewKDahYsVte+oEaFAOPDiSLSpMI2qDhG NZq/+KThvMXQe+9t9f1VV7d+BlZcYh09Z9tQh6u6I1Typ3QsYN/AgfAZB4jD9G/+8R7WWE LQxGX/eh1vqXTaAPmHaZ9tq7thRw7gKFgUYgLFhpTETegtHCUjY5m2JVjDJcdSMhgjpszx LrE4qwMqrCc5AThW7AxPu6hQ17x3sr1j3X8W0YfI8wbd7rMBvkztcXUEaSg4nqEHcHUiMM 3cm8aDHzvUaIY0TOwZOWo8sCiNr1x2UYTrMoY/Hmjy8GCVp77zZytbZfGF3D2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683325585; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lHIFi+2wMYsORvJLsBE4rkSJMxhCuaY/7lN7fC79Qmc=; b=n+BhZ7Y7YsvyOQ+ho4jYhTCvVtLn6SMCvjcR3NNWiceiMsyQoWQ1Hvt1cJ/g2ar1LXLAtu JUXdkpqz/g5fAZ51hjETl40/1vtGRwEcPMVPWlLgprMDM2J2rDZc0FAZMIkJRm3rpK83t/ ROIQCE0Q8EOAoX91OZqA87sW2RNtTUjFzB3YGoGORNkGpvvZ6t8rgPOhWwXd517J+vN0aM 5aUoGPCzKg20QYYzis9sBYuGfF1vjD13MKihTtiaoWUoV9JKa3zZ9gZfcGdT48inVlLgw1 e19pOX90OPob54E0SybUoiYLTi5PEkbWmK44qerKYNYvGjAayqhzp0TAismIrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683325585; a=rsa-sha256; cv=none; b=bYstTlKZT6zXGNa7GoHFQcQqOgX13508jCcx+pz4sgwHLLL1EFwE7ePRaL1Ri55oGYm7qR fgqf9texRpcqAvZ+y+db7rEtmhoTxlHvhApf28Np7R2oH7+D5BszAXKLBxuQVcMmR3CBGB 8L8ahXNL8FhzqfJVfTPHal8WI+az9198J9uIuko1xGP7GcwXTZs+/Vsgwc6uFp+l2AAPgp jLOI1zoRSbJGUYNtFAcU2+N68z2kC8gWrdaDzK6KbfTUGGUTAiEhPAwJn8FVZJ1EGlNJ0P APssQZyGFeVaV4TVvnuqxAIpsqR23yxBC1AhcRmHzyofVkwRUru67VtPs8oB6A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QClds43jHz1BHf; Fri, 5 May 2023 22:26:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 345MQP7M005357; Fri, 5 May 2023 22:26:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 345MQPPc005356; Fri, 5 May 2023 22:26:25 GMT (envelope-from git) Date: Fri, 5 May 2023 22:26:25 GMT Message-Id: <202305052226.345MQPPc005356@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthias Andree Subject: git: 8d05626bb2eb - main - net/ipsvd: fix pkg-fallout with LLVM15 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mandree X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8d05626bb2eb2ec1361e876f8ac20baf2c6a1ee3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=8d05626bb2eb2ec1361e876f8ac20baf2c6a1ee3 commit 8d05626bb2eb2ec1361e876f8ac20baf2c6a1ee3 Author: Matthias Andree AuthorDate: 2023-05-05 22:20:46 +0000 Commit: Matthias Andree CommitDate: 2023-05-05 22:26:21 +0000 net/ipsvd: fix pkg-fallout with LLVM15 ./compile udpsvd.c udpsvd.c:271:32: error: incompatible pointer to integer conversion passing 'gid_t[61]' (aka 'unsigned int[61]') to parameter of type 'unsigned long' [-Wint-conversion] bufnum[fmt_ulong(bufnum, ugid.gid)] =0; ^~~~~~~~ and use ugid.gid[0], and -include unistd.h globally, to fix several missing prototype warnings around execve. Someone tell Gerrit Pape that this code needs some serious fixing around type widths and prototypes. Deprecate, unless the upstream fixes things, and expire end of 2023. --- net/ipsvd/Makefile | 7 ++++++- net/ipsvd/files/patch-src_udpsvd.c | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/net/ipsvd/Makefile b/net/ipsvd/Makefile index 87c6d77f4891..3e67eb66bc5a 100644 --- a/net/ipsvd/Makefile +++ b/net/ipsvd/Makefile @@ -1,5 +1,6 @@ PORTNAME= ipsvd PORTVERSION= 1.0.0 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://smarden.org/ipsvd/ @@ -18,12 +19,16 @@ BROKEN_riscv64= fails to install: Checking udpsvd... drop: unable to read from WRKSRC= ${WRKDIR}/net/${DISTNAME} ALL_TARGET= default +DEPRECATED= bogus assumption of system type widths, likely crash-prone +EXPIRATION_DATE=2023-12-31 + DOCS= package/CHANGES package/COPYING package/README doc/*.html OPTIONS_DEFINE= DOCS +USE_CSTD= c89 do-configure: - @${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc + @${ECHO_CMD} "${CC} ${CFLAGS} -include unistd.h" > ${WRKSRC}/src/conf-cc @${ECHO_CMD} "${CC} ${LDFLAGS}" > ${WRKSRC}/src/conf-ld @${ECHO_CMD} "${LOCALBASE}/include/libdjbdns" \ > ${WRKSRC}/src/conf-djbdnsinc diff --git a/net/ipsvd/files/patch-src_udpsvd.c b/net/ipsvd/files/patch-src_udpsvd.c new file mode 100644 index 000000000000..15c186535726 --- /dev/null +++ b/net/ipsvd/files/patch-src_udpsvd.c @@ -0,0 +1,11 @@ +--- src/udpsvd.c.orig 2008-06-15 20:31:14 UTC ++++ src/udpsvd.c +@@ -268,7 +268,7 @@ int main(int argc, const char **argv, const char *cons + if (user) { + bufnum[fmt_ulong(bufnum, ugid.uid)] =0; + out(", uid "); out(bufnum); +- bufnum[fmt_ulong(bufnum, ugid.gid)] =0; ++ bufnum[fmt_ulong(bufnum, ugid.gid[0])] =0; + out(", gid "); out(bufnum); + } + flush(", starting.\n");