NetBSD Problem Report #32669

From joda@pdc.kth.se  Mon Jan 30 16:26:50 2006
Return-Path: <joda@pdc.kth.se>
Received: from ratatosk.pdc.kth.se (ratatosk.pdc.kth.se [130.237.232.41])
	by narn.netbsd.org (Postfix) with ESMTP id 8D9E863B876
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 30 Jan 2006 16:26:49 +0000 (UTC)
Message-Id: <xoffyn5k7ly.fsf@shoal.pdc.kth.se>
Date: Mon, 30 Jan 2006 17:23:21 +0100
From: Johan Danielsson <joda@pdc.kth.se>
Reply-To: joda@pdc.kth.se
To: gnats-bugs@netbsd.org
Subject: info files not packaged correctly
X-Send-Pr-Version: 3.95

>Number:         32669
>Category:       pkg
>Synopsis:       info files not packaged correctly
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 30 16:30:00 +0000 2006
>Closed-Date:    Tue Feb 07 19:23:53 +0000 2006
>Last-Modified:  Tue Feb 07 19:23:53 +0000 2006
>Originator:     Johan Danielsson
>Release:        NetBSD 3.0
>Organization:
	<organization of PR author (multiple lines)>
>Environment:
	<The following information is extracted from your kernel. Please>
	<append output of "ldd", "ident" where relevant (multiple lines).>
System: NetBSD shoal.pdc.kth.se 3.0 NetBSD 3.0 (SHOAL) #62: Mon Jan 30 10:07:28 CET 2006 joda@shoal.pdc.kth.se:/usr/src/sys/arch/i386/compile/SHOAL i386
Architecture: i386
Machine: i386
>Description:

Since the automatic PLIST info-file handling went in, packages (such
as emacs) does not packages correctly. The problem is that it
(plist-info.awk) assumes that info-files all end in .info, which they
do not.

>How-To-Repeat:

$ cd editors/emacs
$ make install
$ pkg_info -L emacs | grep info/emacs
$ ls /usr/pkg/info/emacs*

>Fix:

This seems to help the emacs situation, but I haven't really tested it
with anything else.

--- plist-info.awk.~1.1.~       2006-01-13 00:43:57.000000000 +0100
+++ plist-info.awk      2006-01-30 17:16:27.000000000 +0100
@@ -73,13 +73,17 @@
 ### For each info page entry, print all of the installed info sub-pages
 ### associated with that entry.
 ###
-/^[^@]/ && /^info\/[^\/]*\.info(\.gz)?$/ {
+/^[^@]/ && /^info\/[^\/]*(\.info)?(\.gz)?$/ {
        sub("^info/", INFO_DIR "/")
        cmd = TEST " -f " PREFIX "/" $0
        if (system(cmd) == 0) {
                sub("\.gz$", "")
+               base=$0
                cmd = "cd " PREFIX " && " LS " -1 " $0 "*"
                while (cmd | getline) {
+                       if($0 !~ base "(\.gz)?$" && $0 !~ base "-[0-9]+(\.gz)?$\
")
+                               continue;
+
                        #if ((MANZ ~ /[yY][eE][sS]/) && ($0 !~ /\.gz$/)) {
                        #       $0 = $0 ".gz"
                        #} else if ((MANZ !~ /[yY][eE][sS]/) && ($0 ~ /\.gz$/))\
 {

>Release-Note:

>Audit-Trail:
From: joerg@britannica.bec.de
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/32669: info files not packaged correctly
Date: Mon, 30 Jan 2006 18:12:29 +0100

 On Mon, Jan 30, 2006 at 04:30:01PM +0000, Johan Danielsson wrote:
 > Since the automatic PLIST info-file handling went in, packages (such
 > as emacs) does not packages correctly. The problem is that it
 > (plist-info.awk) assumes that info-files all end in .info, which they
 > do not.

 Why can't Emacs use makeinfo --no-split instead?

 Joerg

From: Johan Danielsson <joda@pdc.kth.se>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org,
	pkgsrc-bugs@netbsd.org
Subject: Re: pkg/32669: info files not packaged correctly
Date: Thu, 02 Feb 2006 11:33:30 +0100

 joerg@britannica.bec.de writes:

 >  Why can't Emacs use makeinfo --no-split instead?

 I suppose it can, but I don't think that's a solution to the problem,
 merely a workaround.

 /Johan

From: joerg@britannica.bec.de
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/32669: info files not packaged correctly
Date: Thu, 2 Feb 2006 12:26:54 +0100

 On Thu, Feb 02, 2006 at 10:35:01AM +0000, Johan Danielsson wrote:
 >  joerg@britannica.bec.de writes:
 >  
 >  >  Why can't Emacs use makeinfo --no-split instead?
 >  
 >  I suppose it can, but I don't think that's a solution to the problem,
 >  merely a workaround.

 <math> It depends on whether you consider info/foo[0-9]* valid
 or not. </math> Seriously, I'd like to consider it broken and to be
 avoided :-)

 Joerg

State-Changed-From-To: open->closed
State-Changed-By: jlam@netbsd.org
State-Changed-When: Tue, 07 Feb 2006 19:23:53 +0000
State-Changed-Why:
This is fixed in revision 1.5 of mk/plist/plist-info.awk based on your
suggested change.  Thanks for the PR!


>Unformatted:
 	<Please check that the above is correct for the bug being reported,>
 	<and append source date of snapshot, if applicable (one line).>

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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.