You are not logged in.

#1 2020-10-28 15:22:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

A few questions/1st time building and packaging with rust

I'd like to provide a PKGBUILD for wireguard-vanity-address which is built by rust which is new to me within PKGBUILDs.  I took a stab at an initial release.

Firstly, are my build and package functions sane?  Are there more standard options I should be using?  Any feedback here is welcomed.
Secondly, namcap gives me two lines:

wireguard-vanity-address W: Unused shared library '/usr/lib/libm.so.6' by file ('usr/bin/wireguard-vanity-address')
wireguard-vanity-address E: Dependency gcc-libs detected and not included (libraries ['usr/lib/libgcc_s.so.1'] needed in files ['usr/bin/wireguard-vanity-address'])

I guess adding gcc-libs to the depends array is needed to correct the error.  I am not sure what action I should take about the warning.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2020-10-28 22:21:21

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: A few questions/1st time building and packaging with rust

export RUSTFLAGS="${RUSTFLAGS} -C link-arg=${LDFLAGS}"

To use LDFLAGS which should only link as needed.  Did not have any effect.

cargo build --release --locked --verbose

To see what is linking to libm.  Could not see anything explicitly linking to it.

I am not familiar with rust so those were my only ideas.

Offline

Board footer

Powered by FluxBB