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