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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 290871382C5 for ; Mon, 7 May 2018 16:14:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 369D2E0849; Mon, 7 May 2018 16:14:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 13787E0849 for ; Mon, 7 May 2018 16:14:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CBA23335C60 for ; Mon, 7 May 2018 16:14:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9E0BC32 for ; Mon, 7 May 2018 16:14:29 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1525709665.7feba33143b3b11e91448c9f331ecefd4cd05aa0.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/silo/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-boot/silo/silo-1.4.14_p20120819-r1.ebuild sys-boot/silo/silo-1.4.14_p20170829.ebuild X-VCS-Directories: sys-boot/silo/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 7feba33143b3b11e91448c9f331ecefd4cd05aa0 X-VCS-Branch: master Date: Mon, 7 May 2018 16:14:29 +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-Archives-Salt: fc6186c6-3f55-498a-a65a-b195db5bf951 X-Archives-Hash: 27f9eaf44952b2b2a8a216f1253cf85f commit: 7feba33143b3b11e91448c9f331ecefd4cd05aa0 Author: Sergei Trofimovich gentoo org> AuthorDate: Mon May 7 16:14:01 2018 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Mon May 7 16:14:25 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7feba331 sys-boot/silo: fix a build against PIC profiles Build failed on default/linux/sparc/17.0 profiles as ./util -a silotftp.map silotftp.aout silotftp2.aout silotftp.b silotftp.b2 Distance between two changes larger than 63K 3 83881 0 I suspect th breakage happens due code inflation (caused by -fPIC) on new profiles. iamben reports that -fno-PIC makes silo to build and boot a sparc machine \o/ Fixed-by: iamben Tested-by: iamben Package-Manager: Portage-2.3.36, Repoman-2.3.9 sys-boot/silo/silo-1.4.14_p20120819-r1.ebuild | 4 +++- sys-boot/silo/silo-1.4.14_p20170829.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys-boot/silo/silo-1.4.14_p20120819-r1.ebuild b/sys-boot/silo/silo-1.4.14_p20120819-r1.ebuild index 2431901f440..946707a2947 100644 --- a/sys-boot/silo/silo-1.4.14_p20120819-r1.ebuild +++ b/sys-boot/silo/silo-1.4.14_p20120819-r1.ebuild @@ -40,7 +40,9 @@ src_prepare() { sed -i -e "s/1.4.14/1.4.14_git20120819_p1/g" Rules.make || die # Fix build failure - sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE -mcpu=v9/g" Rules.make || die + # -fno-PIC is needed to shrink silo size back to manageable on + # profiles where gcc has -fPIC default (via --enable-default-pie). + sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE -mcpu=v9 -fno-PIC/g" Rules.make || die } src_compile() { diff --git a/sys-boot/silo/silo-1.4.14_p20170829.ebuild b/sys-boot/silo/silo-1.4.14_p20170829.ebuild index dde2b3c9a73..e62265f8848 100644 --- a/sys-boot/silo/silo-1.4.14_p20170829.ebuild +++ b/sys-boot/silo/silo-1.4.14_p20170829.ebuild @@ -29,7 +29,9 @@ src_prepare() { sed -i -e "s/1.4.14/1.4.14_git20170829/g" Rules.make || die # Fix build failure - sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE -mcpu=v9/g" Rules.make || die + # -fno-PIC is needed to shrink silo size back to manageable on + # profiles where gcc has -fPIC default (via --enable-default-pie). + sed -i -e "s/-fno-strict-aliasing/-fno-strict-aliasing -U_FORTIFY_SOURCE -mcpu=v9 -fno-PIC/g" Rules.make || die # Don't strip ieee32.b during compile sed -i -e '/^ $(STRIP) ieee32.b/d' first/Makefile || die