From nobody Sun Dec 18 17:43:43 2022 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 4NZqvM3JHqz1GmRx; Sun, 18 Dec 2022 17:43:43 +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 4NZqvM2sswz4Hhq; Sun, 18 Dec 2022 17:43:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385423; 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=9I+lBpdgjdHT4A7WLuZUUh5bqBkUOlDZy7jQRL8bffw=; b=HSrpf2GLq4r0VrhAczI5SWmRMYIK8I1r/JQJBPMLdFiDTWoizgA/tRnR2xrx3o4dOpvTp9 maOpvbd5+dS/HC1ZQsJKGAyEoKe3Dd1OZJnNc5Ze+srEWG/HWS4x0CHl3ytvRcaw1ZNEJz CK4wtbT3fuNhoiecXR54YJaNmi3Oe11p26xYXipqJvtC3t7z4WfQcLJcy7CGvgaz9UW9qT pkGgLHBT+T5OkRJs+io6Eqen32w+v4V24i/kBULUSaOhtWK2ROjzlr9lPTIz6oQ9J2EQUG EcnzFzXP2IhZxU7JgLJ/CwBDXBf2iicwYNq9yThHdv+ldurxBTy0vWaFREtYpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385423; 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=9I+lBpdgjdHT4A7WLuZUUh5bqBkUOlDZy7jQRL8bffw=; b=McFhcBPYIGpz886Igq2ewKm83nADtor0RyiCg8rpjbwREPuhOudyjTmk8LL/Kq0ZP0qBW9 Wkh/QKXAcMzo8z2Q5VO7rRV+AeUu+lqrz+eaKyT+nfLHM8ln5BOfP6z04JATeov1llfohM H8sSjL8TRf2HJCcpLrYah5Cefu6JCaq+EDATzmaPczwiBtcP7Fdt5T8uv61Tj5WSdVD/3y EXuLOoxDQECI9fS/edqb3Po3mZD2oraRuNy32xLAO65K+YGFjm0hkFxziP8hAO0gaqJ9fn qa5WRLDNuI6pQkWHi6pkHA0rKd5w9EC+1TRbOQR6PMesaZsDf3naWzjZDLnShg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671385423; a=rsa-sha256; cv=none; b=KUrwJt9bP3vXU4G2CkI8pfNoDfn6kLY3GA1YzggVBTtyJ4WbXB2xI54cbhyQn2xxwG/DmD mSZ8hOrbS5MyhkdEwSr1upRrhG24q/FVC5LGEA9WuOvs1pB18PhLOS+UFpb9LiI6kizKYJ 7UFQJfe1phNdyjm4HiJRX9hZZp+Z2N5dd0SqQst5VDGJGpCakXDU6f+7HyaoVz2GqpfeYv 28bSIZ935AsemwbeZk7WStGvZo9miT9ggrKrOZLRHU83m8mt+Yby8zcipdHbEZUX52+kCo sh0krAXy4NotqYYGjX90hz9clp8PqOtIY3hzOT5pGfQ8aKgbJCg13jrWaaao1Q== 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 4NZqvM1zjhzPwZ; Sun, 18 Dec 2022 17:43:43 +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 2BIHhhwg006281; Sun, 18 Dec 2022 17:43:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BIHhhrN006280; Sun, 18 Dec 2022 17:43:43 GMT (envelope-from git) Date: Sun, 18 Dec 2022 17:43:43 GMT Message-Id: <202212181743.2BIHhhrN006280@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: 0f85c4d7e4ce - main - devel/p5-IO-Tty: fix build with clang 15 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: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0f85c4d7e4ceb4237ff6562a6b97c7051db01bf0 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=0f85c4d7e4ceb4237ff6562a6b97c7051db01bf0 commit 0f85c4d7e4ceb4237ff6562a6b97c7051db01bf0 Author: Dimitry Andric AuthorDate: 2022-12-07 17:46:31 +0000 Commit: Dimitry Andric CommitDate: 2022-12-18 17:24:57 +0000 devel/p5-IO-Tty: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that devel/p5-IO-Tty failed to build with clang 15: Tty.xs:190:1: error: static declaration of 'strlcpy' follows non-static declaration strlcpy(dst, src, siz) ^ /usr/include/string.h:99:9: note: previous declaration is here size_t strlcpy(char * __restrict, const char * __restrict, size_t); ^ This is because strlcpy() and various other functions are not correctly detected at configure time: Looking for _getpty()...... not found. Looking for getpt()........ not found. Looking for grantpt()...... not found. Looking for openpty()...... not found. Looking for posix_openpt(). not found. Looking for ptsname()...... not found. Looking for ptsname_r().... not found. Looking for sigaction().... not found. Looking for strlcpy()...... not found. Looking for ttyname()...... not found. Looking for unlockpt()..... not found. Looking for libutil.h...... FOUND. Looking for pty.h.......... not found. Looking for sys/pty.h...... not found. Looking for sys/ptyio.h.... not found. Looking for sys/stropts.h.. not found. Looking for termio.h....... not found. Looking for termios.h...... FOUND. Looking for util.h......... not found. Makefile.PL contains a C fragment that is used for this detection, but it assigns the incorrect type to the value returned from the tested function. This leads to compilation errors, even if the tested function *is* available. Fix this by using the correct type for the variable containing the return value. PR: 268232 Approved by: portmgr (tcberner) MFH: 2022Q4 --- devel/p5-IO-Tty/files/patch-Makefile.PL | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/devel/p5-IO-Tty/files/patch-Makefile.PL b/devel/p5-IO-Tty/files/patch-Makefile.PL new file mode 100644 index 000000000000..a8901338a67e --- /dev/null +++ b/devel/p5-IO-Tty/files/patch-Makefile.PL @@ -0,0 +1,11 @@ +--- Makefile.PL.orig 2021-01-22 08:02:35 UTC ++++ Makefile.PL +@@ -146,7 +146,7 @@ char $f (); + /* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ + char $f (); +-char (*f) (); ++char f; + + #ifdef F77_DUMMY_MAIN + # ifdef __cplusplus