1 |
wired 12/01/09 13:29:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: distcc-3.1-r6.ebuild |
5 |
Log: |
6 |
added patch that increases argc properly, fixing virtualbox compilation. acked by xarthisius and Ultrabug, bug #351979 |
7 |
|
8 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.213 sys-devel/distcc/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/distcc/ChangeLog?rev=1.213&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/distcc/ChangeLog?rev=1.213&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/distcc/ChangeLog?r1=1.212&r2=1.213 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v |
20 |
retrieving revision 1.212 |
21 |
retrieving revision 1.213 |
22 |
diff -u -r1.212 -r1.213 |
23 |
--- ChangeLog 27 Dec 2011 16:09:23 -0000 1.212 |
24 |
+++ ChangeLog 9 Jan 2012 13:29:10 -0000 1.213 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for sys-devel/distcc |
27 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.212 2011/12/27 16:09:23 ultrabug Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.213 2012/01/09 13:29:10 wired Exp $ |
31 |
+ |
32 |
+*distcc-3.1-r6 (09 Jan 2012) |
33 |
+ |
34 |
+ 09 Jan 2012; Alex Alexander <wired@g.o> +distcc-3.1-r6.ebuild, |
35 |
+ +files/distcc-3.1-argc-fix.patch: |
36 |
+ added patch that increases argc properly, fixing virtualbox compilation. |
37 |
+ acked by xarthisius and Ultrabug, bug #351979 |
38 |
|
39 |
27 Dec 2011; Ultrabug <ultrabug@g.o> files/3.1/init: |
40 |
Fix 3.1 series init script wrt #390063 thanks to André-Sebastian Liebe. |
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-devel/distcc/distcc-3.1-r6.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/distcc/distcc-3.1-r6.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/distcc/distcc-3.1-r6.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: distcc-3.1-r6.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2012 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-3.1-r6.ebuild,v 1.1 2012/01/09 13:29:10 wired Exp $ |
54 |
|
55 |
EAPI="3" |
56 |
PYTHON_DEPEND="2" |
57 |
|
58 |
inherit eutils fdo-mime flag-o-matic multilib python toolchain-funcs |
59 |
|
60 |
DESCRIPTION="a program to distribute compilation of C code across several machines on a network" |
61 |
HOMEPAGE="http://distcc.org/" |
62 |
SRC_URI="http://distcc.googlecode.com/files/${P}.tar.bz2" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
67 |
IUSE="avahi gnome gtk hardened ipv6 selinux xinetd" |
68 |
|
69 |
RESTRICT="test" |
70 |
|
71 |
RDEPEND="dev-libs/popt |
72 |
avahi? ( >=net-dns/avahi-0.6[dbus] ) |
73 |
gnome? ( |
74 |
>=gnome-base/libgnome-2 |
75 |
>=gnome-base/libgnomeui-2 |
76 |
x11-libs/gtk+:2 |
77 |
x11-libs/pango |
78 |
) |
79 |
gtk? ( |
80 |
x11-libs/gtk+:2 |
81 |
)" |
82 |
DEPEND="${RDEPEND} |
83 |
dev-util/pkgconfig" |
84 |
RDEPEND="${RDEPEND} |
85 |
!net-misc/pump |
86 |
>=sys-devel/gcc-config-1.4.1 |
87 |
selinux? ( sec-policy/selinux-distcc ) |
88 |
xinetd? ( sys-apps/xinetd )" |
89 |
|
90 |
DISTCC_LOG="" |
91 |
DCCC_PATH="/usr/$(get_libdir)/distcc/bin" |
92 |
DISTCC_VERBOSE="0" |
93 |
|
94 |
pkg_setup() { |
95 |
enewuser distcc 240 -1 -1 daemon |
96 |
python_set_active_version 2 |
97 |
python_pkg_setup |
98 |
} |
99 |
|
100 |
src_prepare() { |
101 |
epatch "${FILESDIR}/${PN}-3.0-xinetd.patch" |
102 |
# bug #253786 |
103 |
epatch "${FILESDIR}/${PN}-3.0-fix-fortify.patch" |
104 |
# bug #255188 |
105 |
epatch "${FILESDIR}/${P}-freedesktop.patch" |
106 |
# bug #258364 |
107 |
epatch "${FILESDIR}/${P}-python.patch" |
108 |
# bug #351979 |
109 |
epatch "${FILESDIR}/${P}-argc-fix.patch" |
110 |
|
111 |
sed -i -e "/PATH/s:\$distcc_location:${DCCC_PATH}:" pump.in || die |
112 |
|
113 |
# Bugs #120001, #167844 and probably more. See patch for description. |
114 |
use hardened && epatch "${FILESDIR}/distcc-hardened.patch" |
115 |
} |
116 |
|
117 |
src_configure() { |
118 |
local myconf="--disable-Werror --with-docdir=/usr/share/doc/${PF}" |
119 |
# More legacy stuff? |
120 |
[ "$(gcc-major-version)" = "2" ] && filter-lfs-flags |
121 |
|
122 |
# --disable-rfc2553 b0rked, bug #254176 |
123 |
use ipv6 && myconf="${myconf} --enable-rfc2553" |
124 |
|
125 |
econf \ |
126 |
$(use_with avahi) \ |
127 |
$(use_with gtk) \ |
128 |
$(use_with gnome) \ |
129 |
${myconf} || die "econf failed" |
130 |
} |
131 |
|
132 |
src_install() { |
133 |
# In rare cases, parallel make install failed |
134 |
emake -j1 DESTDIR="${D}" install || die |
135 |
|
136 |
dobin "${FILESDIR}/3.0/distcc-config" |
137 |
|
138 |
newinitd "${FILESDIR}/${PV}/init" distccd |
139 |
|
140 |
cp "${FILESDIR}/3.0/conf" "${T}/distccd" |
141 |
if use avahi; then |
142 |
cat >> "${T}/distccd" <<-EOF |
143 |
|
144 |
# Enable zeroconf support in distccd |
145 |
DISTCCD_OPTS="\${DISTCCD_OPTS} --zeroconf" |
146 |
EOF |
147 |
fi |
148 |
doconfd "${T}/distccd" |
149 |
|
150 |
cat > "${T}/02distcc" <<-EOF |
151 |
# This file is managed by distcc-config; use it to change these settings. |
152 |
DISTCC_LOG="${DISTCC_LOG}" |
153 |
DCCC_PATH="${DCCC_PATH}" |
154 |
DISTCC_VERBOSE="${DISTCC_VERBOSE}" |
155 |
EOF |
156 |
doenvd "${T}/02distcc" |
157 |
|
158 |
# create the masquerade directory |
159 |
dodir "${DCCC_PATH}" |
160 |
for f in cc c++ gcc g++; do |
161 |
dosym /usr/bin/distcc "${DCCC_PATH}/${f}" |
162 |
if [ "${f}" != "cc" ]; then |
163 |
dosym /usr/bin/distcc "${DCCC_PATH}/${CTARGET:-${CHOST}}-${f}" |
164 |
fi |
165 |
done |
166 |
|
167 |
# create the distccd pid directory |
168 |
keepdir /var/run/distccd |
169 |
fowners distcc:daemon /var/run/distccd |
170 |
|
171 |
if use gnome || use gtk; then |
172 |
einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui" |
173 |
einfo "This is to have a little sensability in naming schemes between distccmon programs" |
174 |
mv "${D}/usr/bin/distccmon-gnome" "${D}/usr/bin/distccmon-gui" || die |
175 |
dosym distccmon-gui /usr/bin/distccmon-gnome |
176 |
fi |
177 |
|
178 |
if use xinetd; then |
179 |
insinto /etc/xinetd.d |
180 |
newins "doc/example/xinetd" distcc |
181 |
fi |
182 |
|
183 |
rm -rf "${D}/etc/default" |
184 |
rm -f "${D}/etc/distcc/clients.allow" |
185 |
rm -f "${D}/etc/distcc/commands.allow.sh" |
186 |
|
187 |
python_convert_shebangs -r $(python_get_version) "${ED}" |
188 |
sed -e "s:${EPREFIX}/usr/bin/python:$(PYTHON -a):" -i "${ED}usr/bin/pump" || die "sed failed" |
189 |
} |
190 |
|
191 |
pkg_postinst() { |
192 |
python_mod_optimize include_server |
193 |
use gnome && fdo-mime_desktop_database_update |
194 |
|
195 |
if use ipv6; then |
196 |
elog |
197 |
elog "IPv6 has not supported yet by ${P}." |
198 |
fi |
199 |
elog |
200 |
elog "Tips on using distcc with Gentoo can be found at" |
201 |
elog "http://www.gentoo.org/doc/en/distcc.xml" |
202 |
elog |
203 |
elog "How to use pump mode with Gentoo:" |
204 |
elog "# distcc-config --set-hosts \"foo,cpp,lzo bar,cpp,lzo baz,cpp,lzo\"" |
205 |
elog "# pump emerge -u world" |
206 |
elog |
207 |
elog "To use the distccmon programs with Gentoo you should use this command:" |
208 |
elog "# DISTCC_DIR=\"${DISTCC_DIR}\" distccmon-text 5" |
209 |
|
210 |
if use gnome || use gtk; then |
211 |
elog "Or:" |
212 |
elog "# DISTCC_DIR=\"${DISTCC_DIR}\" distccmon-gnome" |
213 |
fi |
214 |
|
215 |
elog |
216 |
elog "***SECURITY NOTICE***" |
217 |
elog "If you are upgrading distcc please make sure to run etc-update to" |
218 |
elog "update your /etc/conf.d/distccd and /etc/init.d/distccd files with" |
219 |
elog "added security precautions (the --listen and --allow directives)" |
220 |
elog |
221 |
} |
222 |
|
223 |
pkg_postrm() { |
224 |
python_mod_cleanup include_server |
225 |
use gnome && fdo-mime_desktop_database_update |
226 |
} |