[arch-commits] Commit in lib32-glib2/repos/multilib-x86_64 (3 files)

Florian Pritz bluewind at nymeria.archlinux.org
Tue Apr 23 12:24:00 UTC 2013


    Date: Tuesday, April 23, 2013 @ 14:24:00
  Author: bluewind
Revision: 88827

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-glib2/repos/multilib-x86_64/PKGBUILD
    (from rev 88826, lib32-glib2/trunk/PKGBUILD)
  lib32-glib2/repos/multilib-x86_64/wall.patch
    (from rev 88826, lib32-glib2/trunk/wall.patch)
Deleted:
  lib32-glib2/repos/multilib-x86_64/PKGBUILD

------------+
 PKGBUILD   |   91 ++++++++++++++++++++++++++++++++---------------------------
 wall.patch |   16 ++++++++++
 2 files changed, 66 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2013-04-23 12:23:56 UTC (rev 88826)
+++ PKGBUILD	2013-04-23 12:24:00 UTC (rev 88827)
@@ -1,41 +0,0 @@
-# $Id$
-# Maintainer:  Ionut Biru <ibiru at archlinux.org>
-# Contributor: Pierre Schmitz <pierre at archlinux.de>
-# Contributor: Mikko Seppälä <t-r-a-y at mbnet.fi>
-
-_pkgbasename=glib2
-pkgname=lib32-$_pkgbasename
-pkgver=2.36.1
-pkgrel=1
-pkgdesc="Common C routines used by GTK+ 2.4 and other libs (32-bit)"
-url="http://www.gtk.org/"
-arch=('x86_64')
-license=('LGPL')
-depends=('lib32-pcre' 'lib32-zlib' 'lib32-dbus-core' lib32-libffi $_pkgbasename)
-makedepends=('gcc-multilib' python2)
-options=('!libtool' '!docs')
-source=(http://ftp.gnome.org/pub/GNOME/sources/glib/${pkgver%.*}/glib-${pkgver}.tar.xz)
-sha256sums=('7de37586794e92c024feebe5d306bf5f245fef4803c3666af1ae8dac6ee10b24')
-
-build() {
-  export CC="gcc -m32"
-  export CXX="g++ -m32"
-  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
-
-  cd "${srcdir}/glib-${pkgver}"
-  PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32 \
-      --enable-static --enable-shared --with-pcre=system --disable-fam
-  make
-}
-
-package() {
-  cd "${srcdir}/glib-${pkgver}"
-  make DESTDIR="${pkgdir}" install
-  rm -rf "${pkgdir}"/{etc,usr/{share,include}}
-
-  cd "${pkgdir}"/usr/bin
-  mv gio-querymodules gio-querymodules-32
-  rm -f gdbus glib* gobject-query gsettings gtester*
-  rm -rf "$pkgdir"/usr/lib32/gdbus-2.0
-  find "$pkgdir/usr/bin" -type f -not -name gio-querymodules-32 -delete
-}

Copied: lib32-glib2/repos/multilib-x86_64/PKGBUILD (from rev 88826, lib32-glib2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2013-04-23 12:24:00 UTC (rev 88827)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer:  Ionut Biru <ibiru at archlinux.org>
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+# Contributor: Mikko Seppälä <t-r-a-y at mbnet.fi>
+
+_pkgbasename=glib2
+pkgname=lib32-$_pkgbasename
+pkgver=2.36.1
+pkgrel=2
+pkgdesc="Common C routines used by GTK+ 2.4 and other libs (32-bit)"
+url="http://www.gtk.org/"
+arch=('x86_64')
+license=('LGPL')
+depends=('lib32-pcre' 'lib32-zlib' 'lib32-dbus-core' lib32-libffi $_pkgbasename)
+makedepends=('gcc-multilib' python2)
+options=('!libtool' '!docs')
+source=(http://ftp.gnome.org/pub/GNOME/sources/glib/${pkgver%.*}/glib-${pkgver}.tar.xz
+  wall.patch)
+sha256sums=('7de37586794e92c024feebe5d306bf5f245fef4803c3666af1ae8dac6ee10b24'
+            '35ea3634f2c04b953206a0ec2dd224e61fa7468c22f9415fea3f5c734a001020')
+prepare() {
+  cd "${srcdir}/glib-${pkgver}"
+
+  # use Wall during the complete build otherwise skype segfaults on startup
+  # FS#34630 https://bugs.archlinux.org/task/34630
+  patch -p1 <"$srcdir/wall.patch"
+}
+
+build() {
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+  cd "${srcdir}/glib-${pkgver}"
+  PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32 \
+      --enable-static --enable-shared --with-pcre=system --disable-fam
+  make
+}
+
+package() {
+  cd "${srcdir}/glib-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  rm -rf "${pkgdir}"/{etc,usr/{share,include}}
+
+  cd "${pkgdir}"/usr/bin
+  mv gio-querymodules gio-querymodules-32
+  rm -f gdbus glib* gobject-query gsettings gtester*
+  rm -rf "$pkgdir"/usr/lib32/gdbus-2.0
+  find "$pkgdir/usr/bin" -type f -not -name gio-querymodules-32 -delete
+}

Copied: lib32-glib2/repos/multilib-x86_64/wall.patch (from rev 88826, lib32-glib2/trunk/wall.patch)
===================================================================
--- wall.patch	                        (rev 0)
+++ wall.patch	2013-04-23 12:24:00 UTC (rev 88827)
@@ -0,0 +1,16 @@
+--- a/configure.ac	2013-04-23 10:59:21.284914117 +0100
++++ b/configure.ac	2013-04-23 10:58:59.891664217 +0100
+@@ -528,6 +528,13 @@
+ m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
+ 
+ 
++if test "x$GCC" = "xyes"; then
++  case " $CFLAGS " in
++  *[[\ \	]]-Wall[[\ \	]]*) ;;
++  *) CFLAGS="$CFLAGS -Wall" ;;
++  esac
++fi
++
+ AS_IF([test "$glib_native_win32" = "yes"], [
+   if test x$enable_static = xyes -a x$enable_shared = xyes; then
+     AC_MSG_ERROR([Can not build both shared and static at the same time on Windows.])




More information about the arch-commits mailing list