Skip site navigation (1)Skip section navigation (2)
Date:      21 Mar 2000 14:42:47 -0800
From:      asami@FreeBSD.org (Satoshi - Ports Wraith - Asami)
To:        "Akinori -Aki- MUSHA" <knu@idaemons.org>
Cc:        ports@FreeBSD.org
Subject:   versioning system (Re: cvs commit: ports/devel/ElectricFence ...)
Message-ID:  <vqck8iwueqg.fsf_-_@silvia.hip.berkeley.edu>
In-Reply-To: "Akinori -Aki- MUSHA"'s message of "Tue, 21 Mar 2000 13:04:21 %2B0900"
References:  <200003200237.SAA95508@freefall.freebsd.org> <vqchfe2f0vg.fsf@silvia.hip.berkeley.edu> <20000320084714.A96452@dragon.nuxi.com> <vqcu2i1ec5e.fsf@silvia.hip.berkeley.edu> <864sa16kai.wl@archon.local.idaemons.org>

next in thread | previous in thread | raw e-mail | index | archive | help
 * From: "Akinori -Aki- MUSHA" <knu@idaemons.org>

 *   But finally, I've successfully got one on VMware (!) last weekend.
 * So I guess I'll be able to resume the work.  Sorry for the delay.

Ok.

 *   As you are the ports master, you might want to contact Hubert Feyrer
 * <feyrer@rfhs8012.fh-regensburg.de> who is the pkgsrc leader and knows
 * everything about NetBSD's pkgsrc updates.
 * 
 *   Once he suggested that the NetBSD pkgsrc team and the FreeBSD ports
 * team should join hands and the easiest way to merge would be to base
 * NetBSD's pkg_* tools and bsd.pkg.mk, then make FreeBSD's chages after
 * NetBSD imported FreeBSD's stuff (around early in 1997) over them.
 * That's what I've been thinking too.

Hmm....

 *   Also, I'd mention that NetBSD's pkgsrc supports not only NetBSD but
 * also Linux, Solaris, etc.  Why not just add support for FreeBSD, one
 * of the easiest systems to port? :)

Are there a lot of people who use NetBSD's pkgsrc in Linux/Solaris/etc.?

 *   By the way, it's almost time to move to the ports list, isn't it? 

You are right.  (Moved.)

By the way, any comments on this?  I don't think this conflicts with
anything NetBSD has done.

===
I've also thought about adding a mandatory VERSION variable separate
from DISTNAME/PKGNAME, to have something like

PORTNAME=	foo
VERSION=	1.2

These two variables will be mandatory, and DISTNAME and PKGNAME will
be defined in bsd.port.mk as ${PORTNAME}-${VERSION}.  (The PKGNAME
will not be overridable; it will be an error for a port to define it.)

At least this will help ensure that the ${PKGNAME} will have correct
formats (well, you can always put a "-" in VERSION, but that's far
easier to find than going through a list of packages/All or
packages/Latest).
===

If nobody has any objections, I will go sweep through the tree and
make these changes.

In particular, bsd.port.mk will look like this:

===
.if defined(PKGNAME)
...error message
.endif

.if !defined(PORTNAME) || !defined(VERSION)
...error message
.endif

DISTNAME?= ${PORTNAME}-${VERSION}
PKGNAME=   ${PORTNAME}-${VERSION}
===

Also, the ${PKGBASE} variable (used for the "Latest" link) will be
changed to just reference ${PORTNAME}.

Satoshi


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?vqck8iwueqg.fsf_-_>