From nobody Sun May 15 04:49:13 2022 X-Original-To: dev-commits-ports-all@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 591661ADD375; Sun, 15 May 2022 04:49:14 +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 4L18zt206pz4m6Y; Sun, 15 May 2022 04:49:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652590154; 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=rcu4f4K7oKkb0j5eo1nukbM6+19+4ATkcg772I479ks=; b=obGTFRlaNu7L99ZEtpe3j4Eg+STwSrEBnHsBNsBsU0X7PyNcpW4KiFNP6Gl4nPdJHyVgyX SejCjhkvWDoMMULZygSBqj0bjRx3y2RIRJOrxxFt7Ozo04VU1mlYcBXNx0tcW0ikEXj6jE /SKJw5c/gyP7zF/tzMqcia484qWlbcltvt2Y3HWUt2l335qG4taXHK5F3epE7F/4kX/RpV 2ClkrHDpjcmPJRoSaEOjg1m2/FWe+XGYgsEdjetPCZsewDyOtfX1L7PmFAar2NGcbglLVo JqAJJFWujODynDQ83tUZ2XWX5yiZL40iHogpy0aLMNn+FjqJt00XOiInJ0s+hw== 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 20BA724FDB; Sun, 15 May 2022 04:49:14 +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 24F4nDUx091409; Sun, 15 May 2022 04:49:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24F4nDcA091408; Sun, 15 May 2022 04:49:13 GMT (envelope-from git) Date: Sun, 15 May 2022 04:49:13 GMT Message-Id: <202205150449.24F4nDcA091408@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Fukang Chen Subject: git: 766053a588ce - main - misc/mbuffer: Fix build on 12.3-RELEASE aarch64 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: loader X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 766053a588ce4c29fb8d59cddcede448e5e60812 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652590154; 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=rcu4f4K7oKkb0j5eo1nukbM6+19+4ATkcg772I479ks=; b=IHQBM+HKxBx8x/LvwuVnRSLCD0ULck3EIhU6dJb+U6GTTalUjIhUbopcfx+YpiQYOAiggM krZA1FNZ8jKall7v9+T05GXWbNsfqro/QH1UPBiUPf6cGZVF9g3xZEVR5TBfYnXU3ZBXeO v8qIavzvtF2ATXGzpeG7mfxl74dIdLuwn9AGb2HSPrWXX/CtEY1CKMRYz+np3hZ04+y2Pu zfqi+xYZvOSKPlBGKwX63PvQHCGQfSIm7bqIpyNp/+KWdrLig2KSmPO/bal76Rj6ClFkly AcJXZEqrDGtayFoC/9DEYiH6kxmV0kV+ft6iwcjCSRUgXKxL2X41rr7l7H5Zeg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652590154; a=rsa-sha256; cv=none; b=fvsReJtGPcKh8Qxi7GW6BlgtWVHAlCDn1bCDMkLSFlOUmo8ZGV0BYDobH+ThnRD4oI1yUw mQdn3RD9wZHj+JTRETXGKCVbTWFNisc2tWyC4kVUHShOwuQC7l5lDI4bchA4lWZROARuRu +BAHDbKNFBk1NibgcTiDRAKymGkQ14i4vZXD/6ahxu2xFI2IuLsCZpIKGTX/caf9EBc0xC D67WPvhXR++xG8GNYz+M2FzOSqBKfhRCvIPPIifjSSFM8ij9Q1rgv0plaeiGViFY0QPuEj H7S7Lv6sbcP27dacrSfQa/MC+iYONO0+ScjizRNOaJ1lQ5UWffERY7eYnbHgig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by loader: URL: https://cgit.FreeBSD.org/ports/commit/?id=766053a588ce4c29fb8d59cddcede448e5e60812 commit 766053a588ce4c29fb8d59cddcede448e5e60812 Author: Fukang Chen AuthorDate: 2022-05-15 03:03:24 +0000 Commit: Fukang Chen CommitDate: 2022-05-15 04:44:45 +0000 misc/mbuffer: Fix build on 12.3-RELEASE aarch64 https://lists.freebsd.org/archives/freebsd-pkg-fallout/2022-May/240425.html MFH: 2022Q2 (build fix) --- misc/mbuffer/Makefile | 8 ++++- misc/mbuffer/files/extra-patch-12.3 | 61 +++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) diff --git a/misc/mbuffer/Makefile b/misc/mbuffer/Makefile index 00fcb87f9c37..bd2650e2575b 100644 --- a/misc/mbuffer/Makefile +++ b/misc/mbuffer/Makefile @@ -32,6 +32,12 @@ GCRYPT_RUN_DEPENDS= libgcrypt>=1.8.4_1:security/libgcrypt MHASH_RUN_DEPENDS= mhash>=0.9.9.9_5:security/mhash RHASH_RUN_DEPENDS= rhash>=1.3.5:security/rhash +.include + +.if ${ARCH} == aarch64 && ${OSVERSION} < 1300000 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-12.3 +.endif + post-patch: ${REINPLACE_CMD} \ -e 's@bash@sh@' ${WRKSRC}/Makefile.in @@ -41,4 +47,4 @@ post-install: ${MV} ${STAGEDIR}${PREFIX}/etc/mbuffer.rc \ ${STAGEDIR}${PREFIX}/etc/mbuffer.rc.sample -.include +.include diff --git a/misc/mbuffer/files/extra-patch-12.3 b/misc/mbuffer/files/extra-patch-12.3 new file mode 100644 index 000000000000..c60d49818579 --- /dev/null +++ b/misc/mbuffer/files/extra-patch-12.3 @@ -0,0 +1,61 @@ +- cc(1) crashes with "-g" on FreeBSD 12.3-RELEASE aarch64 + + cc: error: unable to execute command: Abort trap (core dumped) + cc: error: clang frontend command failed due to signal (use -v to see invocation) + FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) + Target: aarch64-unknown-freebsd12.3 + Thread model: posix + InstalledDir: /usr/bin + cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. + cc: note: diagnostic msg: + ******************** + + PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: + Preprocessed source(s) and associated run script(s) are located at: + cc: note: diagnostic msg: /tmp/idev-47a323.c + cc: note: diagnostic msg: /tmp/idev-47a323.sh + cc: note: diagnostic msg: + + ******************** + gmake[1]: *** [Makefile:197: idev.so] Error 254 + gmake[1]: Leaving directory '/usr/ports/misc/mbuffer/work/mbuffer-20211018' + +- llvm-objdump(1) does not support "-T" on FreeBSD 12.3-RELEASE aarch64 + +--- Makefile.in.orig 2022-05-14 11:38:27 UTC ++++ Makefile.in +@@ -194,7 +194,7 @@ tapetest.so: tapetest.c config.h + $(CC) $(CFLAGS) -shared -fPIC tapetest.c -o $@ $(LIBS) + + idev.so: idev.c config.h +- $(CC) $(CFLAGS) -shared -g -fPIC idev.c -o $@ $(LIBS) ++ $(CC) $(CFLAGS) -shared -fPIC idev.c -o $@ $(LIBS) + + $(DEPS): | build + +--- configure.in.orig 2022-05-14 11:37:04 UTC ++++ configure.in +@@ -173,19 +173,19 @@ else + ]])],[ + AC_MSG_RESULT([OK]) + AC_MSG_CHECKING([name of open() in C library]) +- libc_open=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^open/ { print $NF }'` ++ libc_open=`$OBJDUMP -t conftest | $AWK '/\*UND\*/ && $NF ~ /^open/ { print $NF }'` + AC_DEFINE_UNQUOTED([LIBC_OPEN], $libc_open, [name of open() in libc]) + AC_MSG_RESULT($libc_open) + AC_MSG_CHECKING([name of read() in C library]) +- libc_read=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^read/ { print $NF }'` ++ libc_read=`$OBJDUMP -t conftest | $AWK '/\*UND\*/ && $NF ~ /^read/ { print $NF }'` + AC_DEFINE_UNQUOTED([LIBC_READ], $libc_read, [name of write() in libc]) + AC_MSG_RESULT($libc_read) + AC_MSG_CHECKING([name of write() in C library]) +- libc_write=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^write/ { print $NF }'` ++ libc_write=`$OBJDUMP -t conftest | $AWK '/\*UND\*/ && $NF ~ /^write/ { print $NF }'` + AC_DEFINE_UNQUOTED([LIBC_WRITE], $libc_write, [name of write() in libc]) + AC_MSG_RESULT($libc_write) + AC_MSG_CHECKING([name of fstat() in C library]) +- libc_fstat=`$OBJDUMP -T conftest | $AWK '/\*UND\*/ && $NF ~ /^_*fstat/ { print $NF }'` ++ libc_fstat=`$OBJDUMP -t conftest | $AWK '/\*UND\*/ && $NF ~ /^_*fstat/ { print $NF }'` + AC_DEFINE_UNQUOTED([LIBC_FSTAT], $libc_fstat, [name of fstat() in libc]) + AC_MSG_RESULT($libc_fstat) + ],