Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/musl: musl-1.1.7-r3.ebuild ChangeLog musl-1.1.7-r2.ebuild
Date: Sat, 28 Mar 2015 16:25:05
Message-Id: 20150328162458.F11E314B70@oystercatcher.gentoo.org
1 blueness 15/03/28 16:24:57
2
3 Modified: ChangeLog
4 Added: musl-1.1.7-r3.ebuild
5 Removed: musl-1.1.7-r2.ebuild
6 Log:
7 Fix ldd symlink again. Bug #544306.
8
9 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
10
11 Revision Changes Path
12 1.48 sys-libs/musl/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/ChangeLog?rev=1.48&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/ChangeLog?rev=1.48&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/ChangeLog?r1=1.47&r2=1.48
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-libs/musl/ChangeLog,v
21 retrieving revision 1.47
22 retrieving revision 1.48
23 diff -u -r1.47 -r1.48
24 --- ChangeLog 28 Mar 2015 12:28:53 -0000 1.47
25 +++ ChangeLog 28 Mar 2015 16:24:57 -0000 1.48
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-libs/musl
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/musl/ChangeLog,v 1.47 2015/03/28 12:28:53 blueness Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/musl/ChangeLog,v 1.48 2015/03/28 16:24:57 blueness Exp $
31 +
32 +*musl-1.1.7-r3 (28 Mar 2015)
33 +
34 + 28 Mar 2015; Anthony G. Basile <blueness@g.o> +musl-1.1.7-r3.ebuild,
35 + -musl-1.1.7-r2.ebuild:
36 + Fix ldd symlink again. Bug #544306.
37
38 *musl-1.1.7-r2 (28 Mar 2015)
39
40
41
42
43 1.1 sys-libs/musl/musl-1.1.7-r3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/musl-1.1.7-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/musl-1.1.7-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: musl-1.1.7-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-libs/musl/musl-1.1.7-r3.ebuild,v 1.1 2015/03/28 16:24:57 blueness Exp $
53
54 EAPI=5
55
56 inherit eutils flag-o-matic multilib toolchain-funcs
57 if [[ ${PV} == "9999" ]] ; then
58 EGIT_REPO_URI="git://git.musl-libc.org/musl"
59 inherit git-2
60 fi
61
62 export CBUILD=${CBUILD:-${CHOST}}
63 export CTARGET=${CTARGET:-${CHOST}}
64 if [[ ${CTARGET} == ${CHOST} ]] ; then
65 if [[ ${CATEGORY} == cross-* ]] ; then
66 export CTARGET=${CATEGORY#cross-}
67 fi
68 fi
69
70 DESCRIPTION="Lightweight, fast and simple C library focused on standards-conformance and safety"
71 HOMEPAGE="http://www.musl-libc.org/"
72 if [[ ${PV} != "9999" ]] ; then
73 PATCH_VER=""
74 SRC_URI="http://www.musl-libc.org/releases/${P}.tar.gz"
75 KEYWORDS="-* ~amd64 ~arm ~mips ~ppc ~x86"
76 fi
77
78 LICENSE="MIT"
79 SLOT="0"
80 IUSE="crosscompile_opts_headers-only"
81
82 if [[ ${CATEGORY} != cross-* ]] ; then
83 RDEPEND+=" sys-apps/getent"
84 fi
85
86 is_crosscompile() {
87 [[ ${CHOST} != ${CTARGET} ]]
88 }
89
90 just_headers() {
91 use crosscompile_opts_headers-only && is_crosscompile
92 }
93
94 pkg_setup() {
95 if [ ${CTARGET} == ${CHOST} ] ; then
96 case ${CHOST} in
97 *-musl*) ;;
98 *) die "Use sys-devel/crossdev to build a musl toolchain" ;;
99 esac
100 fi
101
102 epatch_user
103 }
104
105 src_configure() {
106 tc-getCC ${CTARGET}
107 just_headers && export CC=true
108
109 local sysroot
110 is_crosscompile && sysroot=/usr/${CTARGET}
111 ./configure \
112 --target=${CTARGET} \
113 --prefix=${sysroot}/usr \
114 --syslibdir=${sysroot}/lib \
115 --disable-gcc-wrapper
116 }
117
118 src_compile() {
119 emake include/bits/alltypes.h || die
120 just_headers && return 0
121
122 emake || die
123 }
124
125 src_install() {
126 local target="install"
127 just_headers && target="install-headers"
128 emake DESTDIR="${D}" ${target} || die
129 just_headers && return 0
130
131 # musl provides ldd via a sym link to its ld.so
132 local sysroot
133 is_crosscompile && sysroot=/usr/${CTARGET}
134 local ldso=$(basename "${D}"${sysroot}/lib/ld-musl-*)
135 dosym ${sysroot}/lib/${ldso} ${sysroot}/usr/bin/ldd
136 }
137
138 pkg_postinst() {
139 is_crosscompile && return 0
140
141 [ "${ROOT}" != "/" ] && return 0
142
143 # TODO: musl doesn't use ldconfig, instead here we can
144 # create sym links to libraries outside of /lib and /usr/lib
145 ldconfig
146 # reload init ...
147 /sbin/telinit U 2>/dev/null
148 }