svn commit: trunk/buildroot/package/libgtk2
Author: laird
Date: 2008-08-26 05:19:29 -0700 (Tue, 26 Aug 2008) New Revision: 23204
Log:
The changes below add better support for DirectFB and libgtk2. Should be no different for X builds.
Config.in | 3 +-- libgtk2.mk | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-)
package/libgtk2/Config.in
Allow DirectFB to turn on LIBGTK2 support without X being enabled. Disable autoselection of cups. May not be wanted (Can cause crosscompilation issues).
package/libgtk2/libgtk2.mk
Remove unnessary redefine of PKG_CONFIG_*
Pass $(DISABLE_LARGEFILE) to configure (supports large file or not) Move 'cups' to X extra dependencies instead of general.
Modified:
trunk/buildroot/package/libgtk2/Config.in
trunk/buildroot/package/libgtk2/libgtk2.mk
Changeset:
Modified: trunk/buildroot/package/libgtk2/Config.in
===================================================================
buildroot/package/libgtk2/Config.in +1 -2
@@ -2,14 +2,13 @@ bool "libgtk2" select BR2_PACKAGE_ATK select BR2_PACKAGE_CAIRO - select BR2_PACKAGE_CUPS select BR2_PACKAGE_JPEG select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_LIBPNG select BR2_PACKAGE_PANGO select BR2_PACKAGE_PKGCONFIG select BR2_PACKAGE_TIFF - depends on BR2_PACKAGE_XORG||BR2_PACKAGE_XORG7||BR2_PACKAGE_TINYX + depends on BR2_PACKAGE_XORG||BR2_PACKAGE_XORG7||BR2_PACKAGE_TINYX||BR2_PACKAGE_DIRECTFB help The GTK+ version 2 graphical user interface library
Modified: trunk/buildroot/package/libgtk2/libgtk2.mk
===================================================================
buildroot/package/libgtk2/libgtk2.mk +3 -4
@@ -92,8 +92,7 @@ --disable-glibtest \ --enable-explicit-deps=no \ --disable-debug \ - PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \ - PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \ + $(DISABLE_LARGEFILE) \ $(LIBGTK2_CONF_OPT_X) \ $(LIBGTK2_CONF_OPT_DFB)
@@ -109,11 +108,11 @@ --x-includes=$(STAGING_DIR)/usr/include/X11 \ --x-libraries=$(STAGING_DIR)/usr/lib \ --with-gdktarget=x11 - LIBGTK2_DEPENDENCIES_EXTRA = xlib_libXcomposite $(XSERVER) + LIBGTK2_DEPENDENCIES_EXTRA = xlib_libXcomposite $(XSERVER) cups else LIBGTK2_CONF_OPT += --without-x endif -LIBGTK2_DEPENDENCIES = uclibc pkgconfig png jpeg tiff $(LIBGTK2_DEPENDENCIES_EXTRA) libglib2 cups cairo pango atk +LIBGTK2_DEPENDENCIES = uclibc pkgconfig png jpeg tiff $(LIBGTK2_DEPENDENCIES_EXTRA) libglib2 cairo pango atk $(eval $(call AUTOTARGETS,package,libgtk2))
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"laird" == laird <[email protected]> writes:
laird> Author: laird
laird> Date: 2008-08-26 05:19:29 -0700 (Tue, 26 Aug 2008) laird> New Revision: 23204
Welcome!
laird> Log:
laird> The changes below add better support for DirectFB and libgtk2. laird> Should be no different for X builds.
Could you please check these things in seperately?
laird> Changeset:
laird> Modified: trunk/buildroot/package/libgtk2/Config.in laird> ===================================================================
laird> --- trunk/buildroot/package/libgtk2/Config.in 2008-08-26 01:32:33 UTC (rev 23203)
laird> +++ trunk/buildroot/package/libgtk2/Config.in 2008-08-26 12:19:29 UTC (rev 23204)
laird> @@ -2,14 +2,13 @@
laird> bool "libgtk2" laird> select BR2_PACKAGE_ATK laird> select BR2_PACKAGE_CAIRO
laird> - select BR2_PACKAGE_CUPS
Shouldn't that instead be something like:
select BR2_PACKAGE_CUPS if BR2_PACKAGE_XORG||BR2_PACKAGE_XORG7||BR2_PACKAGE_TINYX
Signature · 1 line
Bye, Peter Korsgaard
I will amend the Config.in to do as suggested:
Config.in
select CUPS if ......
and
libgtk2.mk
ifeq ($(BR2_PACKAGE_CUPS),y)
LIBGTK2_DEPENDENCIES_EXTRA = cups
endif
However this does raise the wider issue of what should be auto selected and what should be chosen
IMHO I feel CUPS is not a necessary thing for GTK??
Therefore why is it being autoselected for X builds.
If someone wants cups then they should select it in their configuration file.
Packages that compile differently due to the selection of another package could use something like:
ifeq ($(BR2_PACKAGE_CUPS),y)
........ (--enable-cups) or whatever
endif
This I think is far better than someone building X and GTK and finding their build fails because of cups. If they want it they should enable it.
Dan laird
Signature · 2 lines
View this message in context: http://www.nabble.com/svn-commit%3A-trunk-buildroot-package-libgtk2-tp19160871p19162136.html Sent from the BuildRoot mailing list archive at Nabble.com.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Daniel" == Daniel Laird <[email protected]> writes:
Daniel> I will amend the Config.in to do as suggested:
Daniel> Config.in
Daniel> select CUPS if ......
Thanks.
Daniel> However this does raise the wider issue of what should be Daniel> auto selected and what should be chosen IMHO I feel CUPS is Daniel> not a necessary thing for GTK?? Therefore why is it being Daniel> autoselected for X builds. If someone wants cups then they Daniel> should select it in their configuration file. Packages that Daniel> compile differently due to the selection of another package Daniel> could use something like:
Sorry, I have no idea why gtk wants to select cups. Ninevoltz added it in r21206.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 74 lines · laird at uclibc.org
Author: laird
Date: 2008-08-26 05:19:29 -0700 (Tue, 26 Aug 2008) New Revision: 23204Log:
The changes below add better support for DirectFB and libgtk2. Should be no different for X builds.Config.in | 3 +-- libgtk2.mk | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-)Signed-off-by daniel.j.laird at nxp.compackage/libgtk2/Config.in
Allow DirectFB to turn on LIBGTK2 support without X being enabled. Disable autoselection of cups. May not be wanted (Can cause crosscompilation issues).
package/libgtk2/libgtk2.mk
Remove unnessary redefine of PKG_CONFIG_*
Pass $(DISABLE_LARGEFILE) to configure (supports large file or not) Move 'cups' to X extra dependencies instead of general.Modified:
trunk/buildroot/package/libgtk2/Config.in
trunk/buildroot/package/libgtk2/libgtk2.mkChangeset:
Modified: trunk/buildroot/package/libgtk2/Config.in
===================================================================buildroot/package/libgtk2/Config.in +1
-2@@ -2,14 +2,13 @@ bool "libgtk2" select BR2_PACKAGE_ATK select BR2_PACKAGE_CAIRO - select BR2_PACKAGE_CUPS select BR2_PACKAGE_JPEG select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_LIBPNG select BR2_PACKAGE_PANGO select BR2_PACKAGE_PKGCONFIG select BR2_PACKAGE_TIFF - depends on BR2_PACKAGE_XORG||BR2_PACKAGE_XORG7||BR2_PACKAGE_TINYX + depends on BR2_PACKAGE_XORG||BR2_PACKAGE_XORG7||BR2_PACKAGE_TINYX||BR2_PACKAGE_DIRECTFB help The GTK+ version 2 graphical user interface libraryModified:
trunk/buildroot/package/libgtk2/libgtk2.mk
===================================================================buildroot/package/libgtk2/libgtk2.mk +1
-2@@ -92,8 +92,7 @@ --disable-glibtest \ --enable-explicit-deps=no \ --disable-debug \ - PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \ - PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \ + $(DISABLE_LARGEFILE) \ $(LIBGTK2_CONF_OPT_X) \ $(LIBGTK2_CONF_OPT_DFB)@@ -109,11 +108,11 @@ --x-includes=$(STAGING_DIR)/usr/include/X11 \ --x-libraries=$(STAGING_DIR)/usr/lib \ --with-gdktarget=x11
buildroot/package/libgtk2/libgtk2.mk line 118
Quoted 10 lines
buildroot/package/libgtk2/libgtk2.mk +2
-2- LIBGTK2_DEPENDENCIES_EXTRA = xlib_libXcomposite $(XSERVER) + LIBGTK2_DEPENDENCIES_EXTRA = xlib_libXcomposite $(XSERVER) cups else LIBGTK2_CONF_OPT += --without-x endif -LIBGTK2_DEPENDENCIES = uclibc pkgconfig png jpeg tiff $(LIBGTK2_DEPENDENCIES_EXTRA) libglib2 cups cairo pango atk +LIBGTK2_DEPENDENCIES = uclibc pkgconfig png jpeg tiff $(LIBGTK2_DEPENDENCIES_EXTRA) libglib2 cairo pango atk $(eval $(call AUTOTARGETS,package,libgtk2))
I also had to up the version to 2.12.11 to get a correct build.
__
Ormund
Quoted 20 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"laird" == laird <[email protected]> writes:
laird> Author: laird
laird> Date: 2008-08-26 05:19:29 -0700 (Tue, 26 Aug 2008) laird> New Revision: 23204Welcome!
laird> Log:
laird> The changes below add better support for DirectFB and libgtk2. laird> Should be no different for X builds.Could you please check these things in seperately?
laird> Changeset:
laird> Modified: trunk/buildroot/package/libgtk2/Config.in laird> ===================================================================
laird> --- trunk/buildroot/package/libgtk2/Config.in 2008-08-26 01:32:33 UTC (rev 23203)
laird> +++ trunk/buildroot/package/libgtk2/Config.in 2008-08-26 12:19:29 UTC (rev 23204)
laird> @@ -2,14 +2,13 @@
Quoted 8 lines
laird> bool "libgtk2" laird> select BR2_PACKAGE_ATK laird> select BR2_PACKAGE_CAIROlaird> - select
BR2_PACKAGE_CUPSShouldn't that instead be something like:
select
BR2_PACKAGE_CUPSif BR2_PACKAGE_XORG||BR2_PACKAGE_XORG7||BR2_PACKAGE_TINYX
This was recently changed (for the bad, imho).
Previously, we had a "choice" for either of
XSERVER_none
XSERVER_xorg7
XSERVER_tinyx
XSERVER_xggi
With this scheme, you could quickly distinguish if and if yes then which xserver was selected:
depends on !BR2_XSERVER_none
to depend on any xserver etc.
Peter, was it you who changed this xserver choice? What was the rationale?
Quoted 5 lines · Ormund Williams
I also had to up the version to 2.12.11 to get a correct build. __
Ormund
The version bump was coming later.
I currently use 2.12.9 and it all works well with DirectFB.
The problem is I never run X so version bumping something as big as GTK is a bit scary. (I Imagine lots of very cross buildroot users if I break it!) So I opted for first getting GTK to appear as an option when DirectFB was selected!
Signature · 2 lines
View this message in context: http://www.nabble.com/svn-commit%3A-trunk-buildroot-package-libgtk2-tp19160871p19162440.html Sent from the BuildRoot mailing list archive at Nabble.com.
Quoted 2 lines · Peter Korsgaard
Sorry, I have no idea why gtk wants to select cups. Ninevoltz added it in r21206.
doesn't make sense to me, fwiw.
Quoted 11 lines · Daniel Laird
I will amend the Config.in to do as suggested:
Config.in
select CUPS if ......and
libgtk2.mk
ifeq ($(BR2_PACKAGE_CUPS),y)
LIBGTK2_DEPENDENCIES_EXTRA= cups
endif
LIBGTK2_DEPENDENCIES_EXTRA += $(if $(BR2_PACKAGE_CUPS),cups)
Quoted 10 lines
However this does raise the wider issue of what should be auto selected and what should be chosen
IMHO I feel CUPS is not a necessary thing for GTK??
Therefore why is it being autoselected for X builds.
If someone wants cups then they should select it in their configuration file.
Packages that compile differently due to the selection of another package could use something like:
Quoted 6 lines
ifeq ($(BR2_PACKAGE_CUPS),y)
........ (--enable-cups) or whateverendif
This I think is far better than someone building X and GTK and finding their build fails because of cups. If they want it they should enable it.
Exactly. selecting cruft behind the scenes is almost always the wrong thing to do.
We did not do this until recently, when e.g. Ulf started to add gazillions of (imho unwarranted) select's.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Reutner-Fischer <[email protected]> writes:
Hi,
Bernhard> This was recently changed (for the bad, imho). Bernhard> Previously, we had a "choice" for either of
Bernhard> XSERVER_none Bernhard> XSERVER_xorg7 Bernhard> XSERVER_tinyx Bernhard> XSERVER_xggi
The xggi selecton should btw probably go as it doesn't exist.
Bernhard> With this scheme, you could quickly distinguish if and if yes then which Bernhard> xserver was selected:
Bernhard> depends on !BR2_XSERVER_none
Bernhard> to depend on any xserver etc.
Bernhard> Peter, was it you who changed this xserver choice? What was Bernhard> the rationale?
Well, kinda:
r22565:
Author: jacmet <jacmet@69ca8d6d-28ef-0310-b511-8ec308f3f277> Date: Mon Jun 30 12:55:29 2008 +0000
packages: fix xorg to compile modular and tiny versions
Based on googlecode r558 by John Voltz.
I have no problems reverting that hunk. I simply kept it as it was in googlecode to make it easier to sync later.
Signature · 1 line
Bye, Peter Korsgaard
Quoted 7 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Reutner-Fischer <[email protected]> writes:
Hi,
Bernhard> This was recently changed (for the bad, imho). Bernhard> Previously, we had a "choice" for either of
Quoted 6 lines
Bernhard> XSERVER_none Bernhard> XSERVER_xorg7 Bernhard> XSERVER_tinyx Bernhard> XSERVER_xggiThe xggi selecton should btw probably go as it doesn't exist.
Looks like i never applied libgg, libgii, libggi and xggi packages. My bad. So yes, the last can be removed for now.
Quoted 16 lines
Bernhard> With this scheme, you could quickly distinguish if and if yes then which Bernhard> xserver was selected:
Bernhard> depends on !BR2_XSERVER_none
Bernhard> to depend on any xserver etc.Bernhard> Peter, was it you who changed this xserver choice? What was Bernhard> the rationale?
Well, kinda:
r22565:
Author: jacmet <jacmet@69ca8d6d-28ef-0310-b511-8ec308f3f277> Date: Mon Jun 30 12:55:29 2008 +0000
Quoted 6 lines
packages: fix xorg to compile modular and tiny versions
Based on googlecode r558 by John Voltz.
I have no problems reverting that hunk. I simply kept it as it was in googlecode to make it easier to sync later.
Of course i don't care, just wanted to give you a hint on why there was such a choice.
If there is a superiour clean way to express this choice, then fine. I'm not convinced that the method that is currently in svn actually _is_ superiour, though (since i don't know what it tried to fix).
I am more than happy to remove cups from the dependencies and the select in Config.in
However I will wait to see if 'ninevoltz' has any thoughts.
If I hear nothing (give a few days) then I will tidy this up as I 100% agree that we should have as few dependencies and selects as possible and only add dependencies if packages have been chosen by users and the configure args would change as a result.
Dan
Signature · 2 lines
View this message in context: http://www.nabble.com/svn-commit%3A-trunk-buildroot-package-libgtk2-tp19160871p19162907.html Sent from the BuildRoot mailing list archive at Nabble.com.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernhard" == Bernhard Reutner-Fischer <[email protected]> writes:
Hi,
Bernhard> Exactly. selecting cruft behind the scenes is almost always the wrong Bernhard> thing to do.
Bernhard> We did not do this until recently, when e.g. Ulf started to add Bernhard> gazillions of (imho unwarranted) select's.
Well, selects are imho good for real dependencies instead of those comments we used to have (foo depends on bar) - But it shoudl ofcause only be used for required dependencies.
Signature · 1 line
Bye, Peter Korsgaard