Subject: pkg/29864: librsvg2 problem with libgnomeprint-2.10
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <reilles@loria.fr>
List: pkgsrc-bugs
Date: 04/02/2005 11:40:01
>Number:         29864
>Category:       pkg
>Synopsis:       the update of libgnomeprint(-ui) to 2.10 broke librsvg2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 02 11:40:01 +0000 2005
>Originator:     Antoine Reilles
>Release:        NetBSD 3.99.1
>Organization:
	
>Environment:
	
	
System: NetBSD arcelot.loria.fr 3.99.1 NetBSD 3.99.1 (GENERIC) #0: Wed Mar 23 15:17:57 CET 2005 tonio@arcelot.loria.fr:/usr/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
the update of libgnomeprint(-ui) to 2.10 broke librsvg2.
At build time, there is a problem with ld. -llibgnomeprintui-2.2 not found

I patched the configure script to use libgnomeprint(-ui) 2.10, and now it
builds fine.
>How-To-Repeat:
Update libgnomeprint, then build librsvg2 (i did that with pkgdepgraph)
>Fix:
I used the attached patch, and it works, but i donr't know how to make librsvg2
work with both version 2.2 and 2.10 of libgnomeprint(-ui), since i'm not
familiar with pkg-config.

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/librsvg2/distinfo,v
retrieving revision 1.11
diff -u -r1.11 distinfo
--- distinfo	22 Mar 2005 16:04:44 -0000	1.11
+++ distinfo	2 Apr 2005 11:32:41 -0000
@@ -3,7 +3,7 @@
 SHA1 (librsvg-2.9.5.tar.bz2) = 502338a1b42ec36fbca895b97a166e398e7e3018
 RMD160 (librsvg-2.9.5.tar.bz2) = 5c7d6ad1a543b4880d7c3bb02da7126ed9f5aa5e
 Size (librsvg-2.9.5.tar.bz2) = 392785 bytes
-SHA1 (patch-aa) = 9079ddca49e8aa3618d73aa781a5282dd9e819ed
+SHA1 (patch-aa) = e0007f7838e2f09da5281d1c830af5994bdaa90e
 SHA1 (patch-ab) = 6f6d376192e6cf2f8c223be2270cbb932173449a
 SHA1 (patch-ac) = 11939435e00f04b58412b3d769297caa9ee585b9
 SHA1 (patch-ad) = e72e1e884a366199be9feeacde05815627393f1f
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/librsvg2/patches/patch-aa,v
retrieving revision 1.6
diff -u -r1.6 patch-aa
--- patches/patch-aa	22 Mar 2005 16:04:44 -0000	1.6
+++ patches/patch-aa	2 Apr 2005 11:32:41 -0000
@@ -1,8 +1,60 @@
-$NetBSD: patch-aa,v 1.6 2005/03/22 16:04:44 jmmv Exp $
-
 --- configure.orig	2005-01-19 02:14:43.000000000 +0100
-+++ configure
-@@ -21874,6 +21874,7 @@ echo "${ECHO_T}$GNOME_PRINT_LIBS" >&6
++++ configure	2005-04-02 13:27:35.000000000 +0200
+@@ -21820,15 +21820,15 @@
+      PKG_CONFIG_MIN_VERSION=0.9.0
+      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
+         echo "$as_me:$LINENO: checking for \
+-		libgnomeprint-2.2 >= 2.2.0	\
+-		libgnomeprintui-2.2 >= 2.2.0" >&5
++		libgnomeprint-2.10 >= 2.10.0	\
++		libgnomeprintui-2.10 >= 2.10.0" >&5
+ echo $ECHO_N "checking for \
+-		libgnomeprint-2.2 >= 2.2.0	\
+-		libgnomeprintui-2.2 >= 2.2.0... $ECHO_C" >&6
++		libgnomeprint-2.10 >= 2.10.0	\
++		libgnomeprintui-2.10 >= 2.10.0... $ECHO_C" >&6
+ 
+         if $PKG_CONFIG --exists "\
+-		libgnomeprint-2.2 >= 2.2.0	\
+-		libgnomeprintui-2.2 >= 2.2.0" ; then
++		libgnomeprint-2.10 >= 2.10.0	\
++		libgnomeprintui-2.10 >= 2.10.0" ; then
+             echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+             succeeded=yes
+@@ -21836,16 +21836,16 @@
+             echo "$as_me:$LINENO: checking GNOME_PRINT_CFLAGS" >&5
+ echo $ECHO_N "checking GNOME_PRINT_CFLAGS... $ECHO_C" >&6
+             GNOME_PRINT_CFLAGS=`$PKG_CONFIG --cflags "\
+-		libgnomeprint-2.2 >= 2.2.0	\
+-		libgnomeprintui-2.2 >= 2.2.0"`
++		libgnomeprint-2.10 >= 2.10.0	\
++		libgnomeprintui-2.10 >= 2.10.0"`
+             echo "$as_me:$LINENO: result: $GNOME_PRINT_CFLAGS" >&5
+ echo "${ECHO_T}$GNOME_PRINT_CFLAGS" >&6
+ 
+             echo "$as_me:$LINENO: checking GNOME_PRINT_LIBS" >&5
+ echo $ECHO_N "checking GNOME_PRINT_LIBS... $ECHO_C" >&6
+             GNOME_PRINT_LIBS=`$PKG_CONFIG --libs "\
+-		libgnomeprint-2.2 >= 2.2.0	\
+-		libgnomeprintui-2.2 >= 2.2.0"`
++		libgnomeprint-2.10 >= 2.10.0	\
++		libgnomeprintui-2.10 >= 2.10.0"`
+             echo "$as_me:$LINENO: result: $GNOME_PRINT_LIBS" >&5
+ echo "${ECHO_T}$GNOME_PRINT_LIBS" >&6
+         else
+@@ -21854,8 +21854,8 @@
+             ## If we have a custom action on failure, don't print errors, but
+             ## do set a variable so people can do so.
+             GNOME_PRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
+-		libgnomeprint-2.2 >= 2.2.0	\
+-		libgnomeprintui-2.2 >= 2.2.0"`
++		libgnomeprint-2.10 >= 2.10.0	\
++		libgnomeprintui-2.10 >= 2.10.0"`
+ 
+         fi
+ 
+@@ -21874,6 +21874,7 @@
       \
  		have_gnome_print=no
    fi
@@ -10,7 +62,7 @@
  
  
  if test "x$have_gnome_print" = "xyes"; then
-@@ -23633,6 +23634,7 @@ build_mozilla_plugin=no
+@@ -23633,6 +23634,7 @@
  if test "x$MOZILLA_CFLAGS" != "x"; then
     build_mozilla_plugin=yes
  fi

>Unformatted: