NetBSD Problem Report #52139

From soda@netbsd.org  Tue Apr  4 10:08:02 2017
Return-Path: <soda@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 48E767A2B8
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  4 Apr 2017 10:08:02 +0000 (UTC)
Message-Id: <20170404100801.C3CD8855AB@mail.netbsd.org>
Date: Tue,  4 Apr 2017 10:08:01 +0000 (UTC)
From: <soda@NetBSD.org>
To: gnats-bugs@NetBSD.org
Subject: PKGNAME and PLIST of fonts/takao-ex-fonts-ttf are incorrect
X-Send-Pr-Version: 3.95

>Number:         52139
>Category:       pkg
>Synopsis:       PKGNAME and PLIST of fonts/takao-ex-fonts-ttf are incorrect
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    soda
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 04 10:10:00 +0000 2017
>Last-Modified:  Tue Apr 04 10:21:22 +0000 2017
>Originator:     SODA Noriyuki
>Release:        NetBSD 7.1
>Organization:
the NetBSD project
>Environment:
System: NetBSD srapc2586.sra.co.jp 7.1 NetBSD 7.1 (GENERIC.201703111743Z) amd64
Architecture: x86_64
Machine: amd64
>Description:

Currently takao-ex-fonts-ttf and takao-fonts-ttf are using same
PKGNAME as follows:
	/usr/pkgsrc/fonts/takao-ex-fonts-ttf/:
		PKGNAME=	takao-fonts-ttf-002.01.01

	/usr/pkgsrc/fonts/takao-fonts-ttf/:
		PKGNAME=	takao-fonts-ttf-003.03.01

I think takao-ex-fonts-ttf should use takao-ex-fonts-ttf-002.01.01
or something like that.

Also, currently both takao-ex-fonts-ttf/PLIST and takao-fonts-ttf/PLIST
have the following entries, and that's problematic:
	share/doc/takao-fonts-ttf/ChangeLog
	share/doc/takao-fonts-ttf/IPA_Font_License_Agreement_v1.0.txt
	share/doc/takao-fonts-ttf/README
	share/doc/takao-fonts-ttf/README.ja

>How-To-Repeat:

try installing fonts/takao-ex-fonts-ttf and see the package name,
then try fonts/takao-fonts-ttf and see the the result.

>Fix:

how about applying the following patch?

Index: fonts/takao-ex-fonts-ttf/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/fonts/takao-ex-fonts-ttf/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- fonts/takao-ex-fonts-ttf/Makefile	4 Jul 2015 16:18:33 -0000	1.2
+++ fonts/takao-ex-fonts-ttf/Makefile	4 Apr 2017 10:02:21 -0000
@@ -2,7 +2,7 @@
 #

 DISTNAME=	TakaoExFonts_00201.01
-PKGNAME=	takao-fonts-ttf-002.01.01
+PKGNAME=	takao-ex-fonts-ttf-002.01.01
 CATEGORIES=	fonts japanese
 MASTER_SITES=	https://launchpad.net/takao-fonts/trunk/15.03/+download/
 EXTRACT_SUFX=	.tar.xz
Index: fonts/takao-ex-fonts-ttf/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/fonts/takao-ex-fonts-ttf/PLIST,v
retrieving revision 1.1
diff -u -r1.1 PLIST
--- fonts/takao-ex-fonts-ttf/PLIST	7 Mar 2015 12:12:59 -0000	1.1
+++ fonts/takao-ex-fonts-ttf/PLIST	4 Apr 2017 10:02:21 -0000
@@ -1,7 +1,7 @@
 @comment $NetBSD: PLIST,v 1.1 2015/03/07 12:12:59 ryoon Exp $
-share/doc/takao-fonts-ttf/ChangeLog
-share/doc/takao-fonts-ttf/IPA_Font_License_Agreement_v1.0.txt
-share/doc/takao-fonts-ttf/README
-share/doc/takao-fonts-ttf/README.ja
+share/doc/takao-ex-fonts-ttf/ChangeLog
+share/doc/takao-ex-fonts-ttf/IPA_Font_License_Agreement_v1.0.txt
+share/doc/takao-ex-fonts-ttf/README
+share/doc/takao-ex-fonts-ttf/README.ja
 share/fonts/X11/TTF/TakaoExGothic.ttf
 share/fonts/X11/TTF/TakaoExMincho.ttf

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->soda
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 04 Apr 2017 10:21:22 +0000
Responsible-Changed-Why:
Looks good, please commit!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.