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

Roland Smith rsmith at xs4all.nl
Mon Jun 4 21:26:21 UTC 2012

On Mon, Jun 04, 2012 at 04:01:27PM -0400, Greg Larkin wrote:
> > Well, it was a bug, but not particularly in showconfig alone, see
> > below.
> > 
> >>> If not, then something odd is happening, as your port looks
> >>> perfectly OK to me.  Are you using a ports tree updated within
> >>> about the last 48 hours or so?  I know there were some bug
> >>> fixes went in to all FOO_DESC lines to contain (brackets) and
> >>> other syntactically significant characters.
> >> 
> >> I updated my ports tree this afternoon. The really weird thing is
> >> that I tested 'make config' in several other ports where it
> >> worked fine...
> >> 
> >>> PS. Asking this on freebsd-ports at ... might be a good idea.
> > 
> > The bad news is that it was a bug in the ports system. It turned
> > out that because of the way the unique name of the port was set
> > (which happens twice), the options file is not read from the same
> > directory that it is written to! Thanks to Baptiste Daroussin for
> > clueing me in in this. I've gained a new respect for the people
> > maintaining the ports infrastructure. :-) It's kind of amazing it
> > works as well as it does.
> > 
> > The good news is that there are several workarounds. For future
> > reference, the workaround that I ended up using was to set the
> > following variable in the port makefile:
> > 
> > OPTIONSFILE=    ${PORT_DBDIR}/py27-${PORTNAME}/options
> > 
> > 
> > Roland
> 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.

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/20120604/8f800f5e/attachment.pgp

More information about the freebsd-questions mailing list