Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3:Update
systemd-ui
build-gee08.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File build-gee08.patch of Package systemd-ui
From 437fd408ff77c21b5aeceb5a1f9f706b451e730c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl> Date: Mon, 30 Jul 2012 12:06:12 +0200 Subject: [PATCH 1/2] build-sys: support newer gee version "Libgee version numbers are a little confusing. In libgee 0.5 and 0.6, the package name was gee-1.0, identified by a file gee-1.0.pc. In libgee 0.7, the package name changed to gee-0.8 (since the library changed incompatibly)." Since systemadm seems to work fine with newer libgee (found in Fedora 17), let's check for both versions, starting with the newer one. Between 1.0 and 0.8 there seems to have been 0.7, but since I don't have one at hand, I'm not adding a check for it. If necessary, configure.ac can be extended to check for that version too. --- Makefile.am | 6 ++++-- configure.ac | 13 ++++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index c316901..212b398 100644 --- a/Makefile.am +++ b/Makefile.am @@ -41,6 +41,7 @@ systemadm_SOURCES = \ systemadm_CFLAGS = \ $(AM_CFLAGS) \ $(GTK_CFLAGS) \ + $(GEE_CFLAGS) \ -Wno-unused-variable \ -Wno-unused-function \ -Wno-shadow \ @@ -49,11 +50,12 @@ systemadm_CFLAGS = \ systemadm_VALAFLAGS = \ --pkg=posix \ --pkg=gtk+-2.0 \ - --pkg=gee-1.0 \ + --pkg=$(GEE_PACKAGE) \ -g systemadm_LDADD = \ - $(GTK_LIBS) + $(GTK_LIBS) \ + $(GEE_LIBS) desktopdir = $(datadir)/applications desktop_DATA = \ diff --git a/configure.ac b/configure.ac index 20c3bbe..b6b8310 100644 --- a/configure.ac +++ b/configure.ac @@ -95,10 +95,21 @@ PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.3.2 ]) AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) -PKG_CHECK_MODULES(GTK, [ gtk+-2.0 glib-2.0 > 2.26 gio-unix-2.0 gee-1.0]) +PKG_CHECK_MODULES(GTK, [ gtk+-2.0 glib-2.0 > 2.26 gio-unix-2.0 ]) AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) +PKG_CHECK_MODULES(GEE, [ gee-0.8 ],, + [AC_MSG_WARN([gee-0.8 not found, falling back to older version])]) +AS_IF([test -n "$GEE_LIBS"], + [AC_DEFINE([GEE_PACKAGE], [gee-0.8], [Use gee-0.8])], + [PKG_CHECK_MODULES(GEE, [ gee-1.0 ]) + AC_DEFINE([GEE_PACKAGE], [gee-1.0], [Use gee-1.0 (old)])] +) +AC_SUBST(GEE_CFLAGS) +AC_SUBST(GEE_LIBS) +AC_SUBST(GEE_PACKAGE) + PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify ]) AC_SUBST(LIBNOTIFY_CFLAGS) AC_SUBST(LIBNOTIFY_LIBS) -- 1.7.10.4 From a6d7688a487e90cbcf51d02377adb5d454c27a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl> Date: Tue, 31 Jul 2012 17:02:30 +0200 Subject: [PATCH 2/2] build-sys: fix substitution of GEE_PACKAGE variable There is no need to AC_DEFINE it. --- configure.ac | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index b6b8310..40e6573 100644 --- a/configure.ac +++ b/configure.ac @@ -102,13 +102,12 @@ AC_SUBST(GTK_LIBS) PKG_CHECK_MODULES(GEE, [ gee-0.8 ],, [AC_MSG_WARN([gee-0.8 not found, falling back to older version])]) AS_IF([test -n "$GEE_LIBS"], - [AC_DEFINE([GEE_PACKAGE], [gee-0.8], [Use gee-0.8])], + [AC_SUBST(GEE_PACKAGE, [gee-0.8])], [PKG_CHECK_MODULES(GEE, [ gee-1.0 ]) - AC_DEFINE([GEE_PACKAGE], [gee-1.0], [Use gee-1.0 (old)])] + AC_SUBST(GEE_PACKAGE, [gee-1.0])] ) AC_SUBST(GEE_CFLAGS) AC_SUBST(GEE_LIBS) -AC_SUBST(GEE_PACKAGE) PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify ]) AC_SUBST(LIBNOTIFY_CFLAGS) -- 1.7.10.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor