tech-pkg archive

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

Re: Application of package options from within buildlink3.mk?



* On 2025-06-20 at 16:16 BST, Havard Eidnes wrote:

Ref. that work/.stage-install_makevars.mk file which appears to
act as a cache remembering wrong settings in my case.

Work directories must _always_ be removed if _anything_ changes.

Of course.  That's why I was surprised.

Remember, what I said I did was:

- Remove all work dirs from the /usr/pkgsrc tree
- Update pkgsrc to HEAD
- Do "make update" in textproc/libxml2/

How that .stage-install_makevars.mk file came into being after
this, and how it came to contain the wrong values I have no idea
about.  I don't think any of my actions should have caused that
to happen.

The way PKG_BUILD_OPTIONS works is to query the currently installed package. My guess is that you had a much older package installed at the start, "pkg_info -Q PKG_OPTIONS" for that old package returned empty, and that value was cached and ultimately used even though at some point later the installed package was updated with the correct option.

--
Jonathan Perkin                    pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index