Subject: pkg/18957: gtk2-engines gets installed with a wrong package name
To: None <>
From: None <>
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
>Originator:     Oleg Polyanski
>Release:        NetBSD 1.6J
TelstraCLEAR Ltd.
System: NetBSD 1.6J NetBSD 1.6J (SIMOOM) #63: Wed Oct 30 10:45:04 NZDT 2002 i386
Architecture: i386
Machine: i386
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.

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.

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/}
 MASTER_SITES=		${MASTER_SITE_GNOME:=sources/gtk-engines/1.9/}
 EXTRACT_SUFX=		.tar.bz2
 A wrong package name is formed when installing this package