From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E9F30158086 for ; Wed, 15 Dec 2021 01:58:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0927E2BC002; Wed, 15 Dec 2021 01:58:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 34B812BC002 for ; Wed, 15 Dec 2021 01:58:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8B11534371E for ; Wed, 15 Dec 2021 01:58:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E84CC132 for ; Wed, 15 Dec 2021 01:58:12 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1639533485.17985d0258e3bf6a9c214233ea3d5a6bb84dc935.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/mold/, sys-devel/mold/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/mold/files/mold-9999-build-respect-user-FLAGS.patch sys-devel/mold/files/mold-9999-don-t-compress-man-page.patch sys-devel/mold/mold-9999.ebuild X-VCS-Directories: sys-devel/mold/ sys-devel/mold/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 17985d0258e3bf6a9c214233ea3d5a6bb84dc935 X-VCS-Branch: master Date: Wed, 15 Dec 2021 01:58:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fbb9b244-5e28-46e3-977e-e1a99a1e783a X-Archives-Hash: 6e9ad82cc7dd0aa23d8dcef09d3d6116 commit: 17985d0258e3bf6a9c214233ea3d5a6bb84dc935 Author: Sam James gentoo org> AuthorDate: Wed Dec 15 01:51:02 2021 +0000 Commit: Sam James gentoo org> CommitDate: Wed Dec 15 01:58:05 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17985d02 sys-devel/mold: drop upstreamed patches Signed-off-by: Sam James gentoo.org> .../files/mold-9999-build-respect-user-FLAGS.patch | 83 ---------------------- .../files/mold-9999-don-t-compress-man-page.patch | 22 ------ sys-devel/mold/mold-9999.ebuild | 5 -- 3 files changed, 110 deletions(-) diff --git a/sys-devel/mold/files/mold-9999-build-respect-user-FLAGS.patch b/sys-devel/mold/files/mold-9999-build-respect-user-FLAGS.patch deleted file mode 100644 index ac218201b902..000000000000 --- a/sys-devel/mold/files/mold-9999-build-respect-user-FLAGS.patch +++ /dev/null @@ -1,83 +0,0 @@ -https://github.com/rui314/mold/pull/135 - -From: Sam James -Date: Tue, 14 Dec 2021 10:53:44 +0000 -Subject: [PATCH 1/2] build: respect user *FLAGS - -- Respect user CXXFLAGS -- Rename CPPFLAGS (previously used in the sense of "flags for the C++ compiler") -> CXXFLAGS -- CPPFLAGS is generally used for "flags for the C(++) preprocessor.", so let's - use it for that -- Respect user LDFLAGS - (In one instance, we were respecting LDFLAGS, but doing it too late. - We need to pass LDFLAGS _before_ any objects in order for -Wl,--as-needed - to work correctly.) - -Signed-off-by: Sam James ---- a/Makefile -+++ b/Makefile -@@ -17,10 +17,15 @@ STRIP ?= strip - - OS ?= $(shell uname -s) - --CPPFLAGS = -pthread -std=c++20 -fPIE -DMOLD_VERSION=\"0.9.6\" \ -- -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables \ -- -DLIBDIR="\"$(LIBDIR)\"" $(EXTRA_CPPFLAGS) --LDFLAGS += $(EXTRA_LDFLAGS) -+# Used for both C and C++ -+COMMON_FLAGS = -pthread -fPIE -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -+ -+CFLAGS ?= -O2 -+CFLAGS += $(COMMON_FLAGS) -+ -+CXXFLAGS ?= -O2 -+CXXFLAGS += $(COMMON_FLAGS) -std=c++20 -+CPPFLAGS += -DMOLD_VERSION=\"0.9.6\" -DLIBDIR="\"$(LIBDIR)\"" - LIBS = -pthread -lz -lxxhash -ldl -lm - - SRCS=$(wildcard *.cc elf/*.cc macho/*.cc) -@@ -38,21 +43,19 @@ ifneq ($(GIT_HASH),) - endif - - ifeq ($(DEBUG), 1) -- CPPFLAGS += -O0 -g --else -- CPPFLAGS += -O2 -+ CXXFLAGS += -O0 -g - endif - - ifeq ($(LTO), 1) -- CPPFLAGS += -flto -O3 -+ CXXFLAGS += -flto -O3 - LDFLAGS += -flto - endif - - ifeq ($(ASAN), 1) -- CPPFLAGS += -fsanitize=address -+ CXXFLAGS += -fsanitize=address - LDFLAGS += -fsanitize=address - else ifeq ($(TSAN), 1) -- CPPFLAGS += -fsanitize=thread -+ CXXFLAGS += -fsanitize=thread - LDFLAGS += -fsanitize=thread - else ifneq ($(OS), Darwin) - # By default, we want to use mimalloc as a memory allocator. -@@ -89,15 +92,15 @@ endif - all: mold mold-wrapper.so - - mold: $(OBJS) $(MIMALLOC_LIB) $(TBB_LIB) -- $(CXX) $(CPPFLAGS) $(OBJS) -o $@ $(LDFLAGS) $(LIBS) -+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LIBS) - ln -sf mold ld - ln -sf mold ld64.mold - - mold-wrapper.so: elf/mold-wrapper.c Makefile -- $(CC) -fPIC -shared -o $@ $< -ldl -+ $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -shared -o $@ $(LDFLAGS) $< -ldl - - out/%.o: %.cc $(HEADERS) Makefile out/elf/.keep out/macho/.keep -- $(CXX) $(CPPFLAGS) -c -o $@ $< -+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< - - out/elf/.keep: - mkdir -p out/elf diff --git a/sys-devel/mold/files/mold-9999-don-t-compress-man-page.patch b/sys-devel/mold/files/mold-9999-don-t-compress-man-page.patch deleted file mode 100644 index 23dd705b553a..000000000000 --- a/sys-devel/mold/files/mold-9999-don-t-compress-man-page.patch +++ /dev/null @@ -1,22 +0,0 @@ -https://github.com/rui314/mold/pull/135 - -From: Sam James -Date: Tue, 14 Dec 2021 11:01:19 +0000 -Subject: [PATCH 2/2] build: don't compress man page - -Negligible saving and downstream, distributions usually recompress or -compress with their own specific options. Unconditionally compressing -man pages, while well intended, usually creates more hassle there. - -Signed-off-by: Sam James ---- a/Makefile -+++ b/Makefile -@@ -140,8 +140,6 @@ install: all - - install -m 755 -d $D$(MANDIR)/man1 - install -m 644 docs/mold.1 $D$(MANDIR)/man1 -- rm -f $D$(MANDIR)/man1/mold.1.gz -- gzip -9 $D$(MANDIR)/man1/mold.1 - - ln -sf mold $D$(BINDIR)/ld.mold - ln -sf mold $D$(BINDIR)/ld64.mold diff --git a/sys-devel/mold/mold-9999.ebuild b/sys-devel/mold/mold-9999.ebuild index 0a936b317bbc..77000266ebfe 100644 --- a/sys-devel/mold/mold-9999.ebuild +++ b/sys-devel/mold/mold-9999.ebuild @@ -30,11 +30,6 @@ RDEPEND=">=dev-cpp/tbb-2021.4.0:= )" DEPEND="${RDEPEND}" -PATCHES=( - "${FILESDIR}"/${PN}-9999-build-respect-user-FLAGS.patch - "${FILESDIR}"/${PN}-9999-don-t-compress-man-page.patch -) - src_compile() { tc-export CC CXX