NetBSD Problem Report #26464

Received: (qmail 674 invoked by uid 605); 28 Jul 2004 14:20:31 -0000
Message-Id: <20040728142021.E889C1FA7@fnord.ir.bbn.com>
Date: Wed, 28 Jul 2004 10:20:21 -0400 (EDT)
From: gdt@ir.bbn.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: gdt@ir.bbn.com
To: gnats-bugs@gnats.netbsd.org
Subject: pkgsrc/Packages.txt does not explain how to do 'OR' dependencies
X-Send-Pr-Version: 3.95

>Number:         26464
>Category:       pkg
>Synopsis:       pkgsrc/Packages.txt does not explain how to do 'OR' dependencies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bsiegert
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 28 14:21:00 +0000 2004
>Closed-Date:    Sat Aug 24 17:14:25 +0000 2013
>Last-Modified:  Sat Aug 24 17:15:00 +0000 2013
>Originator:     Greg Troxel
>Release:        NetBSD 1.6.2_STABLE
>Organization:
        Greg Troxel <gdt@ir.bbn.com>
>Environment:


System: NetBSD fnord.ir.bbn.com 1.6.2_STABLE NetBSD 1.6.2_STABLE (FNORD) #9: Thu Jun 24 11:55:53 EDT 2004 root@fnord.ir.bbn.com:/usr/home/gdt/QUIST-current/netbsd/src/sys/arch/i386/compile/FNORD i386
Architecture: i386
Machine: i386
>Description:
Packages.txt explains how to use DEPENDS+=, but doesn't explain how to
depend on either or two packages.
>How-To-Repeat:
Try to get mklivecd to use cdrtools-ossdvd if installed rather than
forcing cdrecord, read Packages.txt before posting, and get told the
answer in email.

>Fix:

Index: Packages.txt
===================================================================
RCS file: /NETBSD-CVS/pkgsrc/Packages.txt,v
retrieving revision 1.341
diff -u -r1.341 Packages.txt
--- Packages.txt	24 Jul 2004 01:57:07 -0000	1.341
+++ Packages.txt	28 Jul 2004 14:10:46 -0000
@@ -2193,6 +2193,12 @@
 library has changed with version 3.5.4 and a package would not compile against
 an earlier version of tiff.

+If your package needs a program or library which might be installed by
+several packages, use {pkg1,pkg2} in the depends line to express an "OR"
+dependency:
+
+	DEPENDS+=	{cdrecord,cdrtools-ossdvd}-[0-9]*:../../sysutils/cdrecord
+
 Please note that such dependencies should only be updated if a package requires
 a newer pre-requisite, but not to denote recommendations such as security
 updates or ABI changes that do not prevent a package from building correctly.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: joerg@netbsd.org
Responsible-Changed-When: Thu, 05 Oct 2006 16:55:52 +0000
Responsible-Changed-Why:
Roland handles most of the Guide. I'm not sure whether we actually want to
document it though (and the wildcard should be in the alternative, IMO).


Responsible-Changed-From-To: rillig->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 01 Mar 2012 22:37:42 +0000
Responsible-Changed-Why:
d

rillig resigned, back to role account


Responsible-Changed-From-To: pkg-manager->bsiegert
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Tue, 26 Mar 2013 13:26:04 +0000
Responsible-Changed-Why:
Looks easy; I'm taking this.


From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/26464 CVS commit: pkgsrc/doc/guide/files
Date: Sat, 24 Aug 2013 16:55:21 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Sat Aug 24 16:55:21 UTC 2013

 Modified Files:
 	pkgsrc/doc/guide/files: fixes.xml

 Log Message:
 Explain how to do OR dependencies. Requested by gdt in PR/26464, not even
 ten years ago.


 To generate a diff of this commit:
 cvs rdiff -u -r1.122 -r1.123 pkgsrc/doc/guide/files/fixes.xml

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

From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/26464 CVS commit: pkgsrc/doc
Date: Sat, 24 Aug 2013 17:02:56 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Sat Aug 24 17:02:56 UTC 2013

 Modified Files:
 	pkgsrc/doc: pkgsrc.html pkgsrc.txt

 Log Message:
 Regenerate the guide after fixing PR/26464.


 To generate a diff of this commit:
 cvs rdiff -u -r1.164 -r1.165 pkgsrc/doc/pkgsrc.html
 cvs rdiff -u -r1.167 -r1.168 pkgsrc/doc/pkgsrc.txt

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

State-Changed-From-To: open->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 24 Aug 2013 17:14:25 +0000
State-Changed-Why:
The info has been added to the guide. Thanks for having nine years of patience.


From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/26464 CVS commit: htdocs/docs/pkgsrc
Date: Sat, 24 Aug 2013 17:11:30 +0000

 Module Name:	htdocs
 Committed By:	bsiegert
 Date:		Sat Aug 24 17:11:30 UTC 2013

 Modified Files:
 	htdocs/docs/pkgsrc: fixes.html

 Log Message:
 Copy updated guide chapter to htdocs, part of PR/26464.


 To generate a diff of this commit:
 cvs rdiff -u -r1.31 -r1.32 htdocs/docs/pkgsrc/fixes.html

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

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