Skip to contentSkip to conversation

Pull request for branch for-2010.11/gtk-bump

GIT PULL New Thomas Petazzoni 2 participants 14 messages Oct 23, 2010 – Oct 29, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

Here is a stack of patches that gathers:

* libtool fixes from Martin Banky
* libtool bump from Lionel Landwerlin
* glib/gtk bump from myself

I've successfully built and tested the gtk-demo application with both the X.org and DirectFB backends, using a uClibc Buildroot ARM toolchain.

Regards,

Thomas

The following changes since commit 2b721e9c11fae9bd3a836da19d679949e0788283:
Peter Korsgaard (1):
toolchain-crosstool-ng: fix arch for powerpc

are available in the git repository at:

git://git.busybox.net/~tpetazzoni/git/buildroot for-2010.11/gtk-bump

Lionel Landwerlin (2):
libtool: bump to 2.2.10
libtool: avoid to patch ltmain.sh script in host-libtool package

Martin Banky (5):
BugFix - buildroot-libtool.patch - Removed Useless Code Added the ability to patch ltmain.sh based on version Removed expat-libdir-la.patch
Removed freetype-2.3.9-libdir-la.patch Removed libmpd-0.17.0-libdir-la.patch

Thomas Petazzoni (5):
package: add gdk-pixbuf package (splitted out from GTK+)
libgtk2: bump to version 2.22.0 and undeprecate Gtk/DirectFB
libglib2: bump version to 2.26.0
pango: bump version to 1.28.2
libglib2: remove fix-clock-gettime patch

 package/Config.in                                  |    1 +
 package/Makefile.autotools.in                      |   23 ++-
 ...-libtool.patch => buildroot-libtool-v1.5.patch} |   17 --
 ...ibdir-la.patch => buildroot-libtool-v2.2.patch} |   53 +---
 package/expat/expat-libdir-la.patch                |   77 ------
 package/expat/expat.mk                             |    1 -
 package/freetype/freetype-2.3.9-libdir-la.patch    |   81 ------
 package/freetype/freetype.mk                       |    1 -
 package/gdk-pixbuf/Config.in                       |   12 +
 package/gdk-pixbuf/gdk-pixbuf.mk                   |   51 ++++
 .../libglib2-fix-clock-gettime-check.patch         |   51 ----
 package/libglib2/libglib2-mkenums-nowarn.patch     |   14 +-
 package/libglib2/libglib2-optional-ipv6.patch      |   12 +-
 package/libglib2/libglib2.mk                       |    5 +-
 package/libgtk2/Config.in                          |    9 +-
 ... host-libgtk2-2.20.1-reduce-dependencies.patch} |  140 ++++-------
 package/libgtk2/libgtk2-2.12.6-configure.patch     |  256 --------------------
 package/libgtk2/libgtk2-2.12.6-no-tests.patch      |   11 -
 package/libgtk2/libgtk2.mk                         |   15 +-
 package/libtool/libtool.mk                         |    4 +-
 package/multimedia/libmpd/libmpd.mk                |    1 -
 package/pango/pango.mk                             |    2 +-
 22 files changed, 178 insertions(+), 659 deletions(-)
 rename package/{buildroot-libtool.patch => buildroot-libtool-v1.5.patch} (81%)
 rename package/{multimedia/libmpd/libmpd-0.17.0-libdir-la.patch => buildroot-libtool-v2.2.patch} (56%)
 delete mode 100644 package/expat/expat-libdir-la.patch
 delete mode 100644 package/freetype/freetype-2.3.9-libdir-la.patch
 create mode 100644 package/gdk-pixbuf/Config.in
 create mode 100644 package/gdk-pixbuf/gdk-pixbuf.mk
 delete mode 100644 package/libglib2/libglib2-fix-clock-gettime-check.patch
 rename package/libgtk2/{host-libgtk2-2.12.12-reduce-dependencies.patch => host-libgtk2-2.20.1-reduce-dependencies.patch} (50%)
 delete mode 100644 package/libgtk2/libgtk2-2.12.6-configure.patch
 delete mode 100644 package/libgtk2/libgtk2-2.12.6-no-tests.patch

Thanks,

Signature · 1 line
Thomas Petazzoni
#1 lore raw

PATCH 1/12 BugFix - buildroot-libtool.patch - Removed Useless Code

From: Martin Banky <[email protected]>

The code that was removed only added commented out code. It neither added needed code nor commented out existing code.

---
 package/buildroot-libtool.patch |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
package/buildroot-libtool.patch +0 -17
index 277719d..57a7c58 100644
@@ -38,23 +38,6 @@
  	  fi
  	  # This is a shared library
  
-@@ -2889,6 +2896,16 @@ EOF
- 		esac
- 		if grep "^installed=no" $deplib > /dev/null; then
- 		  path="$absdir/$objdir"
-+#		This interferes with crosscompilation. -CL
-+#		else
-+#		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
-+#		  if test -z "$libdir"; then
-+#		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
-+#		    exit 1
-+#		  fi
-+#		  if test "$absdir" != "$libdir"; then
-+#		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
-+#		  fi
- 		else
- 		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- 		  if test -z "$libdir"; then
 @@ -5606,6 +5623,10 @@ fi\
  	    # Replace all uninstalled libtool libraries with the installed ones
  	    newdependency_libs=
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 2/12 Added the ability to patch ltmain.sh based on version

In reply to Thomas Petazzoni

From: Martin Banky <[email protected]>

There are two versions of ltmain.sh in use in the buildroot system, 1.5.x and 2.2.x. buildroot-libtool.patch would only patch 1.5.x, which meant that for 2.2.x, a separate patch for the affected package had to be maintained. Modified Makefile.autotools.in to check the version of ltmain.sh and apply the correct patch.

---
 package/Makefile.autotools.in                      |   23 +++++--
 ...-libtool.patch => buildroot-libtool-v1.5.patch} |    0
 ...-libtool.patch => buildroot-libtool-v2.2.patch} |   77 +++++++++-----------
 3 files changed, 53 insertions(+), 47 deletions(-)
 copy package/{buildroot-libtool.patch => buildroot-libtool-v1.5.patch} (100%)
 rename package/{buildroot-libtool.patch => buildroot-libtool-v2.2.patch} (51%)
package/Makefile.autotools.in +17 -6
index 589079b..87c3092 100644
@@ -139,10 +139,16 @@ $(2)_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
 #
 define LIBTOOL_PATCH_HOOK
 	@$(call MESSAGE,"Patching libtool")
-	$(Q)if test "$$($$(PKG)_LIBTOOL_PATCH)" = "YES" -a \
-	"$$($$(PKG)_AUTORECONF)" != "YES"; then \
-	for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \
-		toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool.patch; \
+	$(Q)if test "$$($$(PKG)_LIBTOOL_PATCH)" = "YES" \
+		-a "$$($$(PKG)_AUTORECONF)" != "YES"; then \
+		for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \
+			ltmain_version=`sed -n '/^[ 	]*VERSION=/{s/^[ 	]*VERSION=//;p;q;}' $$$$i | \
+			sed -e 's/\([0-9].[0-9]*\).*/\1/' -e 's/\"//'`; \
+			if test $$$${ltmain_version} = '1.5'; then \
+				toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v1.5.patch; \
+			elif test $$$${ltmain_version} = "2.2"; then\
+				toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v2.2.patch; \
+			fi \
 		done \
 	fi
 endef
@@ -158,9 +164,14 @@ endif
 define AUTORECONF_HOOK
 	@$(call MESSAGE,"Autoreconfiguring")
 	$(Q)cd $$($$(PKG)_SRCDIR) && $(AUTORECONF) $$($$(PKG)_AUTORECONF_OPT)
-	$(Q)if test "$($$(PKG)_LIBTOOL_PATCH)" = "YES"; then \
+	$(Q)if test "$$($$(PKG)_LIBTOOL_PATCH)" = "YES"; then \
 		for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \
-		toolchain/patch-kernel.sh $${i%/*} package buildroot-libtool.patch; \
+			ltmain_version=`sed -n '/^[ 	]*VERSION=/{s/^[ 	]*VERSION=//;p;q;}' $$$$i | sed 's/\([0-9].[0-9]*\).*/\1/'`; \
+			if test $$$${ltmain_version} = "1.5"; then \
+				toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v1.5.patch; \
+			elif test $$$${ltmain_version} = "2.2"; then\
+				toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v2.2.patch; \
+			fi \
 		done \
 	fi
 endef
package/buildroot-libtool-v1.5.patch renamed from package/buildroot-libtool.patch +0 -0
similarity index 100%
copy from package/buildroot-libtool.patch
copy to package/buildroot-libtool-v1.5.patch
package/buildroot-libtool-v2.2.patch renamed from package/buildroot-libtool.patch +36 -41

92 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#3 lore raw

PATCH 3/12 Removed expat-libdir-la.patch

In reply to Thomas Petazzoni

From: Martin Banky <[email protected]>

Now that expat.mk has been converted to autotools infrastructure, the patch is no longer needed. Autotools will automatically apply the needed patch.

---
 package/expat/expat-libdir-la.patch |   77 -----------------------------------
 package/expat/expat.mk              |    1 -
 2 files changed, 0 insertions(+), 78 deletions(-)
 delete mode 100644 package/expat/expat-libdir-la.patch
package/expat/expat-libdir-la.patch deleted +0 -77
deleted file mode 100644
index 1c8930e..0000000
@@ -1,77 +0,0 @@
---- expat-2.0.0/conftools/ltmain.sh.orig	2007-01-13 14:39:51.000000000 -0700
-+++ expat-2.0.0/conftools/ltmain.sh	2007-01-13 14:39:56.000000000 -0700
-@@ -273,8 +273,9 @@
- 	# line option must be used.
- 	if test -z "$tagname"; then
- 	  $echo "$modename: unable to infer tagged configuration"
--	  $echo "$modename: specify a tag with \`--tag'" 1>&2
--	  exit $EXIT_FAILURE
-+	  $echo "$modename: defaulting to \`CC'"
-+	  $echo "$modename: if this is not correct, specify a tag with \`--tag'"
-+#	  exit $EXIT_FAILURE
- #        else
- #          $echo "$modename: using $tagname tagged configuration"
- 	fi
-@@ -2404,8 +2405,14 @@
- 	    absdir="$abs_ladir"
- 	    libdir="$abs_ladir"
- 	  else
--	    dir="$libdir"
--	    absdir="$libdir"
-+            # Adding 'libdir' from the .la file to our library search paths
-+            # breaks crosscompilation horribly.  We cheat here and don't add
-+            # it, instead adding the path where we found the .la.  -CL
-+	    dir="$abs_ladir"
-+	    absdir="$abs_ladir"
-+	    libdir="$abs_ladir"
-+	    #dir="$libdir"
-+	    #absdir="$libdir"
- 	  fi
- 	  test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
- 	else
-@@ -2886,6 +2893,16 @@
- 		esac
- 		if grep "^installed=no" $deplib > /dev/null; then
- 		  path="$absdir/$objdir"
-+#		This interferes with crosscompilation. -CL
-+#		else
-+#		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
-+#		  if test -z "$libdir"; then
-+#		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
-+#		    exit 1
-+#		  fi
-+#		  if test "$absdir" != "$libdir"; then
-+#		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
-+#		  fi
- 		else
- 		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- 		  if test -z "$libdir"; then
-@@ -5598,6 +5615,10 @@
- 	    # Replace all uninstalled libtool libraries with the installed ones
- 	    newdependency_libs=
- 	    for deplib in $dependency_libs; do
-+              # Replacing uninstalled with installed can easily break crosscompilation,
-+              # since the installed path is generally the wrong architecture.  -CL
-+              newdependency_libs="$newdependency_libs $deplib"
-+              continue
- 	      case $deplib in
- 	      *.la)
- 		name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
-@@ -5919,10 +5940,13 @@
- 	  # At present, this check doesn't affect windows .dll's that
- 	  # are installed into $libdir/../bin (currently, that works fine)
- 	  # but it's something to keep an eye on.
--	  if test "$inst_prefix_dir" = "$destdir"; then
--	    $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
--	    exit $EXIT_FAILURE
--	  fi
-+	  #
-+	  # This breaks install into our staging area.  -PB
-+	  # 
-+	  # if test "$inst_prefix_dir" = "$destdir"; then
-+	  #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
-+	  #   exit $EXIT_FAILURE
-+	  # fi
- 
- 	  if test -n "$inst_prefix_dir"; then
- 	    # Stick the inst_prefix_dir data into the link command.
package/expat/expat.mk +0 -1
index f82a904..03b1303 100644
@@ -7,7 +7,6 @@
 EXPAT_VERSION = 2.0.1
 EXPAT_SOURCE = expat-$(EXPAT_VERSION).tar.gz
 EXPAT_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/expat
-EXPAT_LIBTOOL_PATCH = NO
 EXPAT_INSTALL_STAGING = YES
 EXPAT_INSTALL_TARGET = YES
 EXPAT_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) installlib
Signature · 1 line
1.7.0.4
#4 lore raw

PATCH 4/12 Removed freetype-2.3.9-libdir-la.patch

In reply to Thomas Petazzoni

From: Martin Banky <[email protected]>

Now that freetype.mk has been converted to autotools infrastructure, the patch is no longer needed. Autotools will automatically apply the needed patch.

---
 package/freetype/freetype-2.3.9-libdir-la.patch |   81 -----------------------
 package/freetype/freetype.mk                    |    1 -
 2 files changed, 0 insertions(+), 82 deletions(-)
 delete mode 100644 package/freetype/freetype-2.3.9-libdir-la.patch
package/freetype/freetype-2.3.9-libdir-la.patch deleted +0 -81
deleted file mode 100644
index 76287ef..0000000
@@ -1,81 +0,0 @@
-diff -urN freetype-2.3.7.orig/builds/unix/ltmain.sh freetype-2.3.7/builds/unix/ltmain.sh
---- freetype-2.3.7.orig/builds/unix/ltmain.sh	2008-09-16 15:55:36.000000000 +0100
-+++ freetype-2.3.7/builds/unix/ltmain.sh	2008-09-22 09:18:36.000000000 +0100
-@@ -1047,8 +1047,9 @@
- 	# was found and let the user know that the "--tag" command
- 	# line option must be used.
- 	if test -z "$tagname"; then
--	  func_echo "unable to infer tagged configuration"
--	  func_fatal_error "specify a tag with \`--tag'"
-+          func_echo "unable to infer tagged configuration"
-+	  func_echo "$modename: defaulting to \`CC'"
-+	  func_echo "$modename: if this is not correct, specify a tag with \`--tag'"
- #	else
- #	  func_verbose "using $tagname tagged configuration"
- 	fi
-@@ -2017,8 +2018,11 @@
- 	  # At present, this check doesn't affect windows .dll's that
- 	  # are installed into $libdir/../bin (currently, that works fine)
- 	  # but it's something to keep an eye on.
--	  test "$inst_prefix_dir" = "$destdir" && \
--	    func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
-+	  #
-+	  # This breaks install into our staging area.  -PB
-+	  #
-+	  #test "$inst_prefix_dir" = "$destdir" && \
-+	  #  func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
- 
- 	  if test -n "$inst_prefix_dir"; then
- 	    # Stick the inst_prefix_dir data into the link command.
-@@ -4885,8 +4889,14 @@
- 	    absdir="$abs_ladir"
- 	    libdir="$abs_ladir"
- 	  else
--	    dir="$libdir"
--	    absdir="$libdir"
-+            # Adding 'libdir' from the .la file to our library search paths
-+            # breaks crosscompilation horribly.  We cheat here and don't add
-+            # it, instead adding the path where we found the .la.  -CL
-+	    dir="$abs_ladir"
-+	    absdir="$abs_ladir"
-+	    libdir="$abs_ladir"
-+	    #dir="$libdir"
-+	    #absdir="$libdir"
- 	  fi
- 	  test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
- 	else
-@@ -5408,13 +5418,16 @@
- 		  ;;
- 		esac
- 		else
--		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
--		  test -z "$libdir" && \
--		    func_fatal_error "\`$deplib' is not a valid libtool archive"
--		  test "$absdir" != "$libdir" && \
--		    func_warning "\`$deplib' seems to be moved"
--
--		  path="-L$absdir"
-+#       	  This interferes with crosscompilation. -CL
-+#		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
-+#		  test -z "$libdir" && \
-+#		    func_fatal_error "\`$deplib' is not a valid libtool archive"
-+#		  test "$absdir" != "$libdir" && \
-+#		    func_warning "\`$deplib' seems to be moved"
-+#
-+#		  path="-L$absdir"
-+        	  path="-L$absdir/$objdir"
-+        	  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
- 		fi
- 		;;
- 	      esac
-@@ -7520,6 +7533,10 @@
- 	    # Replace all uninstalled libtool libraries with the installed ones
- 	    newdependency_libs=
- 	    for deplib in $dependency_libs; do
-+              # Replacing uninstalled with installed can easily break crosscompilation,
-+              # since the installed path is generally the wrong architecture.  -CL
-+              newdependency_libs="$newdependency_libs $deplib"
-+              continue
- 	      case $deplib in
- 	      *.la)
- 		func_basename "$deplib"
package/freetype/freetype.mk +0 -1
index a2df1d8..c7e5c32 100644
@@ -6,7 +6,6 @@
 FREETYPE_VERSION = 2.3.12
 FREETYPE_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/freetype
 FREETYPE_SOURCE = freetype-$(FREETYPE_VERSION).tar.bz2
-FREETYPE_LIBTOOL_PATCH = NO
 FREETYPE_INSTALL_STAGING = YES
 FREETYPE_INSTALL_TARGET = YES
 FREETYPE_MAKE_OPT = CCexe="$(HOSTCC)"
Signature · 1 line
1.7.0.4
#5 lore raw

PATCH 5/12 Removed libmpd-0.17.0-libdir-la.patch

In reply to Thomas Petazzoni

From: Martin Banky <[email protected]>

Now that libmpd.mk has been converted to autotools infrastructure, the patch is no longer needed. Autotools will automatically apply the needed patch.

---
 .../libmpd/libmpd-0.17.0-libdir-la.patch           |   89 --------------------
 package/multimedia/libmpd/libmpd.mk                |    1 -
 2 files changed, 0 insertions(+), 90 deletions(-)
 delete mode 100644 package/multimedia/libmpd/libmpd-0.17.0-libdir-la.patch
package/multimedia/libmpd/libmpd-0.17.0-libdir-la.patch deleted +0 -89
deleted file mode 100644
index 561a338..0000000
@@ -1,89 +0,0 @@
----
- ltmain.sh |   39 +++++++++++++++++++++++++++++++++------
- 1 file changed, 33 insertions(+), 6 deletions(-)
-
-Index: libmpd-0.17.0/ltmain.sh
-===================================================================
---- libmpd-0.17.0.orig/ltmain.sh
-+++ libmpd-0.17.0/ltmain.sh
-@@ -1056,7 +1056,9 @@
- 	# line option must be used.
- 	if test -z "$tagname"; then
- 	  func_echo "unable to infer tagged configuration"
--	  func_fatal_error "specify a tag with \`--tag'"
-+	  $echo "$modename: defaulting to \`CC'"
-+	  $echo "$modename: if this is not correct, specify a tag with \`--tag'"
-+#	  func_fatal_error "specify a tag with \`--tag'"
- #	else
- #	  func_verbose "using $tagname tagged configuration"
- 	fi
-@@ -2025,8 +2027,13 @@
- 	  # At present, this check doesn't affect windows .dll's that
- 	  # are installed into $libdir/../bin (currently, that works fine)
- 	  # but it's something to keep an eye on.
--	  test "$inst_prefix_dir" = "$destdir" && \
--	    func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
-+	  #
-+	  # This breaks install into our staging area.  -PB
-+	  # 
-+	  # if test "$inst_prefix_dir" = "$destdir"; then
-+	  #   $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
-+	  #   exit $EXIT_FAILURE
-+	  # fi
- 
- 	  if test -n "$inst_prefix_dir"; then
- 	    # Stick the inst_prefix_dir data into the link command.
-@@ -5419,8 +5426,14 @@
- 	    absdir="$abs_ladir"
- 	    libdir="$abs_ladir"
- 	  else
--	    dir="$libdir"
--	    absdir="$libdir"
-+            # Adding 'libdir' from the .la file to our library search paths
-+            # breaks crosscompilation horribly.  We cheat here and don't add
-+            # it, instead adding the path where we found the .la.  -CL
-+	    dir="$abs_ladir"
-+	    absdir="$abs_ladir"
-+	    libdir="$abs_ladir"
-+	    #dir="$libdir"
-+	    #absdir="$libdir"
- 	  fi
- 	  test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
- 	else
-@@ -5571,7 +5584,7 @@
- 	  *)
- 	    if test "$installed" = no; then
- 	      notinst_deplibs="$notinst_deplibs $lib"
--	      need_relink=yes
-+	      need_relink=no
- 	    fi
- 	    ;;
- 	  esac
-@@ -5901,6 +5914,16 @@
- 	    # Add the search paths of all dependency libraries
- 	    for deplib in $dependency_libs; do
- 	      case $deplib in
-+#		This interferes with crosscompilation. -CL
-+#		else
-+#		  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
-+#		  if test -z "$libdir"; then
-+#		    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
-+#		    exit 1
-+#		  fi
-+#		  if test "$absdir" != "$libdir"; then
-+#		    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
-+#		  fi
- 	      -L*) path="$deplib" ;;
- 	      *.la)
- 	        func_dirname "$deplib" "" "."
-@@ -8059,6 +8082,10 @@
- 	    # Replace all uninstalled libtool libraries with the installed ones
- 	    newdependency_libs=
- 	    for deplib in $dependency_libs; do
-+              # Replacing uninstalled with installed can easily break crosscompilation,
-+              # since the installed path is generally the wrong architecture.  -CL
-+              newdependency_libs="$newdependency_libs $deplib"
-+              continue
- 	      case $deplib in
- 	      *.la)
- 		func_basename "$deplib"
package/multimedia/libmpd/libmpd.mk +0 -1
index 327f61a..47a802a 100644
@@ -7,7 +7,6 @@ LIBMPD_VERSION = 0.17.0
 LIBMPD_SOURCE = libmpd-$(LIBMPD_VERSION).tar.gz
 LIBMPD_SITE = http://download.sarine.nl/download/Programs/gmpc/$(LIBMPD_VERSION)/
 LIBMPD_INSTALL_STAGING = YES
-LIBMPD_LIBTOOL_PATCH = NO
 LIBMPD_DEPENDENCIES = libglib2
 
 $(eval $(call AUTOTARGETS,package/multimedia,libmpd))
Signature · 1 line
1.7.0.4
#6 lore raw

PATCH 6/12 libtool: bump to 2.2.10

In reply to Thomas Petazzoni

From: Lionel Landwerlin <[email protected]>

---
 package/libtool/libtool.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/libtool/libtool.mk +1 -1
index a996876..b57bca9 100644
@@ -3,7 +3,7 @@
 # libtool
 #
 #############################################################
-LIBTOOL_VERSION = 1.5.24
+LIBTOOL_VERSION = 2.2.10
 LIBTOOL_SOURCE = libtool-$(LIBTOOL_VERSION).tar.gz
 LIBTOOL_SITE = $(BR2_GNU_MIRROR)/libtool
 
Signature · 1 line
1.7.0.4
#7 lore raw

PATCH 7/12 libtool: avoid to patch ltmain.sh script in host-libtool package

In reply to Thomas Petazzoni

From: Lionel Landwerlin <[email protected]>

---
 package/libtool/libtool.mk |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
package/libtool/libtool.mk +2 -0
index b57bca9..60fee9f 100644
@@ -16,6 +16,8 @@ endef
 
 HOST_LIBTOOL_POST_INSTALL_HOOKS += HOST_LIBTOOL_CUSTOM_INSTALL
 
+HOST_LIBTOOL_LIBTOOL_PATCH = NO
+
 $(eval $(call AUTOTARGETS,package,libtool))
 $(eval $(call AUTOTARGETS,package,libtool,host))
 
Signature · 1 line
1.7.0.4
#8 lore raw

PATCH 8/12 package: add gdk-pixbuf package (splitted out from GTK+)

In reply to Thomas Petazzoni
---
 package/Config.in                |    1 +
 package/gdk-pixbuf/Config.in     |   12 +++++++++
 package/gdk-pixbuf/gdk-pixbuf.mk |   51 ++++++++++++++++++++++++++++++++++++++
 package/libgtk2/Config.in        |    1 +
 package/libgtk2/libgtk2.mk       |    6 +---
 5 files changed, 67 insertions(+), 4 deletions(-)
 create mode 100644 package/gdk-pixbuf/Config.in
 create mode 100644 package/gdk-pixbuf/gdk-pixbuf.mk
package/Config.in +1 -0
index 3b6cd19..3693603 100644
@@ -264,6 +264,7 @@ source "package/libart/Config.in"
 source "package/libdrm/Config.in"
 source "package/libgail/Config.in"
 source "package/libglade/Config.in"
+source "package/gdk-pixbuf/Config.in"
 source "package/libgtk2/Config.in"
 source "package/libpng/Config.in"
 source "package/librsvg/Config.in"
package/gdk-pixbuf/Config.in new file +12 -0
new file mode 100644
index 0000000..384f076
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_GDK_PIXBUF
+	bool "gdk-pixbuf"
+	depends on BR2_USE_WCHAR # glib2
+	select BR2_PACKAGE_LIBGLIB2
+	select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
+	select BR2_PACKAGE_LIBINTL if BR2_NEEDS_GETTEXT
+	help
+
+	  Gdk-Pixbuf is an image loader and scaler. It uses GObject
+	  and the GLib, to integrate well with GNOME applications.
+
+	  http://www.gtk.org/
package/gdk-pixbuf/gdk-pixbuf.mk new file +51 -0

51 lines not on this page · raw message

package/libgtk2/Config.in +1 -0
index bc4ca9d..bb01bef 100644
@@ -6,6 +6,7 @@ config BR2_PACKAGE_LIBGTK2
 	select BR2_PACKAGE_CAIRO_PDF
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_PANGO
+	select BR2_PACKAGE_GDK_PIXBUF
 	# libgtk2 on DirectFB is deprecated because it is no longer
 	# supported in recent versions of Gtk. We will remove support
 	# for Gtk over DirectFB in the next Buildroot version unless
package/libgtk2/libgtk2.mk +2 -4
index d669622..d6f2324 100644
@@ -72,7 +72,7 @@ LIBGTK2_CONF_OPT = --enable-shared \
 		--enable-explicit-deps=no \
 		--disable-debug
 
-LIBGTK2_DEPENDENCIES = host-pkg-config host-libgtk2 libglib2 cairo pango atk
+LIBGTK2_DEPENDENCIES = host-pkg-config host-libgtk2 libglib2 cairo pango atk gdk-pixbuf
 
 ifeq ($(BR2_PACKAGE_DIRECTFB),y)
 	LIBGTK2_CONF_OPT += --with-gdktarget=directfb
@@ -133,7 +133,7 @@ LIBGTK2_POST_INSTALL_TARGET_HOOKS += LIBGTK_POST_INSTALL_TWEAKS
 # gtk-update-icon-cache, which are the host tools needed to build Gtk
 # for the target.
 
-HOST_LIBGTK2_DEPENDENCIES = host-libglib2 host-libpng
+HOST_LIBGTK2_DEPENDENCIES = host-libglib2 host-libpng host-gdk-pixbuf
 HOST_LIBGTK2_AUTORECONF = YES
 HOST_LIBGTK2_CONF_OPT = \
 		--disable-static \
@@ -151,12 +151,10 @@ endef
 HOST_LIBGTK2_POST_PATCH_HOOKS += HOST_LIBGTK2_PATCH_REDUCE_DEPENDENCIES_HOOK
 
 define HOST_LIBGTK2_BUILD_CMDS
- $(HOST_MAKE_ENV) make -C $(@D)/gdk-pixbuf
  $(HOST_MAKE_ENV) make -C $(@D)/gtk gtk-update-icon-cache
 endef
 
 define HOST_LIBGTK2_INSTALL_CMDS
- $(HOST_MAKE_ENV) make -C $(@D)/gdk-pixbuf install
  cp $(@D)/gtk/gtk-update-icon-cache $(HOST_DIR)/usr/bin
 endef
 
Signature · 1 line
1.7.0.4
#9 lore raw

PATCH 9/12 libgtk2: bump to version 2.22.0 and undeprecate Gtk/DirectFB

In reply to Thomas Petazzoni

Finally, we bump Gtk from the old and ancient 2.12 version to the latest 2.22.0 version currently available.

The DirectFB support is Gtk 2.22 compiles again thanks to the work of Lionel Landwerlin (it was broken in every Gtk version between 2.12 and 2.20). Therefore, Gtk on DirectFB is no longer marked as deprecated.

In addition to this, we :

* Upgrade the "reduce-dependencies" patch

* Remove the "configure" and "no-tests" patches which do not seem to be useful anymore

* Add a libtool patch

We also remove references to a non-existant 2.15 gtk version in libgtk2.mk.

---
 package/libgtk2/Config.in                          |    8 +-
 ... host-libgtk2-2.20.1-reduce-dependencies.patch} |  140 ++++-------
 package/libgtk2/libgtk2-2.12.6-configure.patch     |  256 --------------------
 package/libgtk2/libgtk2-2.12.6-no-tests.patch      |   11 -
 package/libgtk2/libgtk2.mk                         |    9 +-
 5 files changed, 58 insertions(+), 366 deletions(-)
 rename package/libgtk2/{host-libgtk2-2.12.12-reduce-dependencies.patch => host-libgtk2-2.20.1-reduce-dependencies.patch} (50%)
 delete mode 100644 package/libgtk2/libgtk2-2.12.6-configure.patch
 delete mode 100644 package/libgtk2/libgtk2-2.12.6-no-tests.patch
package/libgtk2/Config.in +2 -6
index bb01bef..38b0b47 100644
@@ -4,15 +4,11 @@ config BR2_PACKAGE_LIBGTK2
 	select BR2_PACKAGE_CAIRO
 	select BR2_PACKAGE_CAIRO_PS
 	select BR2_PACKAGE_CAIRO_PDF
+	select BR2_PACKAGE_CAIRO_SVG
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_PANGO
 	select BR2_PACKAGE_GDK_PIXBUF
-	# libgtk2 on DirectFB is deprecated because it is no longer
-	# supported in recent versions of Gtk. We will remove support
-	# for Gtk over DirectFB in the next Buildroot version unless
-	# support for DirectFB in mainline Gtk is improved in the mean
-	# time.
-	depends on BR2_PACKAGE_XORG7||(BR2_PACKAGE_DIRECTFB && BR2_DEPRECATED)
+	depends on BR2_PACKAGE_XORG7||BR2_PACKAGE_DIRECTFB
 	depends on BR2_USE_WCHAR # glib2
 	depends on BR2_INSTALL_LIBSTDCPP # pango
 	help
package/libgtk2/host-libgtk2-2.20.1-reduce-dependencies.patch renamed from package/libgtk2/host-libgtk2-2.12.12-reduce-dependencies.patch +54 -86

188 lines not on this page · raw message

package/libgtk2/libgtk2-2.12.6-configure.patch deleted +0 -256

256 lines not on this page · raw message

package/libgtk2/libgtk2-2.12.6-no-tests.patch deleted +0 -11
deleted file mode 100644
index ea92433..0000000
@@ -1,11 +0,0 @@
---- a/Makefile.in	2008-01-28 22:38:09.000000000 -0500
-+++ b/Makefile.in	2008-02-11 12:52:45.000000000 -0500
-@@ -330,7 +330,7 @@ sharedstatedir = @sharedstatedir@
- sysconfdir = @sysconfdir@
- target_alias = @target_alias@
- 
--SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests perf contrib
-+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos perf contrib
- SUBDIRS = po po-properties $(SRC_SUBDIRS) docs m4macros
- 
- # require automake 1.4
package/libgtk2/libgtk2.mk +2 -7
index d6f2324..e19025d 100644
@@ -3,8 +3,8 @@
 # libgtk2.0
 #
 #############################################################
-LIBGTK2_VERSION_MAJOR:=2.12
-LIBGTK2_VERSION_MINOR:=12
+LIBGTK2_VERSION_MAJOR:=2.22
+LIBGTK2_VERSION_MINOR:=0
 LIBGTK2_VERSION = $(LIBGTK2_VERSION_MAJOR).$(LIBGTK2_VERSION_MINOR)
 
 LIBGTK2_SOURCE = gtk+-$(LIBGTK2_VERSION).tar.bz2
@@ -90,11 +90,6 @@ else
 	LIBGTK2_CONF_OPT += --without-x
 endif
 
-# Buildroot does not support JPEG2000 library
-ifeq ($(LIBGTK2_VERSION_MAJOR),2.15)
-LIBGTK2_CONF_OPT += --without-libjasper
-endif
-
 ifeq ($(BR2_PACKAGE_LIBPNG),y)
 LIBGTK2_DEPENDENCIES += libpng
 else
Signature · 1 line
1.7.0.4
#10 lore raw

PATCH 10/12 libglib2: bump version to 2.26.0

In reply to Thomas Petazzoni

This is a mechanical bump, no other changes involved.

---
 .../libglib2-fix-clock-gettime-check.patch         |   14 +++++++++-----
 package/libglib2/libglib2-mkenums-nowarn.patch     |   14 ++++++++++----
 package/libglib2/libglib2-optional-ipv6.patch      |   12 ++++++------
 package/libglib2/libglib2.mk                       |    4 ++--
 4 files changed, 27 insertions(+), 17 deletions(-)
package/libglib2/libglib2-fix-clock-gettime-check.patch +9 -5
index da2e485..f336ea5 100644
@@ -1,6 +1,6 @@
 Rework clock_gettime() test
 
-The test for clock_gettime() in configure.in doesn't work properly
+The test for clock_gettime() in configure.ac doesn't work properly
 when a previous package has loaded the shared configuration cache with
 informations about the availability of clock_gettime. A package such
 as ctorrent does so, which means that compiling ctorrent *then*
@@ -25,11 +25,15 @@ appropriate variables.
 
 Signed-off-by: Thomas Petazzoni <[email protected]>
 
-Index: glib-2.24.1/configure.in
+---
+ configure.ac |   11 ++++++-----
+ 1 file changed, 6 insertions(+), 5 deletions(-)
+
+Index: glib-2.26.0/configure.ac
 ===================================================================
---- glib-2.24.1.orig/configure.in	2010-08-11 19:29:20.530916023 +0200
-+++ glib-2.24.1/configure.in	2010-08-11 19:46:41.308866269 +0200
-@@ -2392,13 +2392,14 @@
+--- glib-2.26.0.orig/configure.ac
++++ glib-2.26.0/configure.ac
+@@ -2379,13 +2379,14 @@
  	LIBS="$glib_save_LIBS"
  fi
  
package/libglib2/libglib2-mkenums-nowarn.patch +10 -4
index 1ab6e37..d92183e 100644
@@ -1,8 +1,14 @@
---- glib-2.6.5/gobject/glib-mkenums.in.orig	2006-06-15 21:28:23.436946024 -0600
-+++ glib-2.6.5/gobject/glib-mkenums.in	2006-06-15 21:28:35.417124760 -0600
+---
+ gobject/glib-mkenums.in |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: glib-2.26.0/gobject/glib-mkenums.in
+===================================================================
+--- glib-2.26.0.orig/gobject/glib-mkenums.in
++++ glib-2.26.0/gobject/glib-mkenums.in
 @@ -1,4 +1,4 @@
 -#!@PERL_PATH@ -w
 +#!@PERL_PATH@
  
- # glib-mkenums.pl 
- # Information about the current enumeration
+ use File::Basename;
+ use Safe;
package/libglib2/libglib2-optional-ipv6.patch +6 -6
index 7c511a3..8e7b418 100644
@@ -5,10 +5,10 @@ Signed-off-by: Peter Korsgaard <[email protected]>
  gio/ginetaddress.c |    9 +++++++++
  1 file changed, 9 insertions(+)
 
-Index: glib-2.22.4/gio/ginetaddress.c
+Index: glib-2.26.0/gio/ginetaddress.c
 ===================================================================
---- glib-2.22.4.orig/gio/ginetaddress.c
-+++ glib-2.22.4/gio/ginetaddress.c
+--- glib-2.26.0.orig/gio/ginetaddress.c
++++ glib-2.26.0/gio/ginetaddress.c
 @@ -21,6 +21,7 @@
   *          Samuel Cormier-Iijima <[email protected]>
   */
@@ -17,7 +17,7 @@ Index: glib-2.22.4/gio/ginetaddress.c
  #include <config.h>
  
  #include <string.h>
-@@ -435,7 +436,11 @@ g_inet_address_new_from_string (const gc
+@@ -434,7 +435,11 @@
    return NULL;
  }
  
@@ -29,7 +29,7 @@ Index: glib-2.22.4/gio/ginetaddress.c
  
  /**
   * g_inet_address_new_from_bytes:
-@@ -484,8 +489,10 @@ g_inet_address_new_loopback (GSocketFami
+@@ -483,8 +488,10 @@
  
        return g_inet_address_new_from_bytes (addr, family);
      }
@@ -40,7 +40,7 @@ Index: glib-2.22.4/gio/ginetaddress.c
  }
  
  /**
-@@ -511,8 +518,10 @@ g_inet_address_new_any (GSocketFamily fa
+@@ -510,8 +517,10 @@
  
        return g_inet_address_new_from_bytes (addr, family);
      }
package/libglib2/libglib2.mk +2 -2
index 61e8c1c..1468af1 100644
@@ -3,8 +3,8 @@
 # libglib2
 #
 #############################################################
-LIBGLIB2_VERSION_MAJOR = 2.24
-LIBGLIB2_VERSION_MINOR = 1
+LIBGLIB2_VERSION_MAJOR = 2.26
+LIBGLIB2_VERSION_MINOR = 0
 LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).$(LIBGLIB2_VERSION_MINOR)
 LIBGLIB2_SOURCE = glib-$(LIBGLIB2_VERSION).tar.bz2
 LIBGLIB2_SITE = http://ftp.gnome.org/pub/gnome/sources/glib/$(LIBGLIB2_VERSION_MAJOR)
Signature · 1 line
1.7.0.4
#11 lore raw

PATCH 11/12 pango: bump version to 1.28.2

In reply to Thomas Petazzoni

This is a mechanical bump, no other changes involved.

---
 package/pango/pango.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/pango/pango.mk +1 -1
index dc04b55..373eb8b 100644
@@ -4,7 +4,7 @@
 #
 #############################################################
 PANGO_VERSION_MAJOR = 1.28
-PANGO_VERSION_MINOR = 0
+PANGO_VERSION_MINOR = 2
 PANGO_VERSION = $(PANGO_VERSION_MAJOR).$(PANGO_VERSION_MINOR)
 
 PANGO_SOURCE = pango-$(PANGO_VERSION).tar.bz2
Signature · 1 line
1.7.0.4
#12 lore raw

PATCH 12/12 libglib2: remove fix-clock-gettime patch

In reply to Thomas Petazzoni

This patch was introduced in 0ec4298153bd93f8d7efbd1890896fbac5046a7b to fix a problem in libglib configure script when using the configuration cache.

However, we decided that the shared configuration cache cannot work reliably, to disable it by default, and probably to remove it altogether. So just drop this patch, and don't autoreconfigure libglib.

---
 .../libglib2-fix-clock-gettime-check.patch         |   55 --------------------
 package/libglib2/libglib2.mk                       |    1 -
 2 files changed, 0 insertions(+), 56 deletions(-)
 delete mode 100644 package/libglib2/libglib2-fix-clock-gettime-check.patch
package/libglib2/libglib2-fix-clock-gettime-check.patch deleted +0 -55
deleted file mode 100644
index f336ea5..0000000
@@ -1,55 +0,0 @@
-Rework clock_gettime() test
-
-The test for clock_gettime() in configure.ac doesn't work properly
-when a previous package has loaded the shared configuration cache with
-informations about the availability of clock_gettime. A package such
-as ctorrent does so, which means that compiling ctorrent *then*
-libglib2 currently fails.
-
-According to people on the Autoconf mailing list, the libglib2 test is
-likely the one that needs to be fixed. The problem is that the
-AC_CHECK_FUNCS() test assumes that if it finds clock_gettime() it
-means that there's no need to add any -lrt flag to the
-build. Unfortunately, due to the shared configuration cache, this test
-is already done with -lrt, so the test succeeds, and libglib2 does not
-know that it needs to add -lrt to G_THREAD_LIBS and
-G_THREAD_LIBS_FOR_GTHREAD.
-
-So instead, we remplace the test with an AC_SEARCH_LIBS() test,
-followed by a test on the result of this AC_SEARCH_LIBS() test to add
-the necessary -lrt to G_THREAD_LIBS and
-G_THREAD_LIBS_FOR_GTHREAD. Therefore, even if the result for the
-AC_SEARCH_LIBS() test is cached due to the prior execution ctorrent
-./configure script, libglib2 ./configure will properly add -lrt to the
-appropriate variables.
-
-Signed-off-by: Thomas Petazzoni <[email protected]>
-
----
- configure.ac |   11 ++++++-----
- 1 file changed, 6 insertions(+), 5 deletions(-)
-
-Index: glib-2.26.0/configure.ac
-===================================================================
---- glib-2.26.0.orig/configure.ac
-+++ glib-2.26.0/configure.ac
-@@ -2379,13 +2379,14 @@
- 	LIBS="$glib_save_LIBS"
- fi
- 
--AC_CHECK_FUNCS(clock_gettime, [], [
--  AC_CHECK_LIB(rt, clock_gettime, [
--    AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
-+AC_SEARCH_LIBS([clock_gettime], [rt], [
-+    AC_DEFINE(HAVE_CLOCK_GETTIME, 1,[Have clock_gettime])
-+])
-+
-+if test "$ac_cv_search_clock_gettime" = "-lrt"; then
-     G_THREAD_LIBS="$G_THREAD_LIBS -lrt"
-     G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS_FOR_GTHREAD -lrt"
--  ])
--])
-+fi
- 
- AC_CACHE_CHECK(for monotonic clocks,
-     glib_cv_monotonic_clock,AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
package/libglib2/libglib2.mk +0 -1
index 1468af1..0d44d71 100644
@@ -9,7 +9,6 @@ LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).$(LIBGLIB2_VERSION_MINOR)
 LIBGLIB2_SOURCE = glib-$(LIBGLIB2_VERSION).tar.bz2
 LIBGLIB2_SITE = http://ftp.gnome.org/pub/gnome/sources/glib/$(LIBGLIB2_VERSION_MAJOR)
 
-LIBGLIB2_AUTORECONF = YES
 LIBGLIB2_LIBTOOL_PATCH = NO
 LIBGLIB2_INSTALL_STAGING = YES
 LIBGLIB2_INSTALL_TARGET = YES
Signature · 1 line
1.7.0.4
#13 lore raw
In reply to Thomas Petazzoni
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Thomas> Hello,
Thomas> Here is a stack of patches that gathers:

 Thomas>  * libtool fixes from Martin Banky
 Thomas>  * libtool bump from Lionel Landwerlin
 Thomas>  * glib/gtk bump from myself

Thomas> I've successfully built and tested the gtk-demo application Thomas> with both the X.org and DirectFB backends, using a uClibc Thomas> Buildroot ARM toolchain.

Pulled and pushed, thanks everyone!

Signature · 1 line
Bye, Peter Korsgaard