commit:     7b0f5202b40b4eae53ead41d333531fd30033e9c
Author:     Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 24 20:11:04 2016 +0000
Commit:     Chí-Thanh Christopher Nguyễn <chithanh <AT> gentoo <DOT> org>
CommitDate: Sun Apr 24 20:11:04 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b0f5202

sys-boot/syslinux: bump to latest prerelase, add workaround for ld.gold issues.

Bug: https://bugs.gentoo.org/show_bug.cgi?id=563364

Package-Manager: portage-2.2.26

 sys-boot/syslinux/Manifest                                  |  1 +
 sys-boot/syslinux/syslinux-6.03.ebuild                      | 13 ++++++++++++-
 .../{syslinux-6.03.ebuild => syslinux-6.04_pre1.ebuild}     | 13 ++++++++++++-
 3 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/sys-boot/syslinux/Manifest b/sys-boot/syslinux/Manifest
index 23780b3..ab76b5e 100644
--- a/sys-boot/syslinux/Manifest
+++ b/sys-boot/syslinux/Manifest
@@ -3,3 +3,4 @@ DIST syslinux-4.07.tar.bz2 5761877 SHA256 
1240a4e4219b518bdaef78931b6e901befeff3
 DIST syslinux-5.10.tar.xz 5315660 SHA256 
4b52d7647d5584c69764c06a836e0d524e5246bf2e94f68cf86342c415508422 SHA512 
56422e14b4aa53ca1a5811da0582dbbb349aa52b9e78868bbedc24c67ef2420c4d0ac63fd68c7f0adc2c22606196276265d503b5b6f9d3d796d9ce42845bbdb5
 WHIRLPOOL 
77d73bdc1cd75a3ad9f58de8a9fa31a1c4247d579ac8c849e8d0dacc7cd1b9e02b2cf0737f1be1c2bc2e974f4ded3955857588a8a07d6cf35997c57f47d9b583
 DIST syslinux-6.02.tar.xz 6471080 SHA256 
afa31b7cbf72e1c0c1752a0636ba724ce01c0e374366e46e61db6862b4685478 SHA512 
919d165e9cba2b964cec8b015f0a4281a5f90e908f247441d6edefe289170e697b933554d12fa90e698b6d2e8b5b40fdb3b7a95d746a41c580e3a44f8859818f
 WHIRLPOOL 
98d7552f8c66be7689166e7d7a7b5499af0a974711e7ca1f01e1538250c533ceed6d80cec0ac189ff66ea243e22ff1add62c2e3392945d4b7e1586f38c1b6a1d
 DIST syslinux-6.03.tar.xz 6855224 SHA256 
26d3986d2bea109d5dc0e4f8c4822a459276cf021125e8c9f23c3cca5d8c850e SHA512 
dd2b2916962b9e93bc1e714182e3ca2a727a229b8afabe913050bcfdd43ee2af51ee3acf79121d8c20caf434583efaa7f3196871e0e07c04d82191323a50fe31
 WHIRLPOOL 
c3abf6dd84610f2265ce94ce0991e200e3f7fcf2cf2926d46c389c7235544e959ee52aef4a510258b861da2233fd38696d3164a7d0e75f0060a18cc13f23b546
+DIST syslinux-6.04-pre1.tar.xz 5283272 SHA256 
3f6d50a57f3ed47d8234fd0ab4492634eb7c9aaf7dd902f33d3ac33564fd631d SHA512 
7927dd39be8e2dcf4138a6fea33def67d19d938379d694f15b48fdd2f5924c028b7a9e7bd71d0c7c6630c203e9e2a54296628e530632ad5e6f55b1ebefe8fc98
 WHIRLPOOL 
d8d3765b974122a1265ca95470379c577108a6aba755c19c1f0373f3986d117c1cfaf1f3f2a9477d2558e66f82db3de980ab12d66c721396154dea7ee1edc28a

diff --git a/sys-boot/syslinux/syslinux-6.03.ebuild 
b/sys-boot/syslinux/syslinux-6.03.ebuild
index 25ec57b..fe34dc6 100644
--- a/sys-boot/syslinux/syslinux-6.03.ebuild
+++ b/sys-boot/syslinux/syslinux-6.03.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -72,6 +72,17 @@ src_prepare() {
                x86)    loaderarch="efi32" ;;
                *)      ewarn "Unsupported architecture, building installers 
only." ;;
        esac
+
+       # building with ld.gold causes problems, bug #563364
+       if tc-ld-is-gold; then
+               ewarn "Building syslinux with the gold linker may cause 
problems, see bug #563364"
+               if [[ -z "${I_KNOW_WHAT_I_AM_DOING}" ]]; then
+                       tc-ld-disable-gold
+                       ewarn "set I_KNOW_WHAT_I_AM_DOING=1 to override this."
+               else
+                       ewarn "Continuing anyway as requested."
+               fi
+       fi
 }
 
 src_compile() {

diff --git a/sys-boot/syslinux/syslinux-6.03.ebuild 
b/sys-boot/syslinux/syslinux-6.04_pre1.ebuild
similarity index 88%
copy from sys-boot/syslinux/syslinux-6.03.ebuild
copy to sys-boot/syslinux/syslinux-6.04_pre1.ebuild
index 25ec57b..fe34dc6 100644
--- a/sys-boot/syslinux/syslinux-6.03.ebuild
+++ b/sys-boot/syslinux/syslinux-6.04_pre1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -72,6 +72,17 @@ src_prepare() {
                x86)    loaderarch="efi32" ;;
                *)      ewarn "Unsupported architecture, building installers 
only." ;;
        esac
+
+       # building with ld.gold causes problems, bug #563364
+       if tc-ld-is-gold; then
+               ewarn "Building syslinux with the gold linker may cause 
problems, see bug #563364"
+               if [[ -z "${I_KNOW_WHAT_I_AM_DOING}" ]]; then
+                       tc-ld-disable-gold
+                       ewarn "set I_KNOW_WHAT_I_AM_DOING=1 to override this."
+               else
+                       ewarn "Continuing anyway as requested."
+               fi
+       fi
 }
 
 src_compile() {

Reply via email to