Subject: pkg/32518: ruby-gnome2 package fixes
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <dieter.NetBSD@pandora.be>
List: pkgsrc-bugs
Date: 01/13/2006 22:00:00
>Number:         32518
>Category:       pkg
>Synopsis:       ruby-gnome2 package fixes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 13 22:00:00 +0000 2006
>Originator:     Dieter Roelants
>Release:        irrelevant
>Organization:
>Environment:
irrelevant
>Description:
ruby-gnome2 packages have PLISTs with the word "elf" hardcoded instead of using the appropriate variables. This makes packaging them on some archs fail as shown by Kristers recent builk build on amd64.

A second, not-related problem is in ruby-gnome2-pango/buildlink3.mk. It defines a build-only dependency, but that's not enough for ruby-gnome2-gnomecanvas.
>How-To-Repeat:
make package in devel/ruby-gnome2-glib
>Fix:

Following patch fixes the PLISTs of all affected packages. It also corrects the buildlink mentioned in the description. The patch is also at http://bsdusr.net/~dieter/NetBSD/ruby-gnome2-fixes.diff (if this should come out ugly).


Index: devel/ruby-gnome2-atk/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/devel/ruby-gnome2-atk/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- devel/ruby-gnome2-atk/PLIST	8 Jan 2006 03:10:18 -0000	1.1.1.1
+++ devel/ruby-gnome2-atk/PLIST	13 Jan 2006 21:01:12 -0000
@@ -1,3 +1,3 @@
 @comment $NetBSD: PLIST,v 1.1.1.1 2006/01/08 03:10:18 minskim Exp $
 ${RUBY_SITELIBDIR}/atk.rb
-${RUBY_SITELIBDIR}/${MACHINE_ARCH}-${LOWER_OPSYS}elf/atk.so
+${RUBY_SITEARCHLIBDIR}/atk.so
Index: devel/ruby-gnome2-glib/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/devel/ruby-gnome2-glib/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- devel/ruby-gnome2-glib/PLIST	8 Jan 2006 02:53:31 -0000	1.1.1.1
+++ devel/ruby-gnome2-glib/PLIST	13 Jan 2006 21:01:12 -0000
@@ -1,5 +1,5 @@
 @comment $NetBSD: PLIST,v 1.1.1.1 2006/01/08 02:53:31 minskim Exp $
 ${RUBY_SITELIBDIR}/glib2.rb
-${RUBY_SITELIBDIR}/${MACHINE_ARCH}-${LOWER_OPSYS}elf/glib2.so
+${RUBY_SITEARCHLIBDIR}/glib2.so
 ${RUBY_SITELIBDIR}/mkmf-gnome2.rb
 ${RUBY_SITELIBDIR}/pkg-config.rb
Index: devel/ruby-gnome2-pango/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/devel/ruby-gnome2-pango/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- devel/ruby-gnome2-pango/PLIST	8 Jan 2006 03:26:02 -0000	1.1.1.1
+++ devel/ruby-gnome2-pango/PLIST	13 Jan 2006 21:01:12 -0000
@@ -1,5 +1,5 @@
 @comment $NetBSD: PLIST,v 1.1.1.1 2006/01/08 03:26:02 minskim Exp $
-${RUBY_SITELIBDIR}/${MACHINE_ARCH}-${LOWER_OPSYS}elf/pango.so
-${RUBY_SITELIBDIR}/${MACHINE_ARCH}-${LOWER_OPSYS}elf/rbpango.h
-${RUBY_SITELIBDIR}/${MACHINE_ARCH}-${LOWER_OPSYS}elf/rbpangoversion.h
+${RUBY_SITEARCHLIBDIR}/pango.so
+${RUBY_SITEARCHLIBDIR}/rbpango.h
+${RUBY_SITEARCHLIBDIR}/rbpangoversion.h
 ${RUBY_SITELIBDIR}/pango.rb
Index: devel/ruby-gnome2-pango/buildlink3.mk
===================================================================
RCS file: /cvsroot/pkgsrc/devel/ruby-gnome2-pango/buildlink3.mk,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 buildlink3.mk
--- devel/ruby-gnome2-pango/buildlink3.mk	8 Jan 2006 03:26:02 -0000	1.1.1.1
+++ devel/ruby-gnome2-pango/buildlink3.mk	13 Jan 2006 21:01:12 -0000
@@ -13,7 +13,6 @@
 .if !empty(RUBY_GNOME2_PANGO_BUILDLINK3_MK:M+)
 BUILDLINK_DEPENDS.ruby-gnome2-pango+=	ruby-gnome2-pango>=0.14.1
 BUILDLINK_PKGSRCDIR.ruby-gnome2-pango?=	../../devel/ruby-gnome2-pango
-BUILDLINK_DEPMETHOD.ruby-gnome2-pango?=	build
 .endif	# RUBY_GNOME2_PANGO_BUILDLINK3_MK
 
 
Index: graphics/ruby-gnome2-gdkpixbuf/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/ruby-gnome2-gdkpixbuf/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- graphics/ruby-gnome2-gdkpixbuf/PLIST	8 Jan 2006 03:18:51 -0000	1.1.1.1
+++ graphics/ruby-gnome2-gdkpixbuf/PLIST	13 Jan 2006 21:01:12 -0000
@@ -1,3 +1,3 @@
 @comment $NetBSD: PLIST,v 1.1.1.1 2006/01/08 03:18:51 minskim Exp $
 ${RUBY_SITELIBDIR}/gdk_pixbuf2.rb
-${RUBY_SITELIBDIR}/${MACHINE_ARCH}-${LOWER_OPSYS}elf/gdk_pixbuf2.so
+${RUBY_SITEARCHLIBDIR}/gdk_pixbuf2.so
Index: graphics/ruby-gnome2-gnomecanvas/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/ruby-gnome2-gnomecanvas/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- graphics/ruby-gnome2-gnomecanvas/PLIST	8 Jan 2006 03:57:14 -0000	1.1.1.1
+++ graphics/ruby-gnome2-gnomecanvas/PLIST	13 Jan 2006 21:01:12 -0000
@@ -1,3 +1,3 @@
 @comment $NetBSD: PLIST,v 1.1.1.1 2006/01/08 03:57:14 minskim Exp $
 ${RUBY_SITELIBDIR}/gnomecanvas2.rb
-${RUBY_SITELIBDIR}/${MACHINE_ARCH}-${LOWER_OPSYS}elf/gnomecanvas2.so
+${RUBY_SITEARCHLIBDIR}/gnomecanvas2.so
Index: graphics/ruby-gnome2-libart/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/ruby-gnome2-libart/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- graphics/ruby-gnome2-libart/PLIST	8 Jan 2006 03:36:30 -0000	1.1.1.1
+++ graphics/ruby-gnome2-libart/PLIST	13 Jan 2006 21:01:12 -0000
@@ -1,2 +1,2 @@
 @comment $NetBSD: PLIST,v 1.1.1.1 2006/01/08 03:36:30 minskim Exp $
-${RUBY_SITELIBDIR}/${MACHINE_ARCH}-${LOWER_OPSYS}elf/libart2.so
+${RUBY_SITEARCHLIBDIR}/libart2.so
Index: x11/ruby-gnome2-gtk/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/x11/ruby-gnome2-gtk/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- x11/ruby-gnome2-gtk/PLIST	8 Jan 2006 03:47:23 -0000	1.1.1.1
+++ x11/ruby-gnome2-gtk/PLIST	13 Jan 2006 21:01:12 -0000
@@ -1,5 +1,5 @@
 @comment $NetBSD: PLIST,v 1.1.1.1 2006/01/08 03:47:23 minskim Exp $
 ${RUBY_SITELIBDIR}/gtk2.rb
-${RUBY_SITELIBDIR}/${MACHINE_ARCH}-${LOWER_OPSYS}elf/gtk2.so
-${RUBY_SITELIBDIR}/${MACHINE_ARCH}-${LOWER_OPSYS}elf/gtk20.so
-${RUBY_SITELIBDIR}/${MACHINE_ARCH}-${LOWER_OPSYS}elf/gtk22.so
+${RUBY_SITEARCHLIBDIR}/gtk2.so
+${RUBY_SITEARCHLIBDIR}/gtk20.so
+${RUBY_SITEARCHLIBDIR}/gtk22.so