adding of tc-getLD, prepared by Ian Delaney aka idella4
authorAlexey Shvetsov <alexxy@gentoo.org>
Mon, 7 Nov 2011 17:34:55 +0000 (17:34 +0000)
committerAlexey Shvetsov <alexxy@gentoo.org>
Mon, 7 Nov 2011 17:34:55 +0000 (17:34 +0000)
Package-Manager: portage-2.2.0_alpha72/cvs/Linux x86_64

app-emulation/xen/ChangeLog
app-emulation/xen/xen-4.1.1-r2.ebuild
app-emulation/xen/xen-4.1.2.ebuild

index 55dd41e978b8549e026c35958408efcbe1f77692..4977f2f6319b2a2504c4a6dd3cf39c16b7b39624 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-emulation/xen
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.91 2011/11/01 10:14:55 chainsaw Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/ChangeLog,v 1.92 2011/11/07 17:34:55 alexxy Exp $
+
+  07 Nov 2011; Alexey Shvetsov <alexxy@gentoo.org> xen-4.1.1-r2.ebuild,
+  xen-4.1.2.ebuild:
+  adding of tc-getLD, prepared by Ian Delaney aka idella4
 
   01 Nov 2011; Tony Vroon <chainsaw@gentoo.org> xen-4.1.1-r2.ebuild:
   Marked stable on AMD64 based on arch testing by Elijah "Armageddon" El
index 3fbd39e086dcfb78b9976bde980e40cfa1d6d94c..448764292071926306fa4bcc9b0eb66a5f646412 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.1.1-r2.ebuild,v 1.4 2011/11/01 10:14:55 chainsaw Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.1.1-r2.ebuild,v 1.5 2011/11/07 17:34:55 alexxy Exp $
 
 EAPI="4"
 
@@ -71,14 +71,14 @@ src_prepare() {
                        -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
                        -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
                        -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
-                       -i {} \;
+                       -i {} \; || die "failed to set custom-cflags"
        fi
 
        # remove -Werror for gcc-4.6's sake
        find ${S} -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \
-               xargs sed -i 's/ *-Werror */ /'
-       # not strictly necessary to fix this
-       sed -i 's/, "-Werror"//' ${S}/tools/python/setup.py
+               xargs sed -i 's/ *-Werror */ /' || die "failed to remove -Werror"
+       # not strictly necessary to fix this 
+       sed -i 's/, "-Werror"//' ${S}/tools/python/setup.py || die "failed to remove -Werror on setup.py"
 
        # Add sccurity fix bug #379241
        epatch "${FILESDIR}/${P}-iommu_sec_fix.patch"
@@ -98,7 +98,7 @@ src_configure() {
 
 src_compile() {
        # Send raw LDFLAGS so that --as-needed works
-       emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed"
+       emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)" -C xen ${myopt}
 }
 
 src_install() {
@@ -106,7 +106,7 @@ src_install() {
        use debug && myopt="${myopt} debug=y"
        use pae && myopt="${myopt} pae=y"
 
-       emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install || die "install failed"
+       emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install
 }
 
 pkg_postinst() {
index 3232699ec36450a7854a426e57a195e43dd728e5..3bd3903cd9ad864e24c8481c78deb4f98a304624 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.1.2.ebuild,v 1.1 2011/10/25 18:43:54 alexxy Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/xen/xen-4.1.2.ebuild,v 1.2 2011/11/07 17:34:55 alexxy Exp $
 
 EAPI="4"
 
@@ -73,14 +73,14 @@ src_prepare() {
                        -e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
                        -e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
                        -e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
-                       -i {} \;
+                       -i {} \; || die "failed to re-set custom-cflags"
        fi
 
        # remove -Werror for gcc-4.6's sake
        find "${S}" -name 'Makefile*' -o -name '*.mk' -o -name 'common.make' | \
                xargs sed -i 's/ *-Werror */ /'
        # not strictly necessary to fix this
-       sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py"
+       sed -i 's/, "-Werror"//' "${S}/tools/python/setup.py" || die "failed to re-set setup.py"
 }
 
 src_configure() {
@@ -97,7 +97,7 @@ src_configure() {
 
 src_compile() {
        # Send raw LDFLAGS so that --as-needed works
-       emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" -C xen ${myopt} || die "compile failed"
+       emake CC="$(tc-getCC)" LDFLAGS="$(raw-ldflags)" LD="$(tc-getLD)"  -C xen ${myopt}
 }
 
 src_install() {
@@ -105,7 +105,7 @@ src_install() {
        use debug && myopt="${myopt} debug=y"
        use pae && myopt="${myopt} pae=y"
 
-       emake LDFLAGS="$(raw-ldflags)" DESTDIR="${D}" -C xen ${myopt} install || die "install failed"
+       emake LDFLAGS="$(raw-ldflags)" DESTDIR="${ED}" -C xen ${myopt} install
 }
 
 pkg_postinst() {