Accepting request 99259 from GNOME:Apps

Fix build against new glib (forwarded request 99255 from vuntz)

OBS-URL: https://build.opensuse.org/request/show/99259
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gparted?expand=0&rev=4
This commit is contained in:
Stephan Kulow 2012-01-09 10:15:15 +00:00 committed by Git OBS Bridge
parent a1c301af49
commit 572aea0253
3 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,44 @@
commit e1df6dbb31c5a1f6f8cda97503cf77cf1be3e33c
Author: Vincent Untz <vuntz@gnome.org>
Date: Fri Jan 6 15:23:43 2012 +0100
build: Correctly link to gthread
https://bugzilla.gnome.org/show_bug.cgi?id=667412
diff --git a/configure.in b/configure.in
index b44584a..774192a 100644
--- a/configure.in
+++ b/configure.in
@@ -180,6 +180,11 @@ int main ()
LIBS="$LIBS_save"
+dnl gthread
+PKG_CHECK_MODULES([GTHREAD], [gthread-2.0])
+AC_SUBST([GTHREAD_LIBS])
+AC_SUBST([GTHREAD_CFLAGS])
+
dnl GTKMM
PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 > 2.8])
AC_SUBST([GTKMM_LIBS])
diff --git a/src/Makefile.am b/src/Makefile.am
index f3f5cf6..d3b0b5d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,5 @@
INCLUDES = \
+ $(GTHREAD_CFLAGS) \
$(GTKMM_CFLAGS) \
-DGPARTED_DATADIR=\""$(datadir)"\" \
-DGNOMELOCALEDIR=\""$(datadir)/locale"\"
@@ -64,7 +65,7 @@ gpartedbin_SOURCES = \
ufs.cc \
xfs.cc
-gpartedbin_LDFLAGS = -lparted -lgthread-2.0
+gpartedbin_LDFLAGS = -lparted
-gpartedbin_LDADD = $(GTKMM_LIBS)
+gpartedbin_LDADD = $(GTHREAD_LIBS) $(GTKMM_LIBS)

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Jan 6 14:16:50 UTC 2012 - vuntz@opensuse.org
- Add gparted-fix-thread-linking.patch: fix build system to
correctly link to gthread.
- Add automake and libtool BuildRequires, as well as call to
autoreconf, for above patch.
-------------------------------------------------------------------
Tue Jan 3 08:43:08 UTC 2012 - vuntz@opensuse.org

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gparted
Version: 0.11.0
Release: 0
@ -23,6 +24,10 @@ License: GPL-2.0
Group: System/Filesystems
Url: http://gparted.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/gparted/gparted/gparted-0.11.0/%{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gparted-fix-thread-linking.patch vuntz@opensuse.org -- Fix build system to correctly link to thread libraries
Patch0: gparted-fix-thread-linking.patch
# needed for patch0
BuildRequires: automake
BuildRequires: e2fsprogs-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
@ -32,6 +37,8 @@ BuildRequires: gnome-doc-utils-devel
BuildRequires: gtkmm2-devel
BuildRequires: intltool
BuildRequires: libglademm-devel
# needed for patch0
BuildRequires: libtool
BuildRequires: parted-devel
BuildRequires: perl-XML-Parser
BuildRequires: scrollkeeper
@ -60,8 +67,11 @@ copying data residing on hard disks and mirroring one partition with another
%lang_package
%prep
%setup -q
%patch0 -p1
%build
# needed for patch0
autoreconf -fi
export GKSUPROG="/usr/bin/xdg-su -c"
%configure \
--disable-scrollkeeper