Subject: pkg/18957: gtk2-engines gets installed with a wrong package name
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Oleg.Polianski@team.telstraclear.co.nz>
List: netbsd-bugs
Date: 11/07/2002 17:40:26
>Number:         18957
>Category:       pkg
>Synopsis:       gtk2-engines gets installed with a wrong package name
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 06 20:39:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Oleg Polyanski
>Release:        NetBSD 1.6J
>Organization:
TelstraCLEAR Ltd.
>Environment:
System: NetBSD simoom.clear.net.nz 1.6J NetBSD 1.6J (SIMOOM) #63: Wed Oct 30 10:45:04 NZDT 2002 olgerd@simoom.clear.net.nz:/usr/src/syssrc/sys/arch/i386/compile/SIMOOM i386
Architecture: i386
Machine: i386
>Description:
When installing this package, this installation script uses
the tar archive name as a source to form a package name, which,
obviously, is wrong as the file is called `gtk-engines-1.9.0.tar.gz'
and not `gtk2-engines-.....'. This means two packages (`gtk-engines'
for gtk1 and `gtk-engines' for gtk2) can't co-exist, which is untrue
and should be corrected.

>How-To-Repeat:
Install the `gtk-engines' package first, then try to do the same
for `gtk2-engines' and it will fail saying that the package was
already installed.

>Fix:
Please apply this patch.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/gtk2-engines/Makefile,v
retrieving revision 1.2
diff -w -u -r1.2 Makefile
--- Makefile	2002/10/19 10:55:03	1.2
+++ Makefile	2002/11/07 04:22:22
@@ -2,6 +2,7 @@
 #
 
 DISTNAME=		gtk-engines-1.9.0
+PKGNAME=                ${DISTNAME:S/gtk/gtk2/}
 CATEGORIES=		x11
 MASTER_SITES=		${MASTER_SITE_GNOME:=sources/gtk-engines/1.9/}
 EXTRACT_SUFX=		.tar.bz2
>Release-Note:
>Audit-Trail:
>Unformatted:
 A wrong package name is formed when installing this package
 	NetBSD-current