Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jan 2000 21:39:40 -0600
From:      Karl Denninger <karl@Denninger.Net>
To:        Steve Price <sprice@hiwaay.net>
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: ports/15822: Update port misc/HomeDaemon to V0.99
Message-ID:  <20000101213940.A18715@Denninger.Net>
In-Reply-To: <Pine.OSF.4.21.0001012128250.3979-100000@fly.HiWAAY.net>; from Steve Price on Sat, Jan 01, 2000 at 09:33:51PM -0600
References:  <20000101211436.A18365@Denninger.Net> <Pine.OSF.4.21.0001012128250.3979-100000@fly.HiWAAY.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 01, 2000 at 09:33:51PM -0600, Steve Price wrote:
> On Sat, 1 Jan 2000, Karl Denninger wrote:
> 
> # I can see some significant issues here after a bit of testing.
> # 
> # 1.	Environment assigned in the PORT Makefile is NOT transported
> # 	(or exported into the actual process environment) for things called
> # 	FROM that Makefile.  That is, I cannot set something in the PORT
> # 	makefile and have the other "base" Makefile leave it alone if its
> # 	set, but define it to a default if not.
> 
> Sure you can.  It is done all the time.  If you are talking about
> BINMODE, ... then it is because I didn't put it in ${MAKE_ENV}.
> PREFIX is by default in MAKE_ENV which is why is works already.
> 
> # 	This is a BIG problem, as it makes it next to impossible for you
> # 	to have a port that works in "either" format without duplicating
> # 	the installation rules and scripts directly in the port makefile.
> # 	Now you have TWO places and things to maintain instead of one (and
> # 	this sucks).  Further, and worse, you can get out of sync (which
> # 	will cause untoward trouble).
> # 
> # 2.	I can easily import from the base-level Makefile into the compiler
> # 	environment and have.  Now how do I get the PORT makefile to allow
> # 	overrides of this?  The second I cannot figure a way to do.
> 
> Things that can be overridded are defined like this.
> 
> FOO ?= bar

Yes, I know.

> # In general this looks to be a problem, and given the choice between
> # packaging as a port and following "the rules" (but leaving me with 
> # dependencies that have to be MANUALLY resolved between a port and its
> # underlying code) I'll pass on the port.
> # 
> # Let me know if I'm missing something - it certainly doesn't look like it.
> # 
> # Here's what I *WANT* to do:
> # 
> # # New ports collection makefile for:   HomeDaemon
> # # Version required:    0.99
> # # Date created:        1 January 2000
> # # Whom:                Karl Denninger
> # #
> # # $FreeBSD$
> # #
> # 
> # DISTNAME=       HomeDaemon-0.99
> # CATEGORIES=     misc
> # MASTER_SITES=   http://genesis.denninger.net/
> # 
> # MAINTAINER=     HomeDaemon@denninger.net
> # 
> # NO_CDROM="No commercial sale w/o permission - see README"
> # NO_PACKAGE="Source distribution only - see README"
> # 
> # BINMODE=        4700
> # BINOWN=         xten
> # SHAREMODE=      750
> # SHAREOWN=       ${BINOWN}
> # SHAREDIR=       ${PREFIX}/share/HomeDaemon
> 
> MAKE_ENV+=	BINMODE=${BINMODE} BINOWN=${BINOWN} \
> 		SHAREMODE=${SHAREMODE} SHAREOWN=${SHAREOWN} \
> 		SHAREDIR=${SHAREDIR}

Hmmm... now THAT I didn't know worked.

Ok, I'll give it a shot.  It may be a workable solution.

--
-- 
Karl Denninger (karl@denninger.net)  Web: http://childrens-justice.org
Isn't it time we started putting KIDS first?  See the above URL for
a plan to do exactly that!



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?20000101213940.A18715>