/opt/$pkgname is not considered valid location for ELF files
Task Info (Flyspray) | |
---|---|
Opened By | Alexander Kobel (akobel) |
Task ID | 59813 |
Type | Bug Report |
Project | Arch Linux |
Category | Arch Projects |
Version | None |
OS | All |
Opened | 2018-08-26 12:16:15 UTC |
Status | Assigned |
Assignee | Kyle Keen (keenerd) |
Details
According to the Namcap wiki page, the rule elffile-not-in-allowed-dirs should accept /opt/$pkgname/ as a valid location for ELF files, in accordance with the Linux Filesystem Hierarchy Standard. (From https://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/opt.html: "Generally, all data required to support a package on a system must be present within /opt/'package', including files intended to be copied into /etc/opt/'package' and /var/opt/'package' as well as reserved directories in /opt.")
But currently namcap reports "ELF files outside of a valid path ('opt/')." and does not seem to check for the $pkgname subdirectory.
Additional info:
- package version(s):
extra/namcap 3.2.8-2 (which reports itself as 3.2.7 with
namcap -v
?)
Steps to reproduce: makepkg and namcap .pkg.tar for the attached trivial PKGBUILD (which just copies sed from /usr/bin to /opt/$pkgname/bin)