From patchwork Mon Aug 28 09:39:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Lapshin X-Patchwork-Id: 74821 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 0BC95385828D for ; Mon, 28 Aug 2023 09:39:30 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2134.outbound.protection.outlook.com [40.107.117.134]) by sourceware.org (Postfix) with ESMTPS id 5DECA3858D28 for ; Mon, 28 Aug 2023 09:39:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5DECA3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=espressif.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=espressif.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bi4+hiFu6bTDkKnNrCw0jX1+E0DLGpR2AfECbTcCaDBbxVh2IZbWkDpVof9Q0p+pdDd5L614Jr9OOCSmBjpYFuQYylcfISSmQiUjKncXXOtCh3G4KuDL7x1xDrzm2l70E7T9OhAJ6QV0XDg4bxiLIHUT596RS+ZZwB0q3jjtsXJR7OhxMlVLo9EMlo79PsqjAG6Oh5h3XuH24k/zL08a1G3ldH0naUyg/PJpMb5s/nRejoCnx2uXw0v4KE8cOsfmNBDlEbLnkPLkVCxMIMQyGxXF8jOyAZ8oipnLdmGdbkewdvbN8VbdvGW943JCt3Qq5obwqkdLDoY/16Az4RvLzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=daeCzJnpxPKSrBl0pe+Df+IW4KG9SH4YEfiTo49q/6M=; b=Vi7iLHzfZYeyld8SCiRlzalkw2FyKIIOU95dhF8HSZ1CFNOZ0mmVvt2WRBTFFwIUpABO27DioZ28iU1h78hZgQYZeuT0faSoEmO/0clGy/YN6AyATMLgSkd63ixnYsd6gtrfYOK/hbesS1G1Tp5ajGLFrATYVT7l89ymebfscqcBjqOJAG8q5abW9OX0eR98pbQh7ozPoAsRBws3uuOHF9S13DMd/BHl1ikBGHCe6GFzdrnutFT2+NTdxkNTufN8xodl+1ABORwfFCP6GowZPukvHnDikscvCslXd5/zika1fe744eAc4LWsRmwGGyuiGoQCyuz5IAzDSZPXJMwwdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=espressif.com; dmarc=pass action=none header.from=espressif.com; dkim=pass header.d=espressif.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=espressifsystems.onmicrosoft.com; s=selector1-espressifsystems-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=daeCzJnpxPKSrBl0pe+Df+IW4KG9SH4YEfiTo49q/6M=; b=ahrfPV+Gt9KjAaCOk+NV7Rzu1WHCLJPJiwN9JrMvbBJ21Ygf3oGXe4gCwrl0Vh4jaH5VVkBFfCJASYnZqwLd6mC3zer7cS1NeNcdg3EaqhG8yBDX0bt4Mi9+b/3qa3ok2eLYspX4a8ddkneH1ynrRjwKnZx6LGdTcJdzUIQJszY= Received: from TYZPR04MB5736.apcprd04.prod.outlook.com (2603:1096:400:1fa::7) by SG2PR04MB4059.apcprd04.prod.outlook.com (2603:1096:0:12::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.34; Mon, 28 Aug 2023 09:39:13 +0000 Received: from TYZPR04MB5736.apcprd04.prod.outlook.com ([fe80::cb3d:7677:ae5b:c6a9]) by TYZPR04MB5736.apcprd04.prod.outlook.com ([fe80::cb3d:7677:ae5b:c6a9%5]) with mapi id 15.20.6699.034; Mon, 28 Aug 2023 09:39:12 +0000 From: Alexey Lapshin To: "newlib@sourceware.org" Subject: [PATCH v2] newlib: fix 'sed' for sys headers path prefix Thread-Topic: [PATCH v2] newlib: fix 'sed' for sys headers path prefix Thread-Index: AQHZ2ZOAR+DiT7CiWkaV7UXnpeHFbQ== Date: Mon, 28 Aug 2023 09:39:12 +0000 Message-ID: <03452dddbe84d851f0d6ef396a80d5825520c57c.camel@espressif.com> References: <42673b6784fe7405f28e02275f20b2c1b4e72334.camel@espressif.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=espressif.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYZPR04MB5736:EE_|SG2PR04MB4059:EE_ x-ms-office365-filtering-correlation-id: 7616dcf7-742b-4a61-e301-08dba7aaa33c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vo9NdsUQB97hTaNu5+pOliYjUxTvh87Vc7DSHP4tqWYw/iHe85If9sxuV2twpazF680mSmNLL7KvokEj9Ag3Gz3e3cAmwebrN5oRNj3xnxmTnE2FBWmewSX2eF8220u9A48zWl4X2novHU02F9VW7r5BInTp7wlGqbuQF6pwRC4KghU1LqsUv7lfoZ+zaZ3d45ymwd36GwUmuOTX9U5423EwhtaZ6VhuI30xr5Xz5YPlqYjkpvAGXyeTTpDtheSIjGB2kVma1VXNVHo8Ne/hnWST7Hgb1990HcOKP34KYehhnsRjNQn/Tkfs6vK1S39hN3gB2DmyIjr8kXLtinmT/2kIncZFgkIbr1d8YsFWg61tVo4A9LDZSYvF473XgBQxP05tgbthR7ITuXsnMmRnZ8lgKs7T6UVmI0yvtz9zCl0+VRlea7apxWV5syXSBnd/zzVmU6YrfgttLnt0JZgJDfQIGiAW1h4YkB6L4UmfPWDPjNJhu8TtBU8rA45pEZ+JsXxt8SNwqDRNg8ZeAxwxxXLTiPZAv/+g1bsjdEXYdgQanY8DUdXH8mvYuXjRTsE3cC8Fnx4n3i6VdqprWSaBxWQ/ZL7WdtTLJ3ujOxsKSWKdhVGaMwAvZEIGAJXMtvCN x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR04MB5736.apcprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(346002)(366004)(396003)(39850400004)(186009)(1800799009)(451199024)(41300700001)(122000001)(38100700002)(38070700005)(86362001)(478600001)(71200400001)(83380400001)(2616005)(26005)(6512007)(6486002)(6506007)(76116006)(64756008)(36756003)(316002)(66446008)(91956017)(6916009)(2906002)(66556008)(66946007)(66476007)(5660300002)(8676002)(8936002)(4326008)(44832011); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?8V/VDIoSwD2/hnHRG8h2Rrjzy+T+?= =?utf-8?q?rB+AzFj6+hdLouFfUQ/6CHBq3Ihdzr9b4+l0Df+/i27kzI/zLJn80AIV+koPo96Ch?= =?utf-8?q?+GnbJIsWaEKK7Zvu4LUHaS09VJuNxThi/HkZYV9RHm2F+7C4q0YkY8G1kqlqcOreC?= =?utf-8?q?x5SZwEgC5sSt4c75H7CcfobuM+cz5q4NQPZFP4KUm5ZlCxyDod3xjpVjOzmA65KEU?= =?utf-8?q?wn0xTEcdmpB5gM22Dl4ONTuL78ewJcoWt3PbpRdRu+68LTFHiLkzvn0u6PTwnOFeW?= =?utf-8?q?mK5mMgepIe3iGaasnsl35wHPzuMWa2zkspyrksjtROVPmkEzx6WBrJPcZNOtNwd6d?= =?utf-8?q?Vymgv729170ybTQ44sYEM6LgV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Bgit4OZWiAh+NOmaxKhgh30ISovev9+?= =?utf-8?q?pHgr+cabG/8ylPOkb6QyWrw1UySk80G69e3rehyclJG2oitM/0iYuBDoN/uPA/UzJ?= =?utf-8?q?zjyv/uRpnSqWtu8MiGg8HUDhNl2GxiwMPo6llmsjaZo8aopdBA9jikQh9btm4S2VL?= =?utf-8?q?yBacjTEXAyB0UuNrs0TTTO1KUyfFSQCZHoXsT6li3OxHhn8sYduO3lcRYlRmoD4yk?= =?utf-8?q?0qA0/jg5wkQ11+f6QC6PVeQ/WjVOq/F+ZWboQ1m6hsLChZUp3NFLWmvGMpB6QsP3V?= =?utf-8?q?pJNWU3wuxJi2rl3HkPYT8yHk/ZGhtPtheaksuCsaNj7A37LWDvGmat8=3D?= Content-ID: <01E94BAD0D0A27428881F5421DBF3479@apcprd04.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: espressif.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYZPR04MB5736.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7616dcf7-742b-4a61-e301-08dba7aaa33c X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Aug 2023 09:39:12.7974 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5faf27fd-3557-4294-9545-8ea74a409f39 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YK8BNLT5H9GM7goN9SAdt0CkxH32bqEbF8Zqr7KSwpPSTJEqE1rJV48xBp/kpSTIeUo2PP6DvXpGGZb6euLcwVDTPyWvXzbyv9gz3pGB1vM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR04MB4059 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: newlib-bounces+patchwork=sourceware.org@sourceware.org Sender: "Newlib" Precisely remove the prefix from the filepath. --- newlib/Makefile.am | 4 ++-- newlib/Makefile.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) -- 2.34.1 diff --git a/newlib/Makefile.am b/newlib/Makefile.am index 126cf24c1..e29607ccd 100644 --- a/newlib/Makefile.am +++ b/newlib/Makefile.am @@ -240,7 +240,7 @@ stmp-targ-include: config.status $(AM_V_at)s=machine/$(machine_dir)/include d= $(TARG_INCLUDE_CP_DIR) $(AM_V_at)s=sys/$(sys_dir)/include d= $(TARG_INCLUDE_CP_DIR) $(AM_V_at)for i in $(call rwildcard,$(srcdir)/libc/sys/$(sys_dir)/include/,*.h); do \ - f=`echo $$i | sed s:$(srcdir)/libc/sys/$(sys_dir)/include/::`; \ + f=`echo $$i | sed s:^$(srcdir)/libc/sys/$(sys_dir)/include/::`; \ $(MKDIR_P) targ-include/`dirname $$f`; \ cp $$i targ-include/$$f; \ done @@ -334,7 +334,7 @@ install-data-local: install-toollibLIBRARIES install-multi $(INSTALL_DATA_LOCAL) else true; fi ; \ done ; \ for i in $(call rwildcard,$(srcdir)/libc/sys/$(sys_dir)/include/,*.h); do \ - f=`echo $$i | sed s:$(srcdir)/libc/sys/$(sys_dir)/include/::`; \ + f=`echo $$i | sed s:^$(srcdir)/libc/sys/$(sys_dir)/include/::`; \ $(MKDIR_P) $(DESTDIR)$(tooldir)/`dirname $$f`; \ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/`dirname $$f`; \ done ; \ diff --git a/newlib/Makefile.in b/newlib/Makefile.in index 6c7a7aeea..c3052acb9 100644 --- a/newlib/Makefile.in +++ b/newlib/Makefile.in @@ -50411,7 +50411,7 @@ stmp-targ-include: config.status $(AM_V_at)s=machine/$(machine_dir)/include d= $(TARG_INCLUDE_CP_DIR) $(AM_V_at)s=sys/$(sys_dir)/include d= $(TARG_INCLUDE_CP_DIR) $(AM_V_at)for i in $(call rwildcard,$(srcdir)/libc/sys/$(sys_dir)/include/,*.h); do \ - f=`echo $$i | sed s:$(srcdir)/libc/sys/$(sys_dir)/include/::`; \ + f=`echo $$i | sed s:^$(srcdir)/libc/sys/$(sys_dir)/include/::`; \ $(MKDIR_P) targ-include/`dirname $$f`; \ cp $$i targ-include/$$f; \ done @@ -50500,7 +50500,7 @@ install-data-local: install-toollibLIBRARIES install-multi $(INSTALL_DATA_LOCAL) else true; fi ; \ done ; \ for i in $(call rwildcard,$(srcdir)/libc/sys/$(sys_dir)/include/,*.h); do \ - f=`echo $$i | sed s:$(srcdir)/libc/sys/$(sys_dir)/include/::`; \ + f=`echo $$i | sed s:^$(srcdir)/libc/sys/$(sys_dir)/include/::`; \ $(MKDIR_P) $(DESTDIR)$(tooldir)/`dirname $$f`; \ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/`dirname $$f`; \ done ; \