tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: use of PKGMAKECONF



George Georgalis <george%galis.org@localhost> writes:

> On Mon, Jan 07, 2008 at 02:49:41PM -0500, Johnny C. Lam wrote:
>> George Georgalis wrote:
>>> /usr/pkgsrc/doc/pkgsrc.txt says:
>>>   * PKGMAKECONF: Location of the mk.conf file used by a package's 
>>> BSD-style
>>>     Makefile. If this is not set, MAKECONF is set to /dev/null to avoid 
>>> picking
>>>     up settings used by builds in /usr/src.
>>> However pkgsrc seems to use /etc/mk.conf if it
>>> exists (PKGMAKECONF unset).
>>
>> I think you're misunderstanding the documentation for PKGMAKECONF.
>>
>> pkgsrc itself uses /etc/mk.conf (or if you bootstrapped your bmake, it uses 
>> ${PKG_SYSCONFBASE}/mk.conf).  PKGMAKECONF is the file used by packages that 
>> themselves use BSD makefiles (makefiles in ${WRKSRC}). The two are 
>> different.
>
> okay, I didn't realize they where different....
> thanks,
> // George

The documentation is correct, but I misread when George posted it as
well.  I think if the last sentence would be less confusing as:

  If this is not set, MAKECONF is set to /dev/null to avoid picking up
  settings intended to control builds of the base system or pkgsrc
  infrastructure.





Home | Main Index | Thread Index | Old Index