tech-pkg archive

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

wip/halloy-2024.12, rpaths



I imported wip/halloy-2024.12. I'm not clear on handling rpaths with rust packages and was looking for comments.

Information for halloy-2024.12:

Comment:
IRC application written in Rust

Requires:
libxkbcommon>=1.7.0
alsa-lib>=1.2.7.2nb1

Description:
Halloy is an open-source IRC client written in Rust, with the Iced GUI
library. It aims to provide a simple and fast client for Mac,
Windows, and Linux platforms.

Features:
* IRCv3.2 capabilities
* SASL support
* DCC Send
* Keyboard shortcuts
* Auto-completion for nicknames, commands, and channels
* Notifications support
* Multiple channels at the same time across servers
* Commandbar for for quick actions
* Custom themes
* Portable mode

Homepage:
https://halloy.squidowl.org/

It appears to work correctly on NetBSD/amd64 9.3 on pkgsrc-2024Q3 (rust 1.79.0) with binary packages, as far as automatically joining #halloy on startup.

I did have to correct the rpath for audio/alsa-lib's libasound.so.2, but I did not need to do this for security/openssl or X11. I'm wondering if this might change with a PREFER_PKGSRC=yes environment, and whether this means I actually need to correct the rpath for them as well regardless.

# => Checking for missing run-time search paths in halloy-2024.12
# ERROR: bin/halloy: missing library: libasound.so.2
RUSTFLAGS+=     -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.alsa-lib}/lib

$ grep -C1 RUSTFLAGS shells/nushell/Makefile
MAKE_ENV+=      OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
RUSTFLAGS+=     -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib
RUSTFLAGS+=     -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libX11}/lib
RUSTFLAGS+=     -C link-arg=-L${BUILDLINK_PREFIX.libX11}/lib

--
Iris


Home | Main Index | Thread Index | Old Index