1 |
eva 09/01/31 18:35:57 |
2 |
|
3 |
Added: gnome-swallow-1.2-as-needed.patch |
4 |
Log: |
5 |
Fix --as-needed compilation, bug #247521. |
6 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 gnome-extra/gnome-swallow/files/gnome-swallow-1.2-as-needed.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/gnome-swallow/files/gnome-swallow-1.2-as-needed.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/gnome-extra/gnome-swallow/files/gnome-swallow-1.2-as-needed.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: gnome-swallow-1.2-as-needed.patch |
15 |
=================================================================== |
16 |
--- a/configure.ac 2009-01-31 20:18:50.000000000 +0100 |
17 |
+++ b/configure.ac 2009-01-31 20:20:55.000000000 +0100 |
18 |
@@ -7,19 +7,10 @@ |
19 |
AC_LANG(C) |
20 |
AC_PROG_CC |
21 |
|
22 |
-AC_PATH_PROG(PKG_CONFIG, pkg-config, , ) |
23 |
- |
24 |
-if test -z "$PKG_CONFIG"; then |
25 |
- AC_MSG_ERROR([pkg-config is not installed. I will not be able to find the GNOME headers.]) |
26 |
-fi |
27 |
- |
28 |
-if ! $PKG_CONFIG --exists libpanelapplet-2.0; then |
29 |
- AC_MSG_ERROR([pkg-config does not know about libpanelapplet-2.0. |
30 |
-Do you have the development packages for the GNOME 2.0 Panel Applet library installed? |
31 |
-(the Debian package is 'libpanel-applet2-dev')]) |
32 |
-fi |
33 |
- |
34 |
-AC_SUBST(PKG_CONFIG) |
35 |
+PKG_PROG_PKG_CONFIG |
36 |
+PKG_CHECK_MODULES(PANEL, [libpanelapplet-2.0]) |
37 |
+AC_SUBST(PANEL_CFLAGS) |
38 |
+AC_SUBST(PANEL_LIBS) |
39 |
|
40 |
AC_CONFIG_FILES([Makefile]) |
41 |
-AC_OUTPUT |
42 |
\ Pas de fin de ligne à la fin du fichier. |
43 |
+AC_OUTPUT |
44 |
--- a/Makefile.am 2009-01-31 20:21:02.000000000 +0100 |
45 |
+++ b/Makefile.am 2009-01-31 20:21:30.000000000 +0100 |
46 |
@@ -1,15 +1,14 @@ |
47 |
paneldir = $(prefix)/lib/gnome-panel |
48 |
serversdir = $(prefix)/lib/bonobo/servers |
49 |
-docdir = $(prefix)/share/doc/gnome-swallow |
50 |
|
51 |
dist_doc_DATA = README |
52 |
dist_servers_DATA = GNOME_Swallow.server |
53 |
|
54 |
panel_PROGRAMS = gnome_swallow |
55 |
|
56 |
-INCLUDES = `@PKG_CONFIG@ --cflags libpanelapplet-2.0` |
57 |
+INCLUDES = ${PANEL_CFLAGS} |
58 |
|
59 |
gnome_swallow_SOURCES = gnome-swallow.c |
60 |
-gnome_swallow_LDFLAGS = `@PKG_CONFIG@ --libs libpanelapplet-2.0` |
61 |
+gnome_swallow_LDADD = ${PANEL_LIBS} |
62 |
|
63 |
EXTRA_DIST = debian/dirs debian/control debian/changelog debian/copyright debian/install debian/rules |