From: "Alexis Ballier (aballier)" <aballier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in sys-freebsd/freebsd-lib: ChangeLog freebsd-lib-9.0-r2.ebuild
Date: Thu, 17 May 2012 18:31:44 +0000 (UTC) [thread overview]
Message-ID: <20120517183144.658342004B@flycatcher.gentoo.org> (raw)
aballier 12/05/17 18:31:44
Modified: ChangeLog freebsd-lib-9.0-r2.ebuild
Log:
split out the csu bootstrapping code in its own function
(Portage version: 2.2.0_alpha107/cvs/Linux x86_64)
Revision Changes Path
1.124 sys-freebsd/freebsd-lib/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog?rev=1.124&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog?rev=1.124&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog?r1=1.123&r2=1.124
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v
retrieving revision 1.123
retrieving revision 1.124
diff -u -r1.123 -r1.124
--- ChangeLog 17 May 2012 18:13:00 -0000 1.123
+++ ChangeLog 17 May 2012 18:31:44 -0000 1.124
@@ -1,6 +1,9 @@
# ChangeLog for sys-freebsd/freebsd-lib
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.123 2012/05/17 18:13:00 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/ChangeLog,v 1.124 2012/05/17 18:31:44 aballier Exp $
+
+ 17 May 2012; Alexis Ballier <aballier@gentoo.org> freebsd-lib-9.0-r2.ebuild:
+ split out the csu bootstrapping code in its own function
17 May 2012; Alexis Ballier <aballier@gentoo.org> freebsd-lib-9.0-r2.ebuild:
Remove -isystem append-flags that are now useless since we pre-install the
1.10 sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild?rev=1.10&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild?rev=1.10&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild?r1=1.9&r2=1.10
Index: freebsd-lib-9.0-r2.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- freebsd-lib-9.0-r2.ebuild 17 May 2012 18:13:00 -0000 1.9
+++ freebsd-lib-9.0-r2.ebuild 17 May 2012 18:31:44 -0000 1.10
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild,v 1.9 2012/05/17 18:13:00 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-lib/freebsd-lib-9.0-r2.ebuild,v 1.10 2012/05/17 18:31:44 aballier Exp $
EAPI=2
@@ -204,6 +204,16 @@
fi
}
+bootstrap_csu() {
+ local csudir="$(get_csudir $(tc-arch-kernel ${CTARGET}))"
+ export RAW_LDFLAGS=$(raw-ldflags)
+ cd "${WORKDIR}/${csudir}" || die "Missing ${csudir}."
+ freebsd_src_compile
+
+ append-flags "-B ${WORKDIR}/${csudir}"
+ append-ldflags "-B ${WORKDIR}/${csudir}"
+}
+
src_compile() {
# Does not work with GNU sed
# Force BSD's sed on BSD.
@@ -226,17 +236,9 @@
CHOST=${CTARGET} tc-export CC LD CXX RANLIB
mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= NLS="
- local machine
- machine=$(tc-arch-kernel ${CTARGET})
-
- local csudir="$(get_csudir ${machine})"
- export RAW_LDFLAGS=$(raw-ldflags)
- cd "${WORKDIR}/${csudir}" || die "Missing ${csudir}."
- $(freebsd_get_bmake) ${mymakeopts} || die "make csu failed"
+ bootstrap_csu
append-flags "-isystem /usr/${CTARGET}/usr/include"
- append-flags "-B ${WORKDIR}/${csudir}"
- append-ldflags "-B ${WORKDIR}/${csudir}"
# First compile libssp_nonshared.a and add it's path to LDFLAGS.
cd "${WORKDIR}/gnu/lib/libssp/libssp_nonshared/" || die "missing libssp."
next reply other threads:[~2012-05-17 18:31 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-17 18:31 Alexis Ballier (aballier) [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-05-25 15:51 [gentoo-commits] gentoo-x86 commit in sys-freebsd/freebsd-lib: ChangeLog freebsd-lib-9.0-r2.ebuild Alexis Ballier (aballier)
2012-05-25 14:58 Alexis Ballier (aballier)
2012-05-25 13:56 Alexis Ballier (aballier)
2012-05-25 12:37 Alexis Ballier (aballier)
2012-05-25 12:27 Alexis Ballier (aballier)
2012-05-25 12:24 Alexis Ballier (aballier)
2012-05-24 12:15 Alexis Ballier (aballier)
2012-05-24 11:02 Alexis Ballier (aballier)
2012-05-23 21:46 Alexis Ballier (aballier)
2012-05-18 17:38 Alexis Ballier (aballier)
2012-05-18 16:37 Alexis Ballier (aballier)
2012-05-18 16:17 Alexis Ballier (aballier)
2012-05-18 2:03 Alexis Ballier (aballier)
2012-05-18 1:48 Alexis Ballier (aballier)
2012-05-18 1:35 Alexis Ballier (aballier)
2012-05-18 1:31 Alexis Ballier (aballier)
2012-05-17 20:03 Alexis Ballier (aballier)
2012-05-17 19:21 Alexis Ballier (aballier)
2012-05-17 19:04 Alexis Ballier (aballier)
2012-05-17 18:46 Alexis Ballier (aballier)
2012-05-17 18:13 Alexis Ballier (aballier)
2012-05-17 17:59 Alexis Ballier (aballier)
2012-05-17 16:58 Alexis Ballier (aballier)
2012-05-17 16:25 Alexis Ballier (aballier)
2012-05-17 14:33 Alexis Ballier (aballier)
2012-05-17 13:59 Alexis Ballier (aballier)
2012-05-17 12:48 Alexis Ballier (aballier)
2012-05-17 12:46 Alexis Ballier (aballier)
2012-05-16 16:12 Alexis Ballier (aballier)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120517183144.658342004B@flycatcher.gentoo.org \
--to=aballier@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox