pkgsrc-Users archive

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

Re: rust: use system libunwind



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:

ls -l work/.buildlink/lib/libunwind*

lrwxrwxrwx 1 bacon bacon 38 Apr  4 07:08 work/.buildlink/lib/libunwind.a
-> /home/bacon/Pkgsrc/pkg/lib/libunwind.a
lrwxrwxrwx 1 bacon bacon 39 Apr  4 07:08
work/.buildlink/lib/libunwind.so -> /home/bacon/Pkgsrc/pkg/lib/libunwind.so*
lrwxrwxrwx 1 bacon bacon 41 Apr  4 07:08
work/.buildlink/lib/libunwind.so.1 ->
/home/bacon/Pkgsrc/pkg/lib/libunwind.so.1*
lrwxrwxrwx 1 bacon bacon 43 Apr  4 07:08
work/.buildlink/lib/libunwind.so.1.0 ->
/home/bacon/Pkgsrc/pkg/lib/libunwind.so.1.0*

On my Lubuntu system, the Debian package installed it to
/usr/lib/x86_64-linux-gnu/.

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.



Home | Main Index | Thread Index | Old Index