From patchwork Tue Apr 14 15:01:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 2965 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 491pb96QYtz3yBy for ; Tue, 14 Apr 2020 15:01:09 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 491pb84XnTz2RV; Tue, 14 Apr 2020 15:01:08 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 491pb81wVvz2xmB; Tue, 14 Apr 2020 15:01:08 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 491pb64Q1bz2xFP for ; Tue, 14 Apr 2020 15:01:06 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 491pb55MRzzfk; Tue, 14 Apr 2020 15:01:05 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1586876465; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=iMOMOp8bu7Js+b3B2HtPr7krvVlBxyqwqJ73R11bzqo=; b=wLYwIbVT+G/lqLeP388/OVEsZIN9ejhuQqqGKzSpUKPKYYSdi6MX7iYMg56gasJmQwqewR gEH0BBYw/9hOR2Ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1586876465; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=iMOMOp8bu7Js+b3B2HtPr7krvVlBxyqwqJ73R11bzqo=; b=fRIQY9N0IqY1wJ6EYB3ZK2pJgfu6as1O+3808a/HX3LJlMPg4LdNadKe7EpKUuKd/eMgQb 7/+W7ioVRNbm6/rEinpd5xQY0Y7rRp3funwXN5YBe9o7yQhD549ijl7/+MADFMdru3CSeF 2Nrrawkcsk2bzVOIoSK0V34zE+X8tDxhJsR0nuyvQaLN9EFEMMQJ81PVKW4dCJjwqqPOln Kh9cvvahPIaHSQ50SaBLENUXQahksO2mGxCwTYysIqebgJOez/Ep4dGmV4+nB94Hun1NT2 J0aw6USmcUQv2BGRbkOwvgId2IkxR425TpFZE7mgKuUKhQubXqcDjC74NQszsA== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] toolchain: Do not attempt to strip anything in /dev, /proc, /sys and /tmp Date: Tue, 14 Apr 2020 15:01:00 +0000 Message-Id: <20200414150101.27682-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer --- lfs/strip | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lfs/strip b/lfs/strip index 08aaee7c4..3d0ede8bd 100644 --- a/lfs/strip +++ b/lfs/strip @@ -59,6 +59,14 @@ $(TARGET) : # Don't strip VDR binaries, because they use a weird plugin system # which does not work when unneeded symbols get stripped from # /usr/sbin/vdr. - STRIP=$(STRIP) $(SHELL) $(DIR_SRC)/src/stripper $(ROOT) \ - --exclude=/usr/src --exclude=$(TOOLS_DIR) \ - --exclude=/usr/sbin/vdr --exclude=/usr/lib/vdr + STRIP=$(STRIP) $(SHELL) $(DIR_SRC)/src/stripper \ + $(ROOT) \ + --exclude=$(TOOLS_DIR) \ + --exclude=/dev \ + --exclude=/proc \ + --exclude=/sys \ + --exclude=/tmp \ + --exclude=/usr/src \ + --exclude=/usr/lib/vdr \ + --exclude=/usr/sbin/vdr \ + --exclude=/var/tmp