On Wed, Dec 23, 2020 at 1:21 PM Michael Orlitzky <m...@gentoo.org> wrote:
>
> On 12/23/20 12:13 PM, Jonathan Callen wrote:
> >
> > One way this could be done without breaking things might be to create a
> > subdirectory of /usr/$(get_libdir) for each version of Lua and creating
> > a liblua.a and/or liblua.so symlink in that directory pointing to the
> > liblua${VERSION}.* file in /usr/$(get_libdir).  Then you could simply
> > point those build systems at that directory and they would still use the
> > correct version.  As a hack in an ebuild, you probably could just create
> > such a setup in (subdirectories of) ${T}, pointing liblua.a, liblua.so,
> > and lua.pc at the appropriately-versioned files.
>
> All of these packages are masked, so breakage isn't an issue.
>
> And since these hacks are needed in every package that will link against
> liblua, doesn't it sound like something the eclass should be doing? Even
> the CMake packages would benefit, no longer having to pass in
> -DLUA_INCLUDE_DIR and -DLUA_LIBRARY by hand.

Most ebuilds in the gentoo repo are either using pkg-config, or
already have hacks/patches applied. Perhaps if this idea were offered
earlier in the year, it might have actually helped.

The versioned libdir subdirectory seems like a nice idea for people
building stuff against lua outside of ebuilds. Jonathan's proposal
could be treated as an enhancement at a later date.

Reply via email to