Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Mar 1998 01:01:49 -0800 (PST)
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        hoek@hwcn.org
Cc:        chuckr@glue.umd.edu, obrien@NUXI.com, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-ports@FreeBSD.ORG
Subject:   Re: cvs commit: ports/print/c2ps Makefile
Message-ID:  <199803010901.BAA02340@bubble.didi.com>
In-Reply-To: <Pine.GSO.3.96.980228170200.8963C-100000@james.hwcn.org> (message from Tim Vanderhoek on Sat, 28 Feb 1998 19:53:21 -0500 (EST))

next in thread | previous in thread | raw e-mail | index | archive | help
 * If we add ports such as a2ps-letter, etc. being wholly
 * self-sufficient (ie. don't call `a2ps') then most of these
 * problems solve themselves.  Cookies aren't needed since
 * a2ps-letter can only do -letter.  INDEX isn't a problem. 
 * Packages are built properly.  If we lose the single "a2ps" port,
 * then the whole PAPERSIZE question becomes unnecessary.
 :
(pretty good summary deleted)

I think I give up on the "DTRT with PAPERSIZE if the user types `make'
in ports/print" idea.  People doing that can easily use DUDS or some
other method.  It's getting too confusing.

On the other hand, I really don't like the idea of having every single
port be self-sufficient.  We've already got too many "oops" commits,
and things like having someone update one pkg/PLIST but not its
counterpart is extremely hard to check.

We should accept the fact that downloading a single port has a very
good chance of breaking (think *_DEPENDS) and recommend users keep up
with the whole ports tree.

I can add something like this to bsd.port.mk to help unconfuse the users:

===
.if defined(INCLUDE_MAKEFILE_FROM)
.if !exists(${INCLUDE_MAKEFILE_FROM}/Makefile)
IGNORE=	"This port requires another port (${INCLUDE_MAKEFILE_FROM}). Please get that one too"
.else
.include (${INCLUDE_MAKEFILE_FROM})
.if ${REQUIRED_MAKEFILE_VERSION} != ${MAKEFILE_VERSION}
IGNORE= "Version of ${INCLUDE_MAKEFILE_FROM} disagrees with required version.  Please get an updated version first"
.endif
.endif
.endif
===

Then we have something like:

a2ps-letter/Makefile:

===
REQUIRED_MAKEFILE_VERSION=	1.3
INCLUDE_MAKEFILE_FROM=		../a2ps-a4

.include <bsd.port.mk>
===

a2ps-a4/Makefile:

===
MAKEFILE_VERSION=	1.3
===

Satoshi



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