Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/distcc: ChangeLog distcc-2.18.3-r13.ebuild
Date: Mon, 26 May 2008 01:34:42
Message-Id: E1K0Rbi-0003oa-Pb@stork.gentoo.org
1 dirtyepic 08/05/26 01:34:38
2
3 Modified: ChangeLog
4 Added: distcc-2.18.3-r13.ebuild
5 Log:
6 Add patch to always run jobs containing -march=native locally. Bug
7 #223159.
8 (Portage version: 2.2_pre7/cvs/Linux 2.6.25-gentoo-r3 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz)
9
10 Revision Changes Path
11 1.173 sys-devel/distcc/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?rev=1.173&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?rev=1.173&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?r1=1.172&r2=1.173
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v
20 retrieving revision 1.172
21 retrieving revision 1.173
22 diff -u -r1.172 -r1.173
23 --- ChangeLog 25 Apr 2008 12:15:18 -0000 1.172
24 +++ ChangeLog 26 May 2008 01:34:38 -0000 1.173
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-devel/distcc
27 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.172 2008/04/25 12:15:18 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.173 2008/05/26 01:34:38 dirtyepic Exp $
30 +
31 +*distcc-2.18.3-r13 (26 May 2008)
32 +
33 + 26 May 2008; Ryan Hill <dirtyepic@g.o>
34 + +files/distcc-march-native.patch, +distcc-2.18.3-r13.ebuild:
35 + Add patch to always run jobs containing -march=native locally. Bug
36 + #223159.
37
38 25 Apr 2008; Diego Pettenò <flameeyes@g.o>
39 distcc-2.18.3-r12.ebuild:
40
41
42
43 1.1 sys-devel/distcc/distcc-2.18.3-r13.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/distcc-2.18.3-r13.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/distcc-2.18.3-r13.ebuild?rev=1.1&content-type=text/plain
47
48 Index: distcc-2.18.3-r13.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-2.18.3-r13.ebuild,v 1.1 2008/05/26 01:34:38 dirtyepic Exp $
53
54 # If you change this in any way please email lisa@g.o and make an
55 # entry in the ChangeLog (this means you spanky :P). (2004-04-11) Lisa Seelye
56
57 inherit autotools eutils flag-o-matic toolchain-funcs fdo-mime
58
59 PATCHLEVEL="2.18-r1"
60
61 DESCRIPTION="a program to distribute compilation of C code across several machines on a network"
62 HOMEPAGE="http://distcc.samba.org/"
63 SRC_URI="http://distcc.samba.org/ftp/distcc/distcc-${PV}.tar.bz2
64 mirror://gentoo/${PN}-2.18-avahi.patch.bz2"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
69 IUSE="avahi gnome gtk selinux ipv6"
70
71 COMMON_DEP="dev-libs/popt
72 avahi? ( >=net-dns/avahi-0.6.5 )"
73 DEPEND="|| ( >=sys-devel/gcc-config-1.3.1 app-admin/eselect-compiler )
74 userland_GNU? ( sys-apps/shadow )
75 dev-util/pkgconfig
76 || ( dev-util/unifdef sys-freebsd/freebsd-ubin )
77 >=sys-devel/autoconf-2.60
78 ${COMMON_DEP}"
79 RDEPEND="
80 gnome? (
81 >=x11-libs/gtk+-2.0.0
82 >=gnome-base/libgnome-2.0.0
83 >=gnome-base/libgnomeui-2.0.0.0
84 >=gnome-base/libglade-2.0.0
85 x11-libs/pango
86 >=gnome-base/gconf-2.0.0
87 )
88 gtk? (
89 >=x11-libs/gtk+-2.0.0
90 x11-libs/pango
91 )
92 selinux? ( sec-policy/selinux-distcc )
93 ${COMMON_DEP}"
94
95 pkg_setup() {
96 if use avahi && ! built_with_use net-dns/avahi dbus; then
97 eerror "${CATEGORY}/${PN} needs net-dns/avahi built with the dbus use"
98 eerror "flag for avahi support."
99 die "net-dns/avahi not built with dbus support"
100 fi
101 }
102
103 src_unpack() {
104 unpack ${A}
105 cd "${S}"
106
107 # -Wl,--as-needed to close bug #128605
108 epatch "${FILESDIR}/distcc-as-needed.patch"
109
110 # See bug #75420 for more multilib stuff
111 epatch "${FILESDIR}/distcc-gentoo-multilib-r1.patch"
112 einfo "Please report to bug #75420 success or failure of this patch."
113
114 epatch "${FILESDIR}/distcc-freedesktop.patch"
115 epatch "${FILESDIR}/distcc-create-dir.patch"
116 epatch "${FILESDIR}"/${PN}-march-native.patch
117
118 rm -v popt/*.c || die
119 if use avahi; then
120 epatch "${DISTDIR}/${PN}-2.18-avahi.patch.bz2"
121 epatch "${FILESDIR}/${PN}-avahi-configure.patch"
122 fi
123
124 eautoreconf
125 }
126
127 src_compile() {
128 local myconf="--without-included-popt --docdir=/usr/share/doc/${PF}"
129
130 #More legacy stuff?
131 [ `gcc-major-version` -eq 2 ] && filter-lfs-flags
132
133 if use ipv6; then
134 ewarn "To use IPV6 you must have IPV6 compiled into your kernel"
135 ewarn "either via a module or compiled code"
136 ewarn "You can recompile without ipv6 with: USE='-ipv6' emerge distcc"
137 myconf=" ${myconf} --enable-rfc2553 "
138 epause 5
139 fi
140 econf ${myconf} $(use_enable avahi) $(use_with gnome) $(use_with gtk) || die "econf ${myconf} failed"
141 emake || die "emake failed"
142 }
143
144 handle_avahi() {
145 local avahi="-UAVAHI"
146 use avahi && avahi="-DAVAHI"
147 unifdef ${avahi} "${1}" > "${2}"
148 }
149
150 src_install() {
151 make DESTDIR="${D%/}" install
152
153 dodoc "${S}/survey.txt"
154
155 exeinto /usr/bin
156 doexe "${FILESDIR}/distcc-config"
157
158 handle_avahi "${FILESDIR}/${PATCHLEVEL}/init" "${T}/init"
159 newinitd "${T}/init" distccd || die
160
161 handle_avahi "${FILESDIR}/${PATCHLEVEL}/conf" "${T}/conf"
162 newconfd "${T}/conf" distccd || die
163
164 # create and keep the symlink dir
165 dodir /usr/lib/distcc/bin
166 keepdir /usr/lib/distcc/bin
167
168 # create the distccd pid directory
169 dodir /var/run/distccd
170 keepdir /var/run/distccd
171
172 if use gnome || use gtk; then
173 einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui"
174 einfo "This is to have a little sensability in naming schemes between distccmon programs"
175 mv "${D}/usr/bin/distccmon-gnome" "${D}/usr/bin/distccmon-gui" || die
176 dosym /usr/bin/distccmon-gui /usr/bin/distccmon-gnome
177 fi
178
179 }
180
181 pkg_preinst() {
182 # non-/ installs don't require us to do anything here
183 [ "${ROOT}" != "/" ] && return 0
184
185 # stop daemon since script is being updated
186 [ -n "$(pidof distccd)" -a -x /etc/init.d/distccd ] && \
187 /etc/init.d/distccd stop
188 }
189
190 pkg_postinst() {
191 fdo-mime_desktop_database_update
192
193 #are we doing bootstrap with has no useradd?
194 if [[ ${CHOST} != *-*-gnu && ${CHOST} != *-linux* ]] || [ -x /usr/sbin/useradd ]; then
195 enewuser distcc 240
196 else
197 ewarn "You do not have useradd (bootstrap) from shadow so I didn't"
198 ewarn "install the distcc user. Note that attempting to start the daemon"
199 ewarn "will fail. Please install shadow and re-emerge distcc."
200 ebeep 2
201 fi
202
203 # By now everyone should be using the right envfile
204
205 if [ "${ROOT}" = "/" ]; then
206 einfo "Installing links to native compilers..."
207 /usr/bin/distcc-config --install
208 else
209 # distcc-config can *almost* handle ROOT installs itself
210 # but for now, but user must finsh things off
211 ewarn "*** Installation is not complete ***"
212 ewarn "You must run the following as root:"
213 ewarn " /usr/bin/distcc-config --install"
214 ewarn "after booting or chrooting into ${ROOT}"
215 fi
216 einfo "Setting permissions on ${ROOT}var/run/distccd"
217 chown -R distcc:daemon "${ROOT}var/run/distccd"
218 echo ""
219
220 einfo "Tips on using distcc with Gentoo can be found at"
221 einfo "http://www.gentoo.org/doc/en/distcc.xml"
222 echo ""
223 einfo "To use the distccmon programs with Gentoo you should use this command:"
224 einfo " DISTCC_DIR=/var/tmp/portage/.distcc distccmon-text N"
225 use gnome || use gtk && einfo "Or: DISTCC_DIR=/var/tmp/portage/.distcc distccmon-gnome"
226
227 ewarn "***SECURITY NOTICE***"
228 ewarn "If you are upgrading distcc please make sure to run etc-update to"
229 ewarn "update your /etc/conf.d/distccd and /etc/init.d/distccd files with"
230 ewarn "added security precautions (the --listen and --allow directives)"
231 ebeep 5
232 }
233
234 pkg_postrm() {
235 fdo-mime_desktop_database_update
236 }
237
238
239
240 --
241 gentoo-commits@l.g.o mailing list