1 |
commit: 61287ed80a5149c6a62fe1f8273832927b611597 |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Oct 2 10:53:39 2011 +0000 |
4 |
Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Oct 2 11:26:30 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=61287ed8 |
7 |
|
8 |
app-misc/tracker: disable qt4 albumart, fix ff/tb access violations |
9 |
|
10 |
Disable the qt4-based albumart extractor; it appears very unstable (see |
11 |
bug #385345, and confirmed on multiple machines here). Forcce a revbump |
12 |
to get people to use the gdk-pixbuf based extractor, since the qt4 USE |
13 |
flag is enabled by default for most users. |
14 |
|
15 |
Also, do not call firefox and thunderbird directly to get their |
16 |
versions, this results in access violations, and Gentoo has a better way |
17 |
of doing this (bug #385347). |
18 |
|
19 |
Thanks to Valentin David <valentin.david <AT> gmail.com> for reporting. |
20 |
|
21 |
--- |
22 |
...cker-0.12.3.ebuild => tracker-0.12.3-r1.ebuild} | 33 ++++++++++++------- |
23 |
1 files changed, 21 insertions(+), 12 deletions(-) |
24 |
|
25 |
diff --git a/app-misc/tracker/tracker-0.12.3.ebuild b/app-misc/tracker/tracker-0.12.3-r1.ebuild |
26 |
similarity index 85% |
27 |
rename from app-misc/tracker/tracker-0.12.3.ebuild |
28 |
rename to app-misc/tracker/tracker-0.12.3-r1.ebuild |
29 |
index 66839f6..681bd8b 100644 |
30 |
--- a/app-misc/tracker/tracker-0.12.3.ebuild |
31 |
+++ b/app-misc/tracker/tracker-0.12.3-r1.ebuild |
32 |
@@ -8,7 +8,7 @@ GNOME2_LA_PUNT="yes" |
33 |
GNOME_TARBALL_SUFFIX="xz" |
34 |
PYTHON_DEPEND="2:2.6" |
35 |
|
36 |
-inherit eutils gnome2 linux-info multilib python virtualx |
37 |
+inherit autotools eutils gnome2 linux-info multilib python |
38 |
|
39 |
DESCRIPTION="A tagging metadata database, search tool and indexer" |
40 |
HOMEPAGE="http://www.tracker-project.org/" |
41 |
@@ -17,7 +17,7 @@ LICENSE="GPL-2" |
42 |
SLOT="0" |
43 |
KEYWORDS="~amd64 ~x86" |
44 |
# USE="doc" is managed by eclass. |
45 |
-IUSE="applet doc eds elibc_glibc exif firefox flac flickr gif gnome-keyring gsf gstreamer gtk iptc +jpeg laptop mp3 nautilus networkmanager pdf playlist qt4 rss test thunderbird +tiff upnp +vorbis xine +xml xmp" # strigi |
46 |
+IUSE="applet doc eds elibc_glibc exif firefox flac flickr gif gnome-keyring gsf gstreamer gtk iptc +jpeg laptop mp3 nautilus networkmanager pdf playlist rss test thunderbird +tiff upnp +vorbis xine +xml xmp" # qt4 strigi |
47 |
|
48 |
# Test suite highly disfunctional, loops forever |
49 |
# putting aside for now |
50 |
@@ -70,8 +70,7 @@ RDEPEND=" |
51 |
laptop? ( >=sys-power/upower-0.9 ) |
52 |
mp3? ( |
53 |
>=media-libs/taglib-1.6 |
54 |
- gtk? ( x11-libs/gdk-pixbuf:2 ) |
55 |
- qt4? ( >=x11-libs/qt-gui-4.7.1:4 ) ) |
56 |
+ gtk? ( x11-libs/gdk-pixbuf:2 ) ) |
57 |
nautilus? ( |
58 |
>=gnome-base/nautilus-2.90 |
59 |
x11-libs/gtk+:3 ) |
60 |
@@ -89,6 +88,7 @@ RDEPEND=" |
61 |
xml? ( >=dev-libs/libxml2-2.6 ) |
62 |
xmp? ( >=media-libs/exempi-2.1 )" |
63 |
# strigi? ( >=app-misc/strigi-0.7 ) |
64 |
+# mp3? ( qt4? ( >=x11-libs/qt-gui-4.7.1:4 ) ) |
65 |
DEPEND="${RDEPEND} |
66 |
>=dev-util/intltool-0.40 |
67 |
>=sys-devel/gettext-0.17 |
68 |
@@ -143,14 +143,17 @@ pkg_setup() { |
69 |
G2CONF="${G2CONF} VALAC=$(type -P valac-0.12)" |
70 |
fi |
71 |
|
72 |
- if use mp3 && (use gtk || use qt4); then |
73 |
- G2CONF="${G2CONF} $(use_enable !qt4 gdkpixbuf) $(use_enable qt4 qt)" |
74 |
+ # if use mp3 && (use gtk || use qt4); then |
75 |
+ if use mp3 && use gtk; then |
76 |
+ #G2CONF="${G2CONF} $(use_enable !qt4 gdkpixbuf) $(use_enable qt4 qt)" |
77 |
+ G2CONF="${G2CONF} --enable-gdkpixbuf" |
78 |
fi |
79 |
|
80 |
# unicode-support: libunistring, libicu or glib ? |
81 |
# According to NEWS, introspection is required |
82 |
# FIXME: disabling streamanalyzer for now since tracker-sparql-builder.h |
83 |
# is not being generated |
84 |
+ # XXX: disabling qt since tracker-albumart-qt is unstable; bug #385345 |
85 |
G2CONF="${G2CONF} |
86 |
--disable-hal |
87 |
--enable-tracker-fts |
88 |
@@ -159,6 +162,7 @@ pkg_setup() { |
89 |
--enable-guarantee-metadata |
90 |
--enable-introspection |
91 |
--disable-libstreamanalyzer |
92 |
+ --disable-qt |
93 |
$(use_enable applet tracker-search-bar) |
94 |
$(use_enable eds miner-evolution) |
95 |
$(use_enable exif libexif) |
96 |
@@ -203,20 +207,25 @@ src_prepare() { |
97 |
find "${S}" -name "*.pyc" -delete |
98 |
python_convert_shebangs -r 2 tests utils examples |
99 |
|
100 |
+ # Don't run firefox or thunderbird. It results in access violations on some |
101 |
+ # setups (bug #385347) and does nothing useful on Gentoo. |
102 |
+ local ff_version=$(best_version www-client/firefox) |
103 |
+ ff_version=${ff_version#www-client/firefox-} |
104 |
+ local tb_version=$(best_version mail-client/thunderbird) |
105 |
+ tb_version=${tb_version#mail-client/thunderbird-} |
106 |
+ sed -e "s:firefox_version=.*:firefox_version='${ff_version}':" \ |
107 |
+ -e "s:thunderbird_version=.*:thunderbird_version='${tb_version}':" \ |
108 |
+ -i configure.ac || die "sed failed" |
109 |
+ |
110 |
# FIXME: report broken tests |
111 |
sed -e '/\/libtracker-miner\/tracker-password-provider\/setting/,+1 s:^\(.*\)$:/*\1*/:' \ |
112 |
-e '/\/libtracker-miner\/tracker-password-provider\/getting/,+1 s:^\(.*\)$:/*\1*/:' \ |
113 |
-i tests/libtracker-miner/tracker-password-provider-test.c || die |
114 |
|
115 |
+ eautoreconf |
116 |
gnome2_src_prepare |
117 |
} |
118 |
|
119 |
-src_configure() { |
120 |
- # Apparently, "firefox --version" on some systems will try write to |
121 |
- # /dev/dri/card0 and trigger the sandbox. |
122 |
- VIRTUALX_COMMAND="gnome2_src_configure" virtualmake |
123 |
-} |
124 |
- |
125 |
src_test() { |
126 |
unset DBUS_SESSION_BUS_ADDRESS |
127 |
Xemake check XDG_DATA_HOME="${T}" XDG_CONFIG_HOME="${T}" || die "tests failed" |