Subject: Re: DESTDIR and `make package'
To: Jim Wise <jwise@draga.com>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-pkg
Date: 01/26/2001 22:53:18
On Fri, 26 Jan 2001, Jim Wise wrote:
> Note that this just uses the -L / @src support already in pkg_create
> (presumably implemented to support this sort of thing).

Assuming this was tested with more than 1-2 simple pkgs, I only have one
small nit: can we please rename the variables different:

Rename BINPKG_ARGS => PKG_ARGS_COMMON

Then:

Instead of setting PKG_ARGS:
PKG_ARGS_INSTALL=       ${BASE_PKG_COMMON} \
			-p ${PREFIX} ${BASE_PKG_COMMON} -O

Instead of setting BINPKG_ARGS:
PKG_ARGS_PKGING=        ${BASE_PKG_COMMON} \
			-p ${PREFIX:C/^${DESTDIR}//} -L ${PREFIX}
 
Then in the first call to PKG_CREATE (line ~1565), use:
        if ${PKG_CREATE} ${PKG_ARGS_PKGING} ${PKGFILE}; then
 
In the second call to PKG_CREATE (line ~3197), use:
        ${PKG_CREATE} ${PKG_ARGS_INSTALL} ${PKGFILE}	\ 
		>${PKG_DBDIR}/${PKGNAME}/+CONTENTS;	\

Might make things a bit clearer...


 - Hubert

-- 
Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>