Subject: pkg/18632: graphics/gqview PKGLOCALEDIR patches are insufficient (this fixes Solaris installation)
To: None <gnats-bugs@gnats.netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: netbsd-bugs
Date: 10/13/2002 01:17:34
>Number:         18632
>Category:       pkg
>Synopsis:       graphics/gqview PKGLOCALEDIR patches are insufficient (this fixes Solaris installation)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 12 16:18:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lubomir Sedlacik
>Release:        NetBSD 1.6
>Organization:
>Environment:
>Description:

graphics/gqview doesn't patch $(localedir) in po/Makefile.in.in and thus
locale catalogs are installed in the wrong directory on Solaris.

>How-To-Repeat:

try to install graphics/gqview on Solaris machine

>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/gqview/Makefile,v
retrieving revision 1.31
diff -u -r1.31 Makefile
--- Makefile	8 Oct 2002 18:50:55 -0000	1.31
+++ Makefile	12 Oct 2002 23:09:21 -0000
@@ -17,6 +17,7 @@
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV+=	ac_cv_path_GNOME_CONFIG=no
 CONFIGURE_ENV+=	PKGLOCALEDIR="${PKGLOCALEDIR}"
+MAKE_ENV+=	PKGLOCALEDIR="${PKGLOCALEDIR}"
 
 .include "../../devel/gettext-lib/buildlink2.mk"
 .include "../../graphics/gdk-pixbuf/buildlink2.mk"
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/gqview/distinfo,v
retrieving revision 1.10
diff -u -r1.10 distinfo
--- distinfo	27 Sep 2002 11:18:36 -0000	1.10
+++ distinfo	12 Oct 2002 23:09:21 -0000
@@ -3,3 +3,4 @@
 SHA1 (gqview-1.0.1.tar.gz) = 122de1c323bf06f3d45656cf02ee1bc48c5f7eac
 Size (gqview-1.0.1.tar.gz) = 607223 bytes
 SHA1 (patch-aa) = 7e0d593021a56134639817398249e60eac0cb09c
+SHA1 (patch-ab) = c7e0ab025d2e98636f4908f9137b5d3b8230b1a3


new file patches/patch-ab:

--- /dev/null	Sun Oct 13 01:02:08 2002
+++ patches/patch-ab	Sun Oct 13 00:26:35 2002
@@ -1,0 +1,15 @@
+$NetBSD$
+
+--- po/Makefile.in.in.orig	Tue Jan  1 18:28:50 2002
++++ po/Makefile.in.in	Sun Oct 13 00:26:01 2002
+@@ -19,8 +19,8 @@
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
+ datadir = $(prefix)/@DATADIRNAME@
+-localedir = $(datadir)/locale
+-gnulocaledir = $(prefix)/share/locale
++localedir = $(prefix)/${PKGLOCALEDIR}/locale
++gnulocaledir = $(prefix)/${PKGLOCALEDIR}/locale
+ gettextsrcdir = $(prefix)/share/gettext/po
+ subdir = po
+ 
>Release-Note:
>Audit-Trail:
>Unformatted: