From patchwork Thu Jan 19 17:55:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Smeets X-Patchwork-Id: 63413 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C986538493ED for ; Thu, 19 Jan 2023 17:56:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C986538493ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674150980; bh=MiDHi0NV92WfDB/gE7lqXgnOCoFOdmfAFLnVBZoxSYc=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=kR3mdETqTxjZzkEXzhed8pFMDYO765TBsiKVKvNMFCXGLnJlLWbBbuAx13eB9w9L3 kg0iZNeN2PLK1GmDmlIVlbC55yS2a9In2cXbUtYSZCV2lhNV2TrOU2RPQyMlTt+USJ 6Tl23ZBc8Uc4nCLknrbvWiL8QLQhaFAJXBYp5Q0w= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from lxh-sysa-011.node.capitar.com (lxh-sysa-011.node.capitar.com [176.31.125.55]) by sourceware.org (Postfix) with ESMTPS id F09A9385840E for ; Thu, 19 Jan 2023 17:55:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F09A9385840E Received: from PC-Vincent.vsmeets.nl (unknown [85.150.201.88]) by m7-mail-relay-p01.zt.capitar.com (Postfix) with ESMTP id 3DBA6338B0; Thu, 19 Jan 2023 18:55:22 +0100 (CET) Received: from vincent by PC-Vincent.vsmeets.nl with local (Exim 4.96) (envelope-from ) id 1pIZ8D-0006mE-1e; Thu, 19 Jan 2023 18:55:21 +0100 To: gdb-patches@sourceware.org Cc: Vincent Smeets Subject: [PATCH 1/7] bfd: build with mktemp Date: Thu, 19 Jan 2023 18:55:01 +0100 Message-Id: <20230119175507.25046-2-Vincent.VSmeets@GMail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> References: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> MIME-Version: 1.0 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=J7XUEzvS c=1 sm=1 tr=0 a=lXYvOTk0js8zacgGuor68g==:117 a=lXYvOTk0js8zacgGuor68g==:17 a=RvmDmJFTN0MA:10 a=x7bEGLp0ZPQA:10 a=0goVqbi9XAQA:10 a=y6GKlbF_L7ZiY28c1RwA:9 X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Vincent Smeets via Gdb-patches From: Vincent Smeets Reply-To: Vincent Smeets Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- bfd/Makefile.am | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/bfd/Makefile.am b/bfd/Makefile.am index c0a48dcf..b71be3f7 100644 --- a/bfd/Makefile.am +++ b/bfd/Makefile.am @@ -742,14 +742,16 @@ SRC_POTFILES = $(SOURCE_CFILES) $(SOURCE_HFILES) BLD_POTFILES = $(BUILD_CFILES) $(BUILD_HFILES) po/SRC-POTFILES.in: @MAINT@ Makefile + tmp=`mktemp --tmpdir=. SRC-POTFILES.XXXXXX.in`; \ for file in $(SRC_POTFILES); do echo $$file; done \ - | LC_ALL=C sort > tmp.src \ - && mv tmp.src $(srcdir)/po/SRC-POTFILES.in + | LC_ALL=C sort > $$tmp \ + && mv $$tmp $(srcdir)/po/SRC-POTFILES.in po/BLD-POTFILES.in: @MAINT@ Makefile + tmp=`mktemp --tmpdir=. BLD-POTFILES.XXXXXX.in`; \ for file in $(BLD_POTFILES); do echo $$file; done \ - | LC_ALL=C sort > tmp.bld \ - && mv tmp.bld $(srcdir)/po/BLD-POTFILES.in + | LC_ALL=C sort > $$tmp \ + && mv $$tmp $(srcdir)/po/BLD-POTFILES.in all diststuff: info @@ -796,9 +798,10 @@ libbfd_a_SOURCES = stamp-lib: libbfd.la libtooldir=`$(LIBTOOL) --config | $(SED) -n -e 's/^objdir=//p'`; \ if [ -f $$libtooldir/libbfd.a ]; then \ - cp $$libtooldir/libbfd.a libbfd.tmp; \ - $(RANLIB) libbfd.tmp; \ - $(SHELL) $(srcdir)/../move-if-change libbfd.tmp libbfd.a; \ + tmp=`mktemp --tmpdir=. libbfd.XXXXXX.a`; \ + cp $$libtooldir/libbfd.a $$tmp; \ + $(RANLIB) $$tmp; \ + $(SHELL) $(srcdir)/../move-if-change $$tmp libbfd.a; \ else true; fi touch stamp-lib @@ -921,10 +924,9 @@ gen-aout: $(srcdir)/gen-aout.c Makefile $(BFD_H): stmp-bfd-h ; @true stmp-bfd-h: bfd-in3.h - rm -f bfd-tmp.h - cp bfd-in3.h bfd-tmp.h - $(SHELL) $(srcdir)/../move-if-change bfd-tmp.h $(BFD_H) - rm -f bfd-tmp.h + tmp=`mktemp --tmpdir=. bfd.XXXXXX.h`; \ + cp bfd-in3.h $$tmp; \ + $(SHELL) $(srcdir)/../move-if-change $$tmp $(BFD_H) touch stmp-bfd-h BFD_H_FILES = bfd-in.h init.c opncls.c libbfd.c \ @@ -962,20 +964,23 @@ REGEN_HEADER = \ $(srcdir)/bfd-in2.h: @MAINT@ stmp-bin2-h ; @true stmp-bin2-h: $(BFD_H_FILES) $(BFD64_H_FILES) $(MKDOC) - $(AM_V_GEN)H_FILES="$(BFD_H_FILES)" CHEW_FLAGS= ; $(REGEN_HEADER) > bfd-in2.h-new - $(AM_V_at)$(SHELL) $(srcdir)/../move-if-change bfd-in2.h-new $(srcdir)/bfd-in2.h + $(AM_V_GEN) tmp=`mktemp --tmpdir=. bfd-in2.XXXXXX.h`; \ + H_FILES="$(BFD_H_FILES)" CHEW_FLAGS= ; $(REGEN_HEADER) > $$tmp; \ + $(SHELL) $(srcdir)/../move-if-change $$tmp $(srcdir)/bfd-in2.h $(AM_V_at)touch stmp-bin2-h $(srcdir)/libbfd.h: @MAINT@ stmp-lbfd-h ; @true stmp-lbfd-h: $(LIBBFD_H_FILES) $(MKDOC) - $(AM_V_GEN)H_FILES="$(LIBBFD_H_FILES)" CHEW_FLAGS=-i ; $(REGEN_HEADER) > libbfd.h-new - $(AM_V_at)$(SHELL) $(srcdir)/../move-if-change libbfd.h-new $(srcdir)/libbfd.h + $(AM_V_GEN) tmp=`mktemp --tmpdir=. libbfd.XXXXXX.h`; \ + H_FILES="$(LIBBFD_H_FILES)" CHEW_FLAGS=-i ; $(REGEN_HEADER) > $$tmp; \ + $(SHELL) $(srcdir)/../move-if-change $$tmp $(srcdir)/libbfd.h $(AM_V_at)touch stmp-lbfd-h $(srcdir)/libcoff.h: @MAINT@ stmp-lcoff-h ; @true stmp-lcoff-h: $(LIBCOFF_H_FILES) $(MKDOC) - $(AM_V_GEN)H_FILES="$(LIBCOFF_H_FILES)" CHEW_FLAGS=-i ; $(REGEN_HEADER) > libcoff.h-new - $(AM_V_at)$(SHELL) $(srcdir)/../move-if-change libcoff.h-new $(srcdir)/libcoff.h + $(AM_V_GEN) tmp=`mktemp --tmpdir=. lobcoff.XXXXXX.h`; \ + H_FILES="$(LIBCOFF_H_FILES)" CHEW_FLAGS=-i ; $(REGEN_HEADER) > $$tmp; \ + $(SHELL) $(srcdir)/../move-if-change $$tmp $(srcdir)/libcoff.h $(AM_V_at)touch stmp-lcoff-h MOSTLYCLEANFILES += ofiles stamp-ofiles From patchwork Thu Jan 19 17:55:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Smeets X-Patchwork-Id: 63414 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0333E3855580 for ; Thu, 19 Jan 2023 17:56:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0333E3855580 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674150987; bh=bFN5b806o6leSDxBp28q+ko6BVDrCn/tDjxexXRMPvg=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=p9c87gqNh85czra5mFcatSkjbhhS7a29kI9ha87C3kRMOc8Kz0j4UdaAjj92mttJU TBSHUdaTVljpBuDzazdFiLMkcz0s5nTryGWi9hmH9JkP1K5d3lC82qGchEUF4suFxe Q7qheKlFmolbRb/OouHKOORfoVfJXk2+FmiZ04ac= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from lxh-sysa-011.node.capitar.com (lxh-sysa-011.node.capitar.com [176.31.125.55]) by sourceware.org (Postfix) with ESMTPS id F05E53858401 for ; Thu, 19 Jan 2023 17:55:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F05E53858401 Received: from PC-Vincent.vsmeets.nl (unknown [85.150.201.88]) by m7-mail-relay-p01.zt.capitar.com (Postfix) with ESMTP id 3F93E33832; Thu, 19 Jan 2023 18:55:22 +0100 (CET) Received: from vincent by PC-Vincent.vsmeets.nl with local (Exim 4.96) (envelope-from ) id 1pIZ8D-0006mI-1h; Thu, 19 Jan 2023 18:55:21 +0100 To: gdb-patches@sourceware.org Cc: Vincent Smeets Subject: [PATCH 2/7] binutils: build with mktemp Date: Thu, 19 Jan 2023 18:55:02 +0100 Message-Id: <20230119175507.25046-3-Vincent.VSmeets@GMail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> References: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> MIME-Version: 1.0 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=J7XUEzvS c=1 sm=1 tr=0 a=lXYvOTk0js8zacgGuor68g==:117 a=lXYvOTk0js8zacgGuor68g==:17 a=RvmDmJFTN0MA:10 a=x7bEGLp0ZPQA:10 a=0goVqbi9XAQA:10 a=3cmnif7ju-RCCfbFuGoA:9 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Vincent Smeets via Gdb-patches From: Vincent Smeets Reply-To: Vincent Smeets Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- binutils/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/binutils/Makefile.am b/binutils/Makefile.am index 4ea343b1..b1ce8d4b 100644 --- a/binutils/Makefile.am +++ b/binutils/Makefile.am @@ -182,8 +182,9 @@ LIBIBERTY = ../libiberty/libiberty.a POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES) po/POTFILES.in: @MAINT@ Makefile - for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \ - && mv tmp $(srcdir)/po/POTFILES.in + tmp=`mktemp --tmpdir=. POTFILES.XXXXXX.in`; \ + for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > $$tmp \ + && mv $$tmp $(srcdir)/po/POTFILES.in EXPECT = expect RUNTEST = runtest From patchwork Thu Jan 19 17:55:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Smeets X-Patchwork-Id: 63412 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EED8638543B2 for ; Thu, 19 Jan 2023 17:56:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EED8638543B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674150978; bh=6qfRXoMyeHF7BP0KseMzuH5eXYISA63FLMDLRgGSlbQ=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=ZB2FF91TCNqDxPrpI360X4XDO8QDP/Abf+sjnI70siHqYej6FnBI8MxLa+l4WMhdD HBDOteNhVZLqQCR1waA67YCRWdu8RBqAClb1edkjgTdWVuCejXLLkXBIzRPScCS0cn vpGxrnstx+86okAz/Kas4Mldk6qCTE8YgHopAQJk= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from lxh-sysa-011.node.capitar.com (lxh-sysa-011.node.capitar.com [176.31.125.55]) by sourceware.org (Postfix) with ESMTPS id B3A173858C27 for ; Thu, 19 Jan 2023 17:55:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B3A173858C27 Received: from PC-Vincent.vsmeets.nl (unknown [85.150.201.88]) by m7-mail-relay-p01.zt.capitar.com (Postfix) with ESMTP id 39F08337BD; Thu, 19 Jan 2023 18:55:22 +0100 (CET) Received: from vincent by PC-Vincent.vsmeets.nl with local (Exim 4.96) (envelope-from ) id 1pIZ8D-0006mL-1k; Thu, 19 Jan 2023 18:55:21 +0100 To: gdb-patches@sourceware.org Cc: Vincent Smeets Subject: [PATCH 3/7] gas: build with mktemp Date: Thu, 19 Jan 2023 18:55:03 +0100 Message-Id: <20230119175507.25046-4-Vincent.VSmeets@GMail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> References: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> MIME-Version: 1.0 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=aIiOVo1m c=1 sm=1 tr=0 a=lXYvOTk0js8zacgGuor68g==:117 a=lXYvOTk0js8zacgGuor68g==:17 a=RvmDmJFTN0MA:10 a=x7bEGLp0ZPQA:10 a=0goVqbi9XAQA:10 a=pUhwfbPfzLTePG5ejdwA:9 a=Uz9EnhuHEG25YKoRyM-d:22 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Vincent Smeets via Gdb-patches From: Vincent Smeets Reply-To: Vincent Smeets Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- gas/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gas/Makefile.am b/gas/Makefile.am index ba289658..32c69ca0 100644 --- a/gas/Makefile.am +++ b/gas/Makefile.am @@ -368,8 +368,9 @@ POTFILES = $(MULTI_CFILES) $(CONFIG_ATOF_CFILES) \ $(OBJ_FORMAT_CFILES) $(TARGET_CPU_HFILES) $(TARGET_CPU_CFILES) \ $(TARGET_EXTRA_FILES) $(HFILES) $(CFILES) po/POTFILES.in: @MAINT@ Makefile - for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \ - && mv tmp $(srcdir)/po/POTFILES.in + tmp=`mktemp --tmpdir=. POTFILES.XXXXXX.in`; \ + for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > $$tmp \ + && mv $$tmp $(srcdir)/po/POTFILES.in # Note: GASP is now deprecated and has been removed. It is still # available in the CVS archive or older binutils releases if it is needed. From patchwork Thu Jan 19 17:55:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Smeets X-Patchwork-Id: 63410 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 41F4B3854396 for ; Thu, 19 Jan 2023 17:55:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 41F4B3854396 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674150953; bh=wUSsVB40cBmmWLB4B5RBHpzo855E5XCwW3rtNX6YhWo=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=SVXJJsK5hhdtX2ZBpfIT/t1g0669DH92MeSnPpHYAZCb641nSW9No9BgDwGyK1NyK WjDWw4aDfhaNM55zHJmaoZj0dvkXls9PNFqKkryuelKH/phoUFnqqtcB+TTEVqL8l5 VV0PmLnyxEeZ2V0yEMHn0P8FHyfL71B3o1XsB8TA= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from lxh-sysa-011.node.capitar.com (lxh-sysa-011.node.capitar.com [176.31.125.55]) by sourceware.org (Postfix) with ESMTPS id B725A3858C2C for ; Thu, 19 Jan 2023 17:55:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B725A3858C2C Received: from PC-Vincent.vsmeets.nl (unknown [85.150.201.88]) by m7-mail-relay-p01.zt.capitar.com (Postfix) with ESMTP id 384C333905; Thu, 19 Jan 2023 18:55:22 +0100 (CET) Received: from vincent by PC-Vincent.vsmeets.nl with local (Exim 4.96) (envelope-from ) id 1pIZ8D-0006mP-1o; Thu, 19 Jan 2023 18:55:21 +0100 To: gdb-patches@sourceware.org Cc: Vincent Smeets Subject: [PATCH 4/7] gold: build with mktemp Date: Thu, 19 Jan 2023 18:55:04 +0100 Message-Id: <20230119175507.25046-5-Vincent.VSmeets@GMail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> References: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> MIME-Version: 1.0 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=aIiOVo1m c=1 sm=1 tr=0 a=lXYvOTk0js8zacgGuor68g==:117 a=lXYvOTk0js8zacgGuor68g==:17 a=RvmDmJFTN0MA:10 a=x7bEGLp0ZPQA:10 a=0goVqbi9XAQA:10 a=aOviSSjUt4Uq4XxcTuQA:9 a=Uz9EnhuHEG25YKoRyM-d:22 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Vincent Smeets via Gdb-patches From: Vincent Smeets Reply-To: Vincent Smeets Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- gold/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gold/Makefile.am b/gold/Makefile.am index 0999c5fc..ea0c1ede 100644 --- a/gold/Makefile.am +++ b/gold/Makefile.am @@ -247,8 +247,9 @@ install-exec-local: ld-new$(EXEEXT) POTFILES= $(CCFILES) $(HFILES) $(TARGETSOURCES) po/POTFILES.in: @MAINT@ Makefile - for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \ - && mv tmp $(srcdir)/po/POTFILES.in + tmp=`mktemp --tmpdir=. POTFILES.XXXXXX.in`; \ + for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > $$tmp \ + && mv $$tmp $(srcdir)/po/POTFILES.in # Bootstrap test support. We use ld-new to build ld1, then use ld1 to # build ld2. ld1 and ld2 should be identical. ld-new need not be From patchwork Thu Jan 19 17:55:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Smeets X-Patchwork-Id: 63411 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1EE8F385B520 for ; Thu, 19 Jan 2023 17:55:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EE8F385B520 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674150956; bh=ZNmz4XYxPPLRKSdKmYzrNcPvThlTRFmL2Of/Zm7aj7I=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=RSA19k/5jx53bM1a9VjzvABlnUfd5JoiOu9Zrk62kZdOC58VA48l/qhVGxtpziiVU solLG2NMrGy6EN03lDt3gFwLwlbcJoMvTLWsLQIQGuamhbjicGRomFa8C6/7D4MCio 6NrquYI67Tz+N9PX0TTEOCYvi5iPLhhECpeO8v88= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from lxh-sysa-011.node.capitar.com (lxh-sysa-011.node.capitar.com [176.31.125.55]) by sourceware.org (Postfix) with ESMTPS id B9AB53858C33 for ; Thu, 19 Jan 2023 17:55:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B9AB53858C33 Received: from PC-Vincent.vsmeets.nl (unknown [85.150.201.88]) by m7-mail-relay-p01.zt.capitar.com (Postfix) with ESMTP id 3C6E833906; Thu, 19 Jan 2023 18:55:22 +0100 (CET) Received: from vincent by PC-Vincent.vsmeets.nl with local (Exim 4.96) (envelope-from ) id 1pIZ8D-0006mT-1r; Thu, 19 Jan 2023 18:55:21 +0100 To: gdb-patches@sourceware.org Cc: Vincent Smeets Subject: [PATCH 5/7] gprof: build with mktemp Date: Thu, 19 Jan 2023 18:55:05 +0100 Message-Id: <20230119175507.25046-6-Vincent.VSmeets@GMail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> References: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> MIME-Version: 1.0 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=aIiOVo1m c=1 sm=1 tr=0 a=lXYvOTk0js8zacgGuor68g==:117 a=lXYvOTk0js8zacgGuor68g==:17 a=RvmDmJFTN0MA:10 a=x7bEGLp0ZPQA:10 a=0goVqbi9XAQA:10 a=jdu5a--z8oSt2VA5q6MA:9 a=Uz9EnhuHEG25YKoRyM-d:22 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Vincent Smeets via Gdb-patches From: Vincent Smeets Reply-To: Vincent Smeets Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- gprof/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gprof/Makefile.am b/gprof/Makefile.am index 790f8af5..11451d7e 100644 --- a/gprof/Makefile.am +++ b/gprof/Makefile.am @@ -71,8 +71,9 @@ CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh POTFILES = $(sources) $(noinst_HEADERS) po/POTFILES.in: @MAINT@ Makefile - for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \ - && mv tmp $(srcdir)/po/POTFILES.in + tmp=`mktemp --tmpdir=. POTFILES.XXXXXX.in`; \ + for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > $$tmp \ + && mv $$tmp $(srcdir)/po/POTFILES.in MANCONF = -Dman From patchwork Thu Jan 19 17:55:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Smeets X-Patchwork-Id: 63409 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0164F385703A for ; Thu, 19 Jan 2023 17:55:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0164F385703A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674150950; bh=tRosJ3fSUsS6ZlhH/IPbSCjzZIHYVCvelwiYgv09PJs=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=idoQ1ranokeSi/23Qr0QeccJx3n98GL6xcV9uH5cnNWsc1ybdkuEjlPv8nF36g2S0 mEj8p1rW7j2dJ6PvlbBRIgysI2PrmP4gDaa79LiqZRKHxvDW9JsSurgWFFMpZHnWXW NRuiHjiRSqKwFi1z9asyPWXyQlrWvADAyl06JQPU= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from lxh-sysa-011.node.capitar.com (lxh-sysa-011.node.capitar.com [176.31.125.55]) by sourceware.org (Postfix) with ESMTPS id B007D3858C00 for ; Thu, 19 Jan 2023 17:55:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B007D3858C00 Received: from PC-Vincent.vsmeets.nl (unknown [85.150.201.88]) by m7-mail-relay-p01.zt.capitar.com (Postfix) with ESMTP id 3B83633830; Thu, 19 Jan 2023 18:55:22 +0100 (CET) Received: from vincent by PC-Vincent.vsmeets.nl with local (Exim 4.96) (envelope-from ) id 1pIZ8D-0006mX-1u; Thu, 19 Jan 2023 18:55:21 +0100 To: gdb-patches@sourceware.org Cc: Vincent Smeets Subject: [PATCH 6/7] ld: build with mktemp Date: Thu, 19 Jan 2023 18:55:06 +0100 Message-Id: <20230119175507.25046-7-Vincent.VSmeets@GMail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> References: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> MIME-Version: 1.0 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=J7XUEzvS c=1 sm=1 tr=0 a=lXYvOTk0js8zacgGuor68g==:117 a=lXYvOTk0js8zacgGuor68g==:17 a=RvmDmJFTN0MA:10 a=x7bEGLp0ZPQA:10 a=0goVqbi9XAQA:10 a=_XjjePaAKmS1XCcG8D0A:9 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Vincent Smeets via Gdb-patches From: Vincent Smeets Reply-To: Vincent Smeets Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- ld/Makefile.am | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/ld/Makefile.am b/ld/Makefile.am index e74a7aba..8c71a653 100644 --- a/ld/Makefile.am +++ b/ld/Makefile.am @@ -543,12 +543,14 @@ SRC_POTFILES = $(CFILES) $(HFILES) BLD_POTFILES = $(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES) po/SRC-POTFILES.in: @MAINT@ Makefile - for f in $(SRC_POTFILES); do echo $$f; done | LC_ALL=C sort > $@-tmp \ - && mv $@-tmp $(srcdir)/po/SRC-POTFILES.in + tmp=`mktemp --tmpdir=. SRC-POTFILES.XXXXXX.in`; \ + for f in $(SRC_POTFILES); do echo $$f; done | LC_ALL=C sort > $$tmp \ + && mv $$tmp $(srcdir)/po/SRC-POTFILES.in po/BLD-POTFILES.in: @MAINT@ Makefile $(BLD_POTFILES) - for f in $(BLD_POTFILES); do echo $$f; done | LC_ALL=C sort > $@-tmp \ - && mv $@-tmp $(srcdir)/po/BLD-POTFILES.in + tmp=`mktemp --tmpdir=. BLD-POTFILES.XXXXXX.in`; \ + for f in $(BLD_POTFILES); do echo $$f; done | LC_ALL=C sort > $$tmp \ + && mv $$tmp $(srcdir)/po/BLD-POTFILES.in ldmain.@OBJEXT@: ldmain.c config.status if am__fastdepCC @@ -600,6 +602,7 @@ endif endif ldemul-list.h: Makefile + tmp=`mktemp --tmpdir=. ldemul-list.XXXXXX.h`; \ (echo "/* This file is automatically generated. DO NOT EDIT! */";\ for f in `echo " " ${EMULATION_OFILES} "" \ | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \ @@ -611,8 +614,8 @@ ldemul-list.h: Makefile | sed -e 's/ e/ ld/g' -e 's/ ld/ /g' -e 's/[.]o//g'`; do \ echo " &ld_$${f}_emulation, \\"; \ done;\ - echo " 0") >ldemul-tmp.h - mv ldemul-tmp.h ldemul-list.h + echo " 0") >$$tmp; \ + mv $$tmp ldemul-list.h stringify.sed: ${srcdir}/emultempl/$(STRINGIFY) $(AM_V_GEN)cp ${srcdir}/emultempl/$(STRINGIFY) stringify.sed From patchwork Thu Jan 19 17:55:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Smeets X-Patchwork-Id: 63415 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 76E993854801 for ; Thu, 19 Jan 2023 17:56:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 76E993854801 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674151014; bh=Mvhx5+yuYgmiVqx26ms22drt4B7PlKqJ2NaRfGcFXyE=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=hmezCDxqbHaSzPhegQtsSPT+RQvMAliuLHiYIW7NaOXS0xFfrUy5ex+wSqnjzxwL4 G3nVEKTKlPcgErcLO0q24eHFUyv5RDJvKgrvekEbV8MdGKpBzzwZ6PEI2na0sdxMWi YWtk+pf2Yo9PR/KgLZ4DisCnpjHKgf0b/NHaIVSg= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from lxh-sysa-011.node.capitar.com (lxh-sysa-011.node.capitar.com [176.31.125.55]) by sourceware.org (Postfix) with ESMTPS id ED55D3858C39 for ; Thu, 19 Jan 2023 17:55:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ED55D3858C39 Received: from PC-Vincent.vsmeets.nl (unknown [85.150.201.88]) by m7-mail-relay-p01.zt.capitar.com (Postfix) with ESMTP id 4085C337BE; Thu, 19 Jan 2023 18:55:22 +0100 (CET) Received: from vincent by PC-Vincent.vsmeets.nl with local (Exim 4.96) (envelope-from ) id 1pIZ8D-0006mb-1y; Thu, 19 Jan 2023 18:55:21 +0100 To: gdb-patches@sourceware.org Cc: Vincent Smeets Subject: [PATCH 7/7] opcodes: build with mktemp Date: Thu, 19 Jan 2023 18:55:07 +0100 Message-Id: <20230119175507.25046-8-Vincent.VSmeets@GMail.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> References: <20230119175507.25046-1-Vincent.VSmeets@GMail.com> MIME-Version: 1.0 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=aIiOVo1m c=1 sm=1 tr=0 a=lXYvOTk0js8zacgGuor68g==:117 a=lXYvOTk0js8zacgGuor68g==:17 a=RvmDmJFTN0MA:10 a=x7bEGLp0ZPQA:10 a=0goVqbi9XAQA:10 a=DRML31_cg72u56ZFPxUA:9 a=Uz9EnhuHEG25YKoRyM-d:22 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Vincent Smeets via Gdb-patches From: Vincent Smeets Reply-To: Vincent Smeets Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" --- opcodes/Makefile.am | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/opcodes/Makefile.am b/opcodes/Makefile.am index 7aa4e53f..628e4ccd 100644 --- a/opcodes/Makefile.am +++ b/opcodes/Makefile.am @@ -333,9 +333,10 @@ libopcodes_a_SOURCES = stamp-lib: libopcodes.la libtooldir=`$(LIBTOOL) --config | sed -n -e 's/^objdir=//p'`; \ if [ -f $$libtooldir/libopcodes.a ]; then \ - cp $$libtooldir/libopcodes.a libopcodes.tmp; \ - $(RANLIB) libopcodes.tmp; \ - $(SHELL) $(srcdir)/../move-if-change libopcodes.tmp libopcodes.a; \ + tmp=`mktemp --tmpdir=. libopcodes.XXXXXX.a`; \ + cp $$libtooldir/libopcodes.a $$tmp; \ + $(RANLIB) $$tmp; \ + $(SHELL) $(srcdir)/../move-if-change $$tmp libopcodes.a; \ else true; fi touch stamp-lib @@ -343,8 +344,9 @@ libopcodes.a: stamp-lib ; @true POTFILES = $(HFILES) $(CFILES) po/POTFILES.in: @MAINT@ Makefile - for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \ - && mv tmp $(srcdir)/po/POTFILES.in + tmp=`mktemp --tmpdir=. POTFILES.XXXXXX.in`; \ + for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > $$tmp \ + && mv $$tmp $(srcdir)/po/POTFILES.in CLEANFILES = \ stamp-epiphany stamp-fr30 stamp-frv stamp-ip2k stamp-iq2000 stamp-lm32 \