Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#65140 - [namcap] namcap-ignore-so-no-pie.patch is applied incorrectly

Attached to Project: Arch Linux
Opened by Chih-Hsuan Yen (yan12125) - Tuesday, 14 January 2020, 13:12 GMT
Last edited by Jonas Witschel (diabonas) - Wednesday, 22 June 2022, 12:01 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



namcap-ignore-so-no-pie.patch [1], which is from [2], is already applied in namcap.git [3]. However, PKGBUILD of extra/namcap still attempts to apply this patch. As a result, this patch is incorrectly applied to another rule ELFUnstrippedRule. From the log for prepare(),

> patching file Namcap/rules/
> Hunk #1 succeeded at 189 (offset -39 lines).


Additional info:
extra/namcap 3.2.10

Steps to reproduce:
1. Create PKGBUILD and foobar.c

==> PKGBUILD <==
build() {
gcc $LDFLAGS -g -fPIC foobar.c -shared -o
package() {
install -Dm755 -t "$pkgdir"/usr/lib

==> foobar.c <==
int foobar() {}

2. Run makepkg
3. Run namcap for the built package

Expected results: (with namcap-ignore-so-no-pie.patch removed from PKGBUILD)
foobar W: ELF file ('usr/lib/') is unstripped.

Actual results:
no warnings or errors from namcap
This task depends upon

Closed by  Jonas Witschel (diabonas)
Wednesday, 22 June 2022, 12:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  namcap 3.3.0-1