From owner-dev-commits-ports-all@freebsd.org Sun Jun 6 18:20:48 2021 Return-Path: Delivered-To: dev-commits-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 E06FF63B491; Sun, 6 Jun 2021 18:20:48 +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 4FylDc5n66z3hg2; Sun, 6 Jun 2021 18:20:48 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 AEB34333; Sun, 6 Jun 2021 18:20:48 +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 156IKm1N060787; Sun, 6 Jun 2021 18:20:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 156IKm1u060786; Sun, 6 Jun 2021 18:20:48 GMT (envelope-from git) Date: Sun, 6 Jun 2021 18:20:48 GMT Message-Id: <202106061820.156IKm1u060786@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: 6f7976573c61 - main - devel/mdb: fix tautological-pointer-compare warning option 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: 6f7976573c611f946f9ce34a3f21c848ab48d1de Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2021 18:20:48 -0000 The branch main has been updated by dim (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=6f7976573c611f946f9ce34a3f21c848ab48d1de commit 6f7976573c611f946f9ce34a3f21c848ab48d1de Author: Dimitry Andric AuthorDate: 2021-05-17 20:03:02 +0000 Commit: Dimitry Andric CommitDate: 2021-06-06 18:20:02 +0000 devel/mdb: fix tautological-pointer-compare warning option During an exp-run for llvm 12 (see bug 255570), it turned out that devel/mdb does not build with clang 12.0.0: cc -O2 -pipe -DMDB_PREFIX=\"/usr/local\" -g -fstack-protector-strong -fno-strict-aliasing -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../sys/cddl/compat/opensolaris -I/usr/src/sys/cddl/compat/opensolaris -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../cddl/compat/opensolaris/include -I/usr/src/cddl/compat/opensolaris/include -I/usr/src/cddl/contrib/opensolaris/head -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/lib/libdisasm/common -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/common/dis/i386 -I/usr/src/cddl/contrib/opensolaris/lib/libctf/common -I/usr/src/sys/cddl/contrib/opensolaris/uts/common -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/cmd/mdb/intel/mdb -I/wrkdirs/u sr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/cmd/mdb/intel/amd64/mdb -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/cmd/mdb/intel -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/lib/libsaveargs/common -D_MDB -I/wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/cmd/mdb/common -I/usr/src -DDIS_TEXT -D_SYS_INT_TYPES_H -Dmemalign=aligned_alloc -DTCGETS=TIOCGETA -DTCSETSW=TIOCSETAW -DIUCLC=0 -DENODATA=ENOENT -D__amd64 -DIN_BASE -DNEED_SOLARIS_BOOLEAN -fPIE -MD -MF.depend.kvm_amd64dep_freebsd.o -MTkvm_amd64dep_freebsd.o -std=gnu99 -Wno-format-zero-length -nobuiltininc -idirafter /usr/lib/clang/12.0.0/include -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wp ointer-arith -Wreturn-type -Wcast-qual -Wwri! te-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-unknown-pragmas -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-bitwise-op-parentheses -Wno-cast-align -Wno-cast-qual -Wno-char-subscripts -Wno-incompatible-pointer-types -Wno-incompatible-pointer-types-discards-qualifiers -Wno-logical-op-parentheses -Wno-missing-braces -Wno-missing-field-initializers -Wno-missing-variable-declarations -Wno-shadow -Wno-sign-compare -Wno-strict-prototypes -Wno-error-tautological-pointer-compare -Wno-unused-parameter -Qunused-arguments -c /wrkdirs/usr/ports/devel/mdb/work/illumos-gate-60ff9f11c2/freebsd/cddl/usr.bin/mdb/mdb/../../../../../usr/src/cmd/mdb/intel/mdb/kvm_amd64dep_freebsd.c -o kvm_amd64dep_freebsd.o error: unknown -Werror warning specifier: '-Wno-error-tautological-pointer-compare' [-Werror,-Wunknown-warning-option] *** [kvm_amd64dep_freebsd.o] Error code 1 This is because for a while -Wno-error- options should be spelled as -Wno-error=, instead. Approved by: maintainer timeout (2 weeks) PR: 255955 MFH: 2021Q2 --- devel/mdb/Makefile | 1 + devel/mdb/files/patch-mdb_Makefile | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/devel/mdb/Makefile b/devel/mdb/Makefile index 862f8b0691d3..25764650c01a 100644 --- a/devel/mdb/Makefile +++ b/devel/mdb/Makefile @@ -1,5 +1,6 @@ PORTNAME= mdb PORTVERSION= 20210125 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= jhb@FreeBSD.org diff --git a/devel/mdb/files/patch-mdb_Makefile b/devel/mdb/files/patch-mdb_Makefile new file mode 100644 index 000000000000..2258d0c3ba9b --- /dev/null +++ b/devel/mdb/files/patch-mdb_Makefile @@ -0,0 +1,11 @@ +--- mdb/Makefile.orig 2021-01-25 20:32:57 UTC ++++ mdb/Makefile +@@ -201,7 +201,7 @@ CWARNFLAGS.clang+= \ + -Wno-shadow \ + -Wno-sign-compare \ + -Wno-strict-prototypes \ +- -Wno-error-tautological-pointer-compare \ ++ -Wno-error=tautological-pointer-compare \ + -Wno-unused-parameter + + .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 100000 || \