From patchwork Sun Jul 19 09:22:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 3266 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) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4B8fXn5bkvz3xSn for ; Sun, 19 Jul 2020 09:23:05 +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 4B8fXm0r1Rz1tq; Sun, 19 Jul 2020 09:23:04 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4B8fXl5WZ3z2yBT; Sun, 19 Jul 2020 09:23:03 +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) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4B8fXk3Cvvz2yBT for ; Sun, 19 Jul 2020 09:23:02 +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 4B8fXj1GfVz1s0; Sun, 19 Jul 2020 09:23:01 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1595150581; 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=AAQSkyajvSX/d95hnR1/NN6onVkQYh4EHePpKWpv25Y=; b=ILoQt4xcZ9n8uuPGHh71L+tSHupfji6TiIpPExNQ0/cBZ1jB7x9NWUoKzv+VWh+chMjeog 8VjfPXein6URy5Ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1595150581; 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=AAQSkyajvSX/d95hnR1/NN6onVkQYh4EHePpKWpv25Y=; b=WXxwsyLBbhafWb6yYKP5fKeKKRkO9pr/ww2R0jmncrUvbHgaD5SWBKHccFsJZsSZxW6fH5 MsmkGDQbeYIOY/gOc5kU88Rq8CXZfqhy2nfze2lOSSuKiK+G8JUX/Q5IHZDKs9k3b4nPRB ojwH4mfPHqCKmgQWJV4gRBTVxrrSe6Zu6inViUV2zFZc7CCGqx0tPq/zrGLPpxduaI/qtr PY56CE2+fbZmWl28962iI3d4JvCXJV9tdvT0Yn35hIGpu3BU7uk6TLZX0ax21erbyH+tf2 uRkd4ggEGHEerc4JwE87Hd70Op+L9BabIAx3yeB3wMTWO+71uhp+Jnx+t8Sv1Q== From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] libloc: Apply patch to compile the perl module without stack protector. Date: Sun, 19 Jul 2020 11:22:52 +0200 Message-Id: <20200719092252.4315-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.mailfrom=stefan.schantl@ipfire.org 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: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Stefan Schantl --- lfs/libloc | 3 +++ .../libloc-0.9.3-perl-no-stack-protector.patch | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/patches/libloc-0.9.3-perl-no-stack-protector.patch diff --git a/lfs/libloc b/lfs/libloc index 43af26b45..5cf3e0819 100644 --- a/lfs/libloc +++ b/lfs/libloc @@ -78,6 +78,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xvf $(DIR_DL)/$(DL_FILE) + # Add patch for i585 to disable the stack protector. + cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/libloc-0.9.3-perl-no-stack-protector.patch + cd $(DIR_APP) && ./autogen.sh cd $(DIR_APP) && ./configure \ --prefix=/usr \ diff --git a/src/patches/libloc-0.9.3-perl-no-stack-protector.patch b/src/patches/libloc-0.9.3-perl-no-stack-protector.patch new file mode 100644 index 000000000..b615ed902 --- /dev/null +++ b/src/patches/libloc-0.9.3-perl-no-stack-protector.patch @@ -0,0 +1,12 @@ +diff --git a/src/perl/Makefile.PL b/src/perl/Makefile.PL +index 38d5390..62016ca 100644 +--- a/src/perl/Makefile.PL ++++ b/src/perl/Makefile.PL +@@ -11,6 +11,7 @@ WriteMakefile( + LIBS => ['-lloc'], + DEFINE => '', # e.g., '-DHAVE_SOMETHING' + INC => '-I. -I../../', ++ CCFLAGS => '-fno-stack-protector', + # Un-comment this if you add C files to link with later: + # OBJECT => '$(O_FILES)', # link all the C files too + );