FS#62898 - [bolt] Directory permissions differ on /usr/share/polkit-1/rules.d/

Attached to Project: Community Packages
Opened by helle vaanzinn (glitsj16) - Friday, 14 June 2019, 15:56 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 14 June 2019, 16:39 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The directory permissions of /usr/share/polkit-1/rules.d/ in this package differ from the defaults as used in polkit. Hence pacman throws a warning that might confuse users.

Additional info:
* package version(s)

$ pacman -Q bolt
bolt 0.8-1

* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

$ sudo pacman -S bolt
resolving dependencies...
looking for conflicting packages...

Packages (1) bolt-0.8-1

Total Download Size: 0,11 MiB
Total Installed Size: 0,37 MiB
Net Upgrade Size: 0,00 MiB

:: Retrieving packages...
downloading bolt-0.8-1-x86_64.pkg.tar.xz...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
reinstalling bolt...
warning: directory permissions differ on /usr/share/polkit-1/rules.d/
filesystem: 750 package: 755
:: Running post-transaction hooks...

This could easily be circumvented by adding to the package() function used in bolt's PKGBUILD (lifted from how the systemd package does it):
...

package() {
cd $pkgname-$pkgver

# match directory owner/group and mode from [extra]/polkit
install -d -o root -g 102 -m 0750 "$pkgdir"/usr/share/polkit-1/rules.d

DESTDIR="${pkgdir}" ninja -C ../build install
}
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Friday, 14 June 2019, 16:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  bolt 0.8-2

Loading...