FS#63412 - [dhcpcd] Install permissions should be 755 or 644 to ensure stripping

Attached to Project: Arch Linux
Opened by Austin Lund (aplund) - Friday, 09 August 2019, 02:41 GMT
Last edited by Toolybird (Toolybird) - Sunday, 11 June 2023, 02:35 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Ronald van Haren (pressh)
Giancarlo Razzolini (grazzolini)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

The standard "make install" included upstream for dhcpcd doesn't set permissions to be user writable by default. This prevents some packaging features of makepkg from working (e.g. stripping debug symbols). Attached patch explicitly includes the install permissions and fixes the issue.

Steps to reproduce:

Run makepkg for dhcpcd with "strip" and "debug" set. No debugging package is made.
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 11 June 2023, 02:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  Seems fine these days.
Comment by Eli Schwartz (eschwartz) - Friday, 16 August 2019, 04:53 GMT
  • Field changed: Summary ([dhcpcd] Install permissions should be 755 or 644 → [dhcpcd] Install permissions should be 755 or 644 to ensure stripping)
  • Field changed: Status (Unconfirmed → Assigned)
  • Field changed: Category (Packages: Extra → Packages: Core)
  • Field changed: Architecture (x86_64 → All)
  • Field changed: Severity (Medium → Low)
  • Task assigned to Ronald van Haren (pressh)
$ file /usr/bin/dhcpcd /usr/lib/dhcpcd/dev/udev.so
/usr/bin/dhcpcd: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=5f82b975b1d20bff7b47e06b48064bbd87e8b9ad, for GNU/Linux 3.2.0, not stripped
/usr/lib/dhcpcd/dev/udev.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0e2d99d805444b1e0cf7390a3ade67720af6bd5b, not stripped


Not that this is the biggest deal in the world considering the package size, but, these files are not getting stripped (which makepkg is supposed to do according to our standard makepkg.conf).

And sure, this would also mean if/when we start shipping official debug packages, dhcpcd would not be able to include splitdebug packages.

Loading...