Bug 13113 - polkit install-data-local fails to create directory for PolicyKit.reload
Summary: polkit install-data-local fails to create directory for PolicyKit.reload
Status: RESOLVED FIXED
Alias: None
Product: PolicyKit
Classification: Unclassified
Component: daemon (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: David Zeuthen (not reading bugmail)
QA Contact: David Zeuthen (not reading bugmail)
URL: http://bugs.gentoo.org/show_bug.cgi?i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-06 15:06 UTC by Ed Catmur
Modified: 2007-11-12 15:37 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
PolicyKit.reload.patch (452 bytes, patch)
2007-11-06 15:07 UTC, Ed Catmur
Details | Splinter Review

Description Ed Catmur 2007-11-06 15:06:36 UTC
When building policykit in Gentoo, with staged install:

touch
/var/tmp/portage/sys-auth/policykit-0.7_p20071101/image//var/lib/misc/PolicyKit.reload
 /bin/sh ../libtool --mode=install /usr/bin/install -c  'libpolkit.la'
'/var/tmp/portage/sys-auth/policykit-0.7_p20071101/image//usr/lib/libpolkit.la'
touch: cannot touch
`/var/tmp/portage/sys-auth/policykit-0.7_p20071101/image//var/lib/misc/PolicyKit.reload':
No such file or directory
make[2]: [install-data-local] Error 1 (ignored)
chgrp: cannot access
`/var/tmp/portage/sys-auth/policykit-0.7_pre20071101/image//var/lib/misc/PolicyKit.reload':
No such file or directory
make[2]: [install-data-local] Error 1 (ignored)
chmod 775
/var/tmp/portage/sys-auth/policykit-0.7_pre20071101/image//var/lib/misc/PolicyKit.reload
chmod: cannot access
`/var/tmp/portage/sys-auth/policykit-0.7_pre20071101/image//var/lib/misc/PolicyKit.reload':
No such file or directory
make[2]: [install-data-local] Error 1 (ignored)

result is that /var/lib/misc/PolicyKit.reload is not installed, and hal cannot start.
Comment 1 Ed Catmur 2007-11-06 15:06:54 UTC
Also downstream at http://bugs.gentoo.org/show_bug.cgi?id=198073
Comment 2 Ed Catmur 2007-11-06 15:07:11 UTC
Created attachment 12373 [details] [review]
PolicyKit.reload.patch

Patch.
Comment 3 David Zeuthen (not reading bugmail) 2007-11-12 10:19:17 UTC
Fixed although this is a problem with Gentoo insofar that it's not FHS2.3 compliant:

http://www.pathname.com/fhs/pub/fhs-2.3.html#VARLIBMISCMISCELLANEOUSVARIABLEDATA
Comment 4 Ed Catmur 2007-11-12 11:11:46 UTC
(In reply to comment #3)
> Fixed although this is a problem with Gentoo insofar that it's not FHS2.3
> compliant:
> 
> http://www.pathname.com/fhs/pub/fhs-2.3.html#VARLIBMISCMISCELLANEOUSVARIABLEDATA

For the record, the standard Gentoo base install does include /var/lib/misc in the root - however, installs are made to an empty staging directory (using DESTDIR).  I'm fairly sure the binary distros use much the same method when building packages - so you can't expect all the FHS dirs to be in DESTDIR.
Comment 5 David Zeuthen (not reading bugmail) 2007-11-12 15:37:54 UTC
(In reply to comment #4)
> For the record, the standard Gentoo base install does include /var/lib/misc in
> the root - however, installs are made to an empty staging directory (using
> DESTDIR).  I'm fairly sure the binary distros use much the same method when
> building packages - so you can't expect all the FHS dirs to be in DESTDIR.

We do and you make a good point. I haven't got around to rolling packages but I'm sure I would run into the same issue when I got there. Thanks.



Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.