pkgsrc-Users archive

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

Re: rust: use system libunwind



On Thu, Apr 04, 2024 at 08:01:49AM -0500, Jason Bacon wrote:
> On 4/4/24 02:45, Thomas Klausner wrote:
> > On Wed, Apr 03, 2024 at 07:34:57PM -0500, Jason Bacon wrote:
> > > Barring any other feedback, I plan to commit the following patch tomorrow:
> > > 
> > > +# Linux "system" libunwind most likely comes from another package manager,
> > > +# and will vary widely across Linux distros.  It could also be upgraded
> > > +# by tools outside of pkgsrc, causing spontaneous breakage.
> > > +.if ${OPSYS} != "Linux"
> > >   CONFIGURE_ARGS+=       --llvm-libunwind=system
> > > +.endif
> > >   CONFIGURE_ARGS+=       --llvm-root=${BUILDLINK_PREFIX.llvm}
> > >   .endif
> > 
> > Where's your libunwind coming from?  The pkgsrc one should be linked
> > to the buildlink dir and used in preferance to the base system one.
> >   Thomas
> 
> The pkgsrc libunwind is indeed linked into the bl3 directory, but it's
> being ignored when --llvm-libunwind=system is in play:

Well, that's the bug then, in the build system of the package that
ignores it.

> My Alma 8 system doesn't have it at all outside of pkgsrc.  Which raises
> an even more important issue about relying on "system" libraries under
> Linux: They may or may not exist in the first place, or may be outright
> removed beyond the control of pkgsrc.

Yes, we don't want to depend on the "system" libraries on Linux.
 Thomas


Home | Main Index | Thread Index | Old Index