Subject: Re: RFC: Handle shared dirs in pkgviews
To: Julio M. Merino Vidal <jmmv@menta.net>
From: Min Sik Kim <minskim@NetBSD.org>
List: tech-pkg
Date: 07/07/2004 13:35:28
--Signature=_Wed__7_Jul_2004_13_35_28_-0500_GQH_t+kZg8ajMCz2
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

* Julio M. Merino Vidal, Wed, 7 Jul 2004 17:44:08 +0200:
> [snip]
> 
> The last solution, the one I'm proposing, is the following: make each
> package install itself in its own depot directory.  But, for packages
> that search for files in shared directories (pkgconfig, in this example),
> add a patch that changes the path where files are searched.  Instead of
> hardcoding the path value in the binary, the program should check the
> value of an env variable (PKG_VIEWBASE) and look for files there.
> I.e., pkgconfig could use ${PKG_VIEWBASE}/lib/pkgconfig to search its
> files.  (We'd make it fallback to the default view if the variable is
> unset).

I vote for this solution, but have a minor concern.  Many packages
already have such an env variable (e.g. PKG_CONFIG_PATH of pkgconfig).
Then wouldn't it be better to use it, instead of adding a patch to
teach PKG_VIEWBASE, especially when we create wrapper scripts to hide
PKG_VIEWBASE?

Other than that, I prefer this solution and I'm willing to help.

-- 
Min Sik Kim

--Signature=_Wed__7_Jul_2004_13_35_28_-0500_GQH_t+kZg8ajMCz2
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iQEVAwUBQOxCcPQsKR/Zi7L+AQKtEwgAj5qrndSHu6hohhTV328SqtSX5ncnSCLn
fh/ntlNjRE8yydoAfBGcnk5nGru+iU0eWMO2tP027yayWePCSujoqS31MQ3LszNJ
J12Xx6Yk/pCh4NO4W5Zbsq3GNGTQV0oK5b4ckNYFRaaP9X1GZ5fYI0Y0Z4zoBk+T
X9u14igXWgfRtpqQnvIPHPbFEy3PaEhoEW2IpUborKmUDCiFO48bH8RnCy6es2te
JTT9zQVxp9u7PB3rSuOfTvK4K1ZqYvp0yhGdB9fyMr5aKi1aGrr0uY8EmOxO/ZGf
L10YdSWGJbH72sArq+wHgXkon77c6zEUmnLPR+7PQCnpPnkNgddzqg==
=d4EU
-----END PGP SIGNATURE-----

--Signature=_Wed__7_Jul_2004_13_35_28_-0500_GQH_t+kZg8ajMCz2--