You are not logged in.

#1 2025-06-02 10:48:10

archdub
Member
From: Dublin, Ireland
Registered: 2018-03-04
Posts: 73

[solved] namcap error "Insecure RUNPATH"

I have just one error when running namcap on one package [1]:

nvi-multibyte-git E: Insecure RUNPATH '/home/myself/aur/nvi-multibyte-git/pkg/nvi-multibyte-git/usr/lib' in file ('usr/bin/nex')

I searched google and could not find a solution for this error. I am building on a regular folder, not chroot. Would this be the cause?

This PKGBUILD builds a library that is used by the main program.

[1] https://aur.archlinux.org/packages/nvi-multibyte-git

Last edited by archdub (2025-06-03 11:04:57)

Offline

#2 2025-06-02 11:22:21

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,862

Re: [solved] namcap error "Insecure RUNPATH"

I am building on a regular folder, not chroot. Would this be the cause?

Nope.

https://wiki.archlinux.org/title/Arch_p … TH/RUNPATH has some useful info .
fixing it will likely require changes to the build flags.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2025-06-02 17:52:08

archdub
Member
From: Dublin, Ireland
Registered: 2018-03-04
Posts: 73

Re: [solved] namcap error "Insecure RUNPATH"

Lone_Wolf wrote:

fixing it will likely require changes to the build flags.

Thanks.

I tried that but was not successful, due to the way that the loader interprets rpath.
I tried to change one line in the build system and that did not work either.
For a relatively small program, the build system is very complicated.
The issue I think should be solved upstream as I am not an expert on autotools.
So I won't fix this issue. It works fine for someone building a package for oneself.

Offline

#4 2025-06-03 11:05:13

archdub
Member
From: Dublin, Ireland
Registered: 2018-03-04
Posts: 73

Re: [solved] namcap error "Insecure RUNPATH"

I managed to solve the issue at hand by removing the rpath from the elf with chrpath.

https://aur.archlinux.org/packages/nvi-multibyte-git

Offline

Board footer

Powered by FluxBB