[SOLVED] Re: optionsng ignores /var/db/ports/<portname>/options

Roland Smith rsmith at xs4all.nl
Tue Jun 5 05:49:14 UTC 2012


On Mon, Jun 04, 2012 at 09:36:35PM -0400, Greg Larkin wrote:
> >> Hi Roland,
> >> 
> >> I don't think you want to hardcode the "py27-" in the variable 
> >> assignment, since it ties the filename to a specific version of 
> >> Python.  Check PYTHON_PKGNAMEPREFIX, and it should adjust itself
> >> as the Python version changes.
> > 
> > Actually, if I understood correctly, the fact that
> > PYTHON_PKGNAMEPREFIX _changes_ from py- to py27- in different parts
> > of the included .mk files is what causes the problem in the first
> > place. So I did this on purpose.
> > 
> > Roland
> 
> Hi Roland,
> 
> Ok, I should have read the previous thread emails more closely.  At
> any rate, putting a specific Python version into the name of the
> OPTIONSFILE seems a bit confusing. 

OTOH, it keeps the name of /var/db/port/<name>/options in line with the
packagename (without the version number), and it is what most Python-based
ports seem to do.

> Could you achieve the same outcome
> by putting "py-" instead of "py27-" in the name?

Yes, more or less. There are ports that do that as well. But the majority seem
to include the python version. AFAICT to be able to install the same package
with different options for different Python versions. 

Anyway, the PR for updating my port is out. And one of the maintainers is
working on some of the warts of the ports system. It turns out that this bug
was already reported two years ago. But the ports system is quite a complex
beast...  

Roland
-- 
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20120605/e630fb0a/attachment-0001.pgp


More information about the freebsd-questions mailing list