Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143562 - x11-libs/gtk+ directfb use flag
Summary: x11-libs/gtk+ directfb use flag
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://overlays.gentoo.org/dev/betelg...
Whiteboard:
Keywords:
: 202559 204735 (view as bug list)
Depends on:
Blocks: 170390
  Show dependency tree
 
Reported: 2006-08-11 05:30 UTC by Thomas Hiller
Modified: 2008-01-07 12:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Hiller 2006-08-11 05:30:05 UTC
Please change the ebuild of gtk+-2.10.1 to allow compilation of gtk+ with directfb. I can only provide a simple fix, which is not the complete solution (I'm new to ebuilds). I'm using a cvs snapshot of DirectFB because of an unresolved symbol with 0.9.25.1.

diff -ur portage/x11-libs/gtk+/gtk+-2.10.1.ebuild gentoo_uclibc/usr/portage/x11-libs/gtk+/gtk+-2.10.1.ebuild
--- portage/x11-libs/gtk+/gtk+-2.10.1.ebuild	2006-07-26 18:36:21.000000000 +0200
+++ gentoo_uclibc/usr/portage/x11-libs/gtk+/gtk+-2.10.1.ebuild	2006-08-03 21:13:44.000000000 +0200
@@ -10,9 +10,9 @@
 LICENSE="LGPL-2"
 SLOT="2"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
-IUSE="debug doc jpeg tiff xinerama"
+IUSE="debug directfb doc jpeg tiff xinerama X"
 
-RDEPEND="|| ( (
+RDEPEND="X? ( || ( (
 			x11-libs/libXrender
 			x11-libs/libX11
 			x11-libs/libXi
@@ -22,7 +22,7 @@
 			x11-libs/libXrandr
 			x11-libs/libXfixes
 			xinerama? ( x11-libs/libXinerama ) )
-		virtual/x11 )
+		virtual/x11 ) )
 	>=dev-libs/glib-2.12.1
 	>=x11-libs/pango-1.12.0
 	>=dev-libs/atk-1.10.1
@@ -31,18 +31,19 @@
 	x11-misc/shared-mime-info
 	>=media-libs/libpng-1.2.1
 	jpeg? ( >=media-libs/jpeg-6b-r2 )
-	tiff? ( >=media-libs/tiff-3.5.7 )"
+	tiff? ( >=media-libs/tiff-3.5.7 )
+	directfb? ( >=dev-libs/DirectFB-0.9.26 )"
 
 DEPEND="${RDEPEND}
 	sys-devel/autoconf
 	>=dev-util/pkgconfig-0.9
 	=sys-devel/automake-1.7*
-	|| ( (
+	X? ( || ( (
 			x11-proto/xextproto
 			x11-proto/xproto
 			x11-proto/inputproto
 			x11-proto/xineramaproto )
-		virtual/x11 )
+		virtual/x11 ) )
 	doc? (
 		>=dev-util/gtk-doc-1.4
 		~app-text/docbook-xml-dtd-4.1.2 )"
@@ -50,14 +51,14 @@
 RESTRICT="confcache"
 
 
-pkg_setup() {
+#pkg_setup() {
 
-	if ! built_with_use x11-libs/cairo X pdf ; then
-		einfo "Please re-emerge x11-libs/cairo with the X and pdf USE flag set"
-		die "cairo needs the X and pdf flag set"
-	fi
+#	if ! built_with_use x11-libs/cairo X pdf ; then
+#		einfo "Please re-emerge x11-libs/cairo with the X and pdf USE flag set"
+#		die "cairo needs the X and pdf flag set"
+#	fi
 
-}
+#}
 
 set_gtk2_confdir() {
 	# An arch specific config directory is used on multilib systems
@@ -104,9 +105,16 @@
 		$(use_with jpeg libjpeg) \
 		$(use_with tiff libtiff) \
 		$(use_enable xinerama) \
-		--with-libpng \
+		--with-libpng" 
+	if use X; then
+		myconf="${myconf} \
 		--with-gdktarget=x11 \
 		--with-xinput"
+	fi
+	if use directfb; then
+		myconf="${myconf} \
+		--with-gdktarget=directfb"
+	fi
 
 	# Passing --disable-debug is not recommended for production use
 	use debug && myconf="${myconf} --enable-debug=yes"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-11 06:11:45 UTC
Don't restrict bugs without any reason. Just leave those checkboxes alone.
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2007-03-04 22:13:20 UTC
It seems no one actually misses directfb support in gentoo. I know I don't, it seeped its way into _every_ *.la file on my system and took me four days to get remove it.

@gnome-herd: can we close this bug and 143563 along ?

Thanks
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-03-05 16:37:36 UTC
I have zero desire to support directfb; it causes huge problems, in the form of circular deps (X doesn't; why does directfb?) so I vote for not supporting it.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2007-06-25 22:50:16 UTC
I have this in my developer overlay:
http://overlays.gentoo.org/dev/betelgeuse/browser/x11-libs/gtk%2B
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2007-07-08 14:01:36 UTC
closing wontfix. DirectFB support caused way too much trouble in the past. But please use Petteri's ebuild if you need it.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-12-17 14:34:43 UTC
*** Bug 202559 has been marked as a duplicate of this bug. ***
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2008-01-07 12:31:47 UTC
*** Bug 204735 has been marked as a duplicate of this bug. ***