From owner-svn-ports-all@freebsd.org Fri Feb 21 21:30:00 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7E08A243D69; Fri, 21 Feb 2020 21:30:00 +0000 (UTC) (envelope-from dim@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48PPkJ1c07z3Lls; Fri, 21 Feb 2020 21:30:00 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1CED818FCE; Fri, 21 Feb 2020 21:30:00 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 01LLTxWY085043; Fri, 21 Feb 2020 21:29:59 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 01LLTw1c085036; Fri, 21 Feb 2020 21:29:58 GMT (envelope-from dim@FreeBSD.org) Message-Id: <202002212129.01LLTw1c085036@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Fri, 21 Feb 2020 21:29:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r526719 - in branches/2020Q1/devel: valgrind valgrind-devel valgrind-devel/files valgrind/files X-SVN-Group: ports-branches X-SVN-Commit-Author: dim X-SVN-Commit-Paths: in branches/2020Q1/devel: valgrind valgrind-devel valgrind-devel/files valgrind/files X-SVN-Commit-Revision: 526719 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Feb 2020 21:30:00 -0000 Author: dim (src committer) Date: Fri Feb 21 21:29:58 2020 New Revision: 526719 URL: https://svnweb.freebsd.org/changeset/ports/526719 Log: MFH: r526608 devel/valgrind(-devel): Fix compiler version detection hopefully forever Every time a compiler major version is bumped, we run into this exact same error: ===> Configuring for valgrind-3.10.1.20160113_7,1 ... checking for a supported version of gcc... no (10.0.0) configure: error: please use gcc >= 3.0 or clang >= 2.9 Attempt to fix this for all versions in the future. Other fix included: don't use undefined behavior to implement offsetof, just use the official builtin function instead. Approved by: portmgr (joneum) PR: 244234 Added: branches/2020Q1/devel/valgrind-devel/files/patch-VEX_auxprogs_genoffsets.c - copied unchanged from r526608, head/devel/valgrind-devel/files/patch-VEX_auxprogs_genoffsets.c branches/2020Q1/devel/valgrind/files/patch-VEX_auxprogs_genoffsets.c - copied unchanged from r526608, head/devel/valgrind/files/patch-VEX_auxprogs_genoffsets.c Modified: branches/2020Q1/devel/valgrind-devel/Makefile branches/2020Q1/devel/valgrind-devel/files/patch-configure.ac branches/2020Q1/devel/valgrind/Makefile branches/2020Q1/devel/valgrind/files/patch-configure.ac Directory Properties: branches/2020Q1/ (props changed) Modified: branches/2020Q1/devel/valgrind-devel/Makefile ============================================================================== --- branches/2020Q1/devel/valgrind-devel/Makefile Fri Feb 21 21:15:07 2020 (r526718) +++ branches/2020Q1/devel/valgrind-devel/Makefile Fri Feb 21 21:29:58 2020 (r526719) @@ -4,7 +4,7 @@ PORTNAME= valgrind PORTVERSION= 3.10.1.20160113 DISTVERSIONPREFIX= freebsd- -PORTREVISION= 6 +PORTREVISION= 7 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= https://bitbucket.org/${BB_ACCOUNT}/${BB_PROJECT}/get/${BB_COMMIT}.tar.gz?dummy=/ \ Copied: branches/2020Q1/devel/valgrind-devel/files/patch-VEX_auxprogs_genoffsets.c (from r526608, head/devel/valgrind-devel/files/patch-VEX_auxprogs_genoffsets.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2020Q1/devel/valgrind-devel/files/patch-VEX_auxprogs_genoffsets.c Fri Feb 21 21:29:58 2020 (r526719, copy of r526608, head/devel/valgrind-devel/files/patch-VEX_auxprogs_genoffsets.c) @@ -0,0 +1,11 @@ +--- VEX/auxprogs/genoffsets.c 2016-01-13 19:20:20 UTC ++++ VEX/auxprogs/genoffsets.c +@@ -59,7 +59,7 @@ + #define VG_STRINGIFZ(__str) #__str + #define VG_STRINGIFY(__str) VG_STRINGIFZ(__str) + +-#define my_offsetof(__type,__field) (&((__type*)0)->__field) ++#define my_offsetof(__type,__field) offsetof(__type,__field) + + /* This forces gcc to evaluate the my_offsetof call at compile time, + and then emits it in the assembly, along with the nonsense string Modified: branches/2020Q1/devel/valgrind-devel/files/patch-configure.ac ============================================================================== --- branches/2020Q1/devel/valgrind-devel/files/patch-configure.ac Fri Feb 21 21:15:07 2020 (r526718) +++ branches/2020Q1/devel/valgrind-devel/files/patch-configure.ac Fri Feb 21 21:29:58 2020 (r526719) @@ -1,23 +1,21 @@ --- configure.ac.orig 2016-01-13 19:20:20 UTC +++ configure.ac -@@ -145,7 +145,19 @@ - notclang-5.*) +@@ -136,16 +136,10 @@ + AM_CONDITIONAL(COMPILER_IS_CLANG, test $is_clang = clang) + + case "${is_clang}-${gcc_version}" in +- notclang-3.*) ++ notclang-[[3-9]].*|notclang-[[1-9]][[0-9]]*) AC_MSG_RESULT([ok (${gcc_version})]) ;; +- notclang-4.*) +- AC_MSG_RESULT([ok (${gcc_version})]) +- ;; +- notclang-5.*) +- AC_MSG_RESULT([ok (${gcc_version})]) +- ;; - clang-2.9|clang-3.*|clang-4.*) -+ notclang-6.*) -+ AC_MSG_RESULT([ok (${gcc_version})]) -+ ;; -+ notclang-7.*) -+ AC_MSG_RESULT([ok (${gcc_version})]) -+ ;; -+ notclang-8.*) -+ AC_MSG_RESULT([ok (${gcc_version})]) -+ ;; -+ notclang-9.*) -+ AC_MSG_RESULT([ok (${gcc_version})]) -+ ;; -+ clang-2.9|clang-[[3-9]].*) ++ clang-2.9|clang-[[3-9]].*|clang-[[1-9]][[0-9]]*) AC_MSG_RESULT([ok (clang-${gcc_version})]) ;; *) Modified: branches/2020Q1/devel/valgrind/Makefile ============================================================================== --- branches/2020Q1/devel/valgrind/Makefile Fri Feb 21 21:15:07 2020 (r526718) +++ branches/2020Q1/devel/valgrind/Makefile Fri Feb 21 21:29:58 2020 (r526719) @@ -4,7 +4,7 @@ PORTNAME= valgrind PORTVERSION= 3.10.1.20160113 DISTVERSIONPREFIX= freebsd- -PORTREVISION= 7 +PORTREVISION= 8 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= https://bitbucket.org/${BB_ACCOUNT}/${BB_PROJECT}/get/${BB_COMMIT}.tar.gz?dummy=/ \ Copied: branches/2020Q1/devel/valgrind/files/patch-VEX_auxprogs_genoffsets.c (from r526608, head/devel/valgrind/files/patch-VEX_auxprogs_genoffsets.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2020Q1/devel/valgrind/files/patch-VEX_auxprogs_genoffsets.c Fri Feb 21 21:29:58 2020 (r526719, copy of r526608, head/devel/valgrind/files/patch-VEX_auxprogs_genoffsets.c) @@ -0,0 +1,11 @@ +--- VEX/auxprogs/genoffsets.c 2016-01-13 19:20:20 UTC ++++ VEX/auxprogs/genoffsets.c +@@ -59,7 +59,7 @@ + #define VG_STRINGIFZ(__str) #__str + #define VG_STRINGIFY(__str) VG_STRINGIFZ(__str) + +-#define my_offsetof(__type,__field) (&((__type*)0)->__field) ++#define my_offsetof(__type,__field) offsetof(__type,__field) + + /* This forces gcc to evaluate the my_offsetof call at compile time, + and then emits it in the assembly, along with the nonsense string Modified: branches/2020Q1/devel/valgrind/files/patch-configure.ac ============================================================================== --- branches/2020Q1/devel/valgrind/files/patch-configure.ac Fri Feb 21 21:15:07 2020 (r526718) +++ branches/2020Q1/devel/valgrind/files/patch-configure.ac Fri Feb 21 21:29:58 2020 (r526719) @@ -1,23 +1,21 @@ --- configure.ac.orig 2016-01-13 19:20:20 UTC +++ configure.ac -@@ -145,7 +145,19 @@ - notclang-5.*) +@@ -136,16 +136,10 @@ + AM_CONDITIONAL(COMPILER_IS_CLANG, test $is_clang = clang) + + case "${is_clang}-${gcc_version}" in +- notclang-3.*) ++ notclang-[[3-9]].*|notclang-[[1-9]][[0-9]]*) AC_MSG_RESULT([ok (${gcc_version})]) ;; +- notclang-4.*) +- AC_MSG_RESULT([ok (${gcc_version})]) +- ;; +- notclang-5.*) +- AC_MSG_RESULT([ok (${gcc_version})]) +- ;; - clang-2.9|clang-3.*|clang-4.*) -+ notclang-6.*) -+ AC_MSG_RESULT([ok (${gcc_version})]) -+ ;; -+ notclang-7.*) -+ AC_MSG_RESULT([ok (${gcc_version})]) -+ ;; -+ notclang-8.*) -+ AC_MSG_RESULT([ok (${gcc_version})]) -+ ;; -+ notclang-9.*) -+ AC_MSG_RESULT([ok (${gcc_version})]) -+ ;; -+ clang-2.9|clang-[[3-9]].*) ++ clang-2.9|clang-[[3-9]].*|clang-[[1-9]][[0-9]]*) AC_MSG_RESULT([ok (clang-${gcc_version})]) ;; *)