tech-pkg archive

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

Re: Getting the version of an installed dependency?



On Sun, Aug 11, 2024 at 08:26:48AM +0200, Thomas Klausner wrote:
> On Sun, Aug 11, 2024 at 10:49:56AM +1000, Paul Ripke wrote:
> > I'm cleaning up a bunch of packages to commit, and have run into
> > something I don't have a clean solution for:
> > 
> > wip/nlopt optionally installs file paths containing the version string
> > from the installed math/octave... currently I'm storing OCTAVE_VERSION
> > in nlopt's options.mk, but this is rather fragile. Is there a common
> > solution? Export OCTAVE_VERSION from octave's buildlink3.mk?
> 
> Probably best to set OCTAVE_VERSION in math/octave/version.mk and use
> that in both math/octave/Makefile and wip/nlopt/Makefile, or?
>  Thomas

Ah! Perfect - now that I look around, that seems to be a common pattern.
How can I make this happen? I'm still not a dev.

-- 
Paul Ripke
"Great minds discuss ideas, average minds discuss events, small minds
 discuss people."
-- Disputed: Often attributed to Eleanor Roosevelt. 1948.


Home | Main Index | Thread Index | Old Index