NetBSD Problem Report #40515

From www@NetBSD.org  Thu Jan 29 18:10:10 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 81A4563C04A
	for <gnats-bugs@gnats.netbsd.org>; Thu, 29 Jan 2009 18:10:10 +0000 (UTC)
Message-Id: <20090129181010.135EB63C040@narn.NetBSD.org>
Date: Thu, 29 Jan 2009 18:10:10 +0000 (UTC)
From: jfisher4@cinci.rr.com
Reply-To: jfisher4@cinci.rr.com
To: gnats-bugs@NetBSD.org
Subject: cdpack has problems when mk.conf has "PKG_SUFX= .tbz"
X-Send-Pr-Version: www-1.0

>Number:         40515
>Category:       pkg
>Synopsis:       cdpack has problems when mk.conf has "PKG_SUFX= .tbz"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dmcmahill
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 29 18:15:00 +0000 2009
>Closed-Date:    Mon May 25 04:09:26 +0000 2009
>Last-Modified:  Mon May 25 04:09:26 +0000 2009
>Originator:     John fisher
>Release:        NetBSD current as of 20081020
>Organization:
>Environment:
NetBSD rterm.rse.com 4.99.73 NetBSD 4.99.73 (GENERIC_JDF) #0: Tue Oct 21 09:07:54 EDT 2008  root@rterm.rse.com:/usr/INSTALL-current-20080908/NetBSD-current-20081020/src/sys/arch/i386/compile/GENERIC_JDF i386

>Description:
cdpack hard codes tgz suffix which causes problems if you build packages with "PKG_SUFX= .tbz" set in mk.conf.  Below shows that the package jpilot-syncmal link name gets the added extention of .tgz to it, and the link points to the file jpilot-syncmal-0.80.tbz.tgz which does not exists, jpilot-syncmal-0.80.tbz does though (also show below).  This produces warning messages of "WARNING:  binary package "jpilot-syncmal-0.80.tbz" has zero size".

disk1/packages/All>ls -al jpilot-syncmal*
lrwxr-xr-x  1 root  wheel  52 Jan 29 11:51 jpilot-syncmal-0.80.tbz.tgz@ -> /usr/pkgsrc/packages/All/jpilot-syncmal-0.80.tbz.tgz

disk1/packages/All>ls -al /usr/pkgsrc/packages/All/jpilot-syncmal*
-rw-r--r--  1 root  wheel  11561 Jan 24 10:27 /usr/pkgsrc/packages/All/jpilot-syncmal-0.80.tbz

>How-To-Repeat:
add/change in mk.conf PKG_SUFX= .tbz
compile several packages in /usr/pkgsrc
I created a common directory with some added files (not really needed to see the problem)
I ran: cdpack -dvd -ac -af -X /common /usr/pkgsrc/packages/All /dvdimages

>Fix:
Suggestion:
Have cdpack check in mk.conf for PKG_SUFX and pass what it is set to to basename for the suffix instead of tgz.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->dmcmahill
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 31 Jan 2009 10:36:53 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->feedback
State-Changed-By: dmcmahill@NetBSD.org
State-Changed-When: Fri, 20 Feb 2009 05:18:36 +0000
State-Changed-Why:
I just updated cdpack to version 1.9 which adds support for .tbz files
.


From: Dan McMahill <dmcmahill@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/40515 CVS commit: pkgsrc/pkgtools/cdpack
Date: Fri, 20 Feb 2009 05:16:51 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	dmcmahill
 Date:		Fri Feb 20 05:16:51 UTC 2009

 Modified Files:
 	pkgsrc/pkgtools/cdpack: Makefile
 	pkgsrc/pkgtools/cdpack/files: cdgen.awk cdpack.1 cdpack.sh

 Log Message:
 Update to cdpack-1.9.  This version teaches cdpack how to add packages
 ending in .tbz as well as .tgz.  Should address the problem reported
 in PR pkg/40515.  I am explicitly not using the mk.conf settings
 for PKG_SUFX though because at run time we may or may not have a valid
 mk.conf on hand that corresponds to how the packages were built.


 To generate a diff of this commit:
 cvs rdiff -r1.28 -r1.29 pkgsrc/pkgtools/cdpack/Makefile
 cvs rdiff -r1.6 -r1.7 pkgsrc/pkgtools/cdpack/files/cdgen.awk
 cvs rdiff -r1.13 -r1.14 pkgsrc/pkgtools/cdpack/files/cdpack.1
 cvs rdiff -r1.12 -r1.13 pkgsrc/pkgtools/cdpack/files/cdpack.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: John Fisher <jfisher4@cinci.rr.com>
To: gnats-bugs@gnats.netbsd.org
Cc: 
Subject: Subject: Re: pkg/40515
Date: Wed, 20 May 2009 08:41:46 -0400

 Sorry, but I haven't had time to check out these changes, and won't for quit 
 some time.  You might consider closing this PR anyway.

 -- 
 John Fisher

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 25 May 2009 04:09:26 +0000
State-Changed-Why:
Should be fixed, submitter can't test anytime soon


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.