Incorrect configuration of %_sharedstatedir in rpmbuild
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rpm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Description: Ubuntu 18.04.2 LTS
Release: 18.04
rpm:
Installiert: 4.14.1+dfsg1-2
Installations
Versionstabelle:
*** 4.14.1+dfsg1-2 500
500 http://
100 /var/lib/
Executed commands: $> rpmbuild -E %_localstatedir
Expected results: /var
Actual results: /var
Rationale: Although the GNU Coding Standards proclaim that 'localstatedir' should always be set to '$(prefix)/var' and 'sharedstatedir' should always be set to '$(prefix)/com', RPM overrides 'localstatedir' in 'platform.in' to '/var'. It would be very useful (and in accordance with other Linux distributions like Fedora) to replace 'sharedstatedir' with a more familiar value '/var/lib'. Unfortunately, this has to be triggered manually at compile-time of the RPM sources with './configure --sharedstatedi