tech-pkg archive

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

Re: mysql built with pkgsrc gcc6 missing atomic.so



On Tue, 30 Apr 2019 at 14:44, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
> > > > > The package-settable variable is USE_GCC_RUNTIME, which it should set.
> > > > >
> > > > > USE_PKGSRC_GCC_RUNTIME is a user variable indicating whether to depend
> > > > > on the -libs packages instead of the full gcc package.
> > > >
> > > > Great, thanks. Will poke mysql57-{client,server}. I don't use earlier
> > > > versions, but I can run a test build and check them with ldd to see if
> > > > they need the same.
> > >
> > > It's highly likely.  The number of packages that require
> > > USE_GCC_RUNTIME adding is huge, I gave up trying to add it everywhere
> > > and instead now just set it globally for our packages (which always
> > > ship pkgsrc gcc-libs).
> >
> > That seems a very pragmatic option :)
> >
> > I wonder if it would be practical for have the wrappers pick up on
> > -latomic and similar and automatically add USE_GCC_RUNTIME... Though
> > that is probably just overcomplicating things...
>
> At that point it's too late, the package needs to have already been
> installed and the specs file be in use.

Ahh...

AIUI the issue is a package which is built by pkgsrc gcc is missing
the runtime dependency on gcc-libs/gcc. So something which checks at
build time for -latomic  should be able to flag that the extra
dependency is needed, and if it can't automatically add the dependency
it should be able detect that its missing and fail the build if
PKG_DEVELOPER?

David


Home | Main Index | Thread Index | Old Index