Gentoo Archives: gentoo-commits

From: "Tobias Heinlein (keytoaster)" <keytoaster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/kdelibs: ChangeLog kdelibs-3.5.9-r4.ebuild
Date: Mon, 05 May 2008 15:11:49
Message-Id: E1Jt2Ly-0004UY-2u@stork.gentoo.org
1 keytoaster 08/05/05 15:11:46
2
3 Modified: ChangeLog
4 Added: kdelibs-3.5.9-r4.ebuild
5 Log:
6 Adding patch to fix khtml crashes, bug #219970
7 (Portage version: 2.1.5_rc6)
8
9 Revision Changes Path
10 1.526 kde-base/kdelibs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.526&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?rev=1.526&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/ChangeLog?r1=1.525&r2=1.526
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v
19 retrieving revision 1.525
20 retrieving revision 1.526
21 diff -u -r1.525 -r1.526
22 --- ChangeLog 28 Apr 2008 14:10:31 -0000 1.525
23 +++ ChangeLog 5 May 2008 15:11:45 -0000 1.526
24 @@ -1,6 +1,12 @@
25 # ChangeLog for kde-base/kdelibs
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.525 2008/04/28 14:10:31 ingmar Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.526 2008/05/05 15:11:45 keytoaster Exp $
29 +
30 +*kdelibs-3.5.9-r4 (05 May 2008)
31 +
32 + 05 May 2008; Tobias Heinlein <keytoaster@g.o>
33 + +files/kdelibs-3.5.9-bug_219970_khtml.patch, +kdelibs-3.5.9-r4.ebuild:
34 + Adding patch to fix khtml crashes, bug #219970
35
36 *kdelibs-4.0.3-r1 (28 Apr 2008)
37
38
39
40
41 1.1 kde-base/kdelibs/kdelibs-3.5.9-r4.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/kdelibs-3.5.9-r4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdelibs/kdelibs-3.5.9-r4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: kdelibs-3.5.9-r4.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-3.5.9-r4.ebuild,v 1.1 2008/05/05 15:11:45 keytoaster Exp $
51
52 EAPI="1"
53 inherit kde flag-o-matic eutils multilib
54 set-kdedir 3.5
55
56 DESCRIPTION="KDE libraries needed by all KDE programs."
57 HOMEPAGE="http://www.kde.org/"
58 SRC_URI="mirror://kde/stable/${PV}/src/${P}.tar.bz2
59 mirror://gentoo/kdelibs-3.5-patchset-14.tar.bz2
60 mirror://gentoo/kde-3.5.9-seli-xinerama.tar.bz2"
61
62 LICENSE="GPL-2 LGPL-2"
63 SLOT="3.5"
64 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
65 IUSE="acl alsa arts bindist branding cups doc jpeg2k kerberos legacyssl utempter openexr spell tiff
66 avahi kernel_linux fam lua kdehiddenvisibility"
67
68 # Added aspell-en as dependency to work around bug 131512.
69 # Made openssl and zeroconf mandatory dependencies, see bug #172972 and #175984
70 RDEPEND="
71 arts? ( >=kde-base/arts-3.5.5 )
72 app-arch/bzip2
73 >=dev-libs/openssl-0.9.7d
74 >=dev-libs/libxslt-1.1.16
75 >=dev-libs/libxml2-2.6.6
76 >=dev-libs/libpcre-6.6
77 media-libs/fontconfig
78 >=media-libs/freetype-2
79 media-libs/libart_lgpl
80 net-dns/libidn
81 >=x11-libs/qt-3.3.3:3
82 acl? ( kernel_linux? ( sys-apps/acl ) )
83 alsa? ( media-libs/alsa-lib )
84 cups? ( >=net-print/cups-1.1.19 )
85 tiff? ( media-libs/tiff )
86 kerberos? ( virtual/krb5 )
87 jpeg2k? ( media-libs/jasper )
88 openexr? ( >=media-libs/openexr-1.2.2-r2 )
89 !avahi? ( !bindist? ( net-misc/mDNSResponder !kde-misc/kdnssd-avahi ) )
90 fam? ( virtual/fam )
91 virtual/ghostscript
92 utempter? ( sys-libs/libutempter )
93 !kde-base/kde-env
94 lua? ( dev-lang/lua )
95 spell? ( >=app-text/aspell-0.60.5 >=app-dicts/aspell-en-6.0.0 )
96 >=sys-apps/portage-2.1.2.11
97 !kde-base/ksync"
98
99 DEPEND="${RDEPEND}
100 doc? ( app-doc/doxygen )
101 sys-devel/gettext"
102
103 RDEPEND="${RDEPEND}
104 x11-apps/rgb
105 x11-apps/iceauth"
106
107 PDEPEND="avahi? ( kde-misc/kdnssd-avahi )
108 bindist? ( kde-misc/kdnssd-avahi )"
109
110 # Testing code is rather broken and merely for developer purposes, so disable it.
111 RESTRICT="test"
112
113 pkg_setup() {
114 if use legacyssl ; then
115 echo ""
116 elog "You have the legacyssl use flag enabled, which fixes issues with some broken"
117 elog "sites, but breaks others instead. It is strongly discouraged to use it."
118 elog "For more information, see bug #128922."
119 echo ""
120 fi
121
122 if ! use utempter ; then
123 echo ""
124 elog "On some setups, which rely on the correct update of utmp records, not using"
125 elog "utempter might not update them correctly. If you experience unexpected"
126 elog "behaviour, try to rebuild kde-base/kdelibs with utempter use-flag enabled."
127 echo ""
128 fi
129
130 if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then
131 eerror "The alsa USE flag in this package enables ALSA support"
132 eerror "for libkmid, KDE midi library."
133 eerror "For this reason, you have to merge media-libs/alsa-lib"
134 eerror "with the midi USE flag enabled, or disable alsa USE flag"
135 eerror "for this package."
136 die "Missing midi USE flag on media-libs/alsa-lib"
137 fi
138 }
139
140 src_unpack() {
141 kde_src_unpack
142
143 if use legacyssl ; then
144 # This patch won't be included upstream, see bug #128922.
145 epatch "${WORKDIR}/patches/kdelibs_3.5.4-kssl-3des.patch"
146 fi
147
148 if use utempter ; then
149 # Bug #135818 is the eternal reference.
150 epatch "${WORKDIR}/patches/kdelibs-3.5_libutempter.patch"
151 fi
152
153 if use branding ; then
154 # Add "(Gentoo)" to khtml user agent.
155 epatch "${WORKDIR}/patches/kdelibs_3.5-cattlebrand.diff"
156 fi
157
158 # Xinerama patch by Lubos Lunak.
159 # http://ktown.kde.org/~seli/xinerama/
160 epatch "${WORKDIR}/${PN}-xinerama.patch"
161
162 # Fixes bug 212749 (upstream bug 158069)
163 epatch "${FILESDIR}/${P}-cursor.patch"
164
165 # Fixes bug 203433 (upstream bug 125206)
166 epatch "${FILESDIR}/${P}-bug_203433_khtml.patch"
167
168 # Security bug 218933
169 epatch "${FILESDIR}/${PN}-3.5.8-kinit-CVE-2008-1671.patch"
170
171 # Fixes bug 219970 (upstream bug 150006)
172 epatch "${FILESDIR}/${P}-bug_219970_khtml.patch"
173 }
174
175 src_compile() {
176 rm -f "${S}/configure"
177
178 myconf="--with-distribution=Gentoo --disable-fast-malloc
179 --with-libart --with-libidn --with-ssl
180 --without-hspell
181 $(use_enable fam libfam) $(use_enable kernel_linux dnotify)
182 $(use_with acl) $(use_with alsa)
183 $(use_with arts) $(use_enable cups)
184 $(use_with kerberos gssapi) $(use_with tiff)
185 $(use_with jpeg2k jasper) $(use_with openexr)
186 $(use_with utempter) $(use_with lua)
187 $(use_enable kernel_linux sendfile) --enable-mitshm
188 $(use_with spell aspell)"
189
190 if use avahi || use bindist ; then
191 myconf="${myconf} --disable-dnssd"
192 else
193 myconf="${myconf} --enable-dnssd"
194 fi
195
196 if has_version x11-apps/rgb; then
197 myconf="${myconf} --with-rgbfile=/usr/share/X11/rgb.txt"
198 fi
199
200 # fix bug 58179, bug 85593
201 # kdelibs-3.4.0 needed -fno-gcse; 3.4.1 needs -mminimal-toc; this needs a
202 # closer look... - corsair
203 use ppc64 && append-flags "-mminimal-toc"
204
205 # work around bug #120858, gcc 3.4.x -Os miscompilation
206 use x86 && replace-flags "-Os" "-O2" # see bug #120858
207
208 replace-flags "-O3" "-O2" # see bug #148180
209
210 kde_src_compile
211
212 if use doc; then
213 emake apidox || die
214 fi
215 }
216
217 src_install() {
218 kde_src_install
219
220 if use doc; then
221 emake DESTDIR="${D}" install-apidox || die
222 fi
223
224 # Needed to create lib -> lib64 symlink for amd64 2005.0 profile
225 if [ "${SYMLINK_LIB}" = "yes" ]; then
226 dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) ${KDEDIR}/lib
227 fi
228
229 # Get rid of the disabled version of the kdnsd libraries
230 if use avahi || use bindist ; then
231 rm -rf "${D}/${PREFIX}"/$(get_libdir)/libkdnssd.*
232 fi
233
234 dodir /etc/env.d
235
236 # List all the multilib libdirs
237 local libdirs
238 for libdir in $(get_all_libdirs); do
239 libdirs="${libdirs}:${PREFIX}/${libdir}"
240 done
241
242 # Please note that the KDE install path has to be the last value in KDEDIRS.
243 cat <<EOF > "${D}"/etc/env.d/45kdepaths-${SLOT} # number goes down with version upgrade
244 PATH=${PREFIX}/bin
245 ROOTPATH=${PREFIX}/sbin:${PREFIX}/bin
246 LDPATH=${libdirs:1}
247 MANPATH=${PREFIX}/share/man
248 CONFIG_PROTECT="${PREFIX}/share/config ${PREFIX}/env ${PREFIX}/shutdown /usr/share/config"
249 KDEDIRS="/usr:/usr/local:${PREFIX}"
250 #KDE_IS_PRELINKED=1
251 XDG_DATA_DIRS="/usr/share:${PREFIX}/share:/usr/local/share"
252 COLON_SEPARATED="XDG_DATA_DIRS"
253 EOF
254
255 # Make sure the target for the revdep-rebuild stuff exists. Fixes bug 184441.
256 dodir /etc/revdep-rebuild
257
258 cat <<EOF > "${D}"/etc/revdep-rebuild/50-kde3
259 SEARCH_DIRS="${PREFIX}/bin ${PREFIX}/lib*"
260 EOF
261 }
262
263
264
265 --
266 gentoo-commits@l.g.o mailing list