Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-freebsd/freebsd-lib/
Date: Tue, 01 Mar 2016 10:07:10
Message-Id: 1456826813.5ddc0c15d8941afd7654b9e96b2f803d330e928f.aballier@gentoo
1 commit: 5ddc0c15d8941afd7654b9e96b2f803d330e928f
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 1 09:28:00 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 1 10:06:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ddc0c15
7
8 sys-freebsd/freebsd-lib: move GNU install/sed fixes before USE=build check so that they are applied also with USE=build.
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 sys-freebsd/freebsd-lib/freebsd-lib-10.2-r2.ebuild | 25 +++++++++++-----------
14 1 file changed, 13 insertions(+), 12 deletions(-)
15
16 diff --git a/sys-freebsd/freebsd-lib/freebsd-lib-10.2-r2.ebuild b/sys-freebsd/freebsd-lib/freebsd-lib-10.2-r2.ebuild
17 index 49e8c0b..d50c0d4 100644
18 --- a/sys-freebsd/freebsd-lib/freebsd-lib-10.2-r2.ebuild
19 +++ b/sys-freebsd/freebsd-lib/freebsd-lib-10.2-r2.ebuild
20 @@ -186,6 +186,19 @@ src_prepare() {
21 sed -e 's/LDFLAGS/RAW_LDFLAGS/g' \
22 -i "${S}/csu/i386-elf/Makefile" \
23 -i "${S}/csu/ia64/Makefile" || die
24 +
25 + if install --version 2> /dev/null | grep -q GNU; then
26 + sed -i.bak -e 's:${INSTALL} -C:${INSTALL}:' "${WORKDIR}/include/Makefile"
27 + fi
28 +
29 + # Try to fix sed calls for GNU sed. Do it only with GNU userland and force
30 + # BSD's sed on BSD.
31 + cd "${S}"
32 + if [[ ${CBUILD:-${CHOST}} != *bsd* ]]; then
33 + find . -name Makefile -exec sed -ibak 's/sed -i /sed -i/' {} \;
34 + sed -i -e 's/-i ""/-i""/' "${S}/csu/Makefile.inc" || die
35 + fi
36 +
37 if use build; then
38 cd "${WORKDIR}"
39 # This patch has to be applied on ${WORKDIR}/sys, so we do it here since it
40 @@ -204,18 +217,6 @@ src_prepare() {
41 "${S}/libc/rpc/Makefile.inc" \
42 "${S}/libc/yp/Makefile.inc"
43 fi
44 -
45 - if install --version 2> /dev/null | grep -q GNU; then
46 - sed -i.bak -e 's:${INSTALL} -C:${INSTALL}:' "${WORKDIR}/include/Makefile"
47 - fi
48 -
49 - # Try to fix sed calls for GNU sed. Do it only with GNU userland and force
50 - # BSD's sed on BSD.
51 - cd "${S}"
52 - if [[ ${CBUILD:-${CHOST}} != *bsd* ]]; then
53 - find . -name Makefile -exec sed -ibak 's/sed -i /sed -i/' {} \;
54 - sed -i -e 's/-i ""/-i""/' "${S}/csu/Makefile.inc" || die
55 - fi
56 }
57
58 bootstrap_lib() {