[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Documentation Directory Permissions in RPM File



I am doing a non-root build of a package and having a problem with
permissions on the documentation directories.  The permissions in the
binary rpm file do not match the permissions of the directories in the
build-root area.  I'm hoping someone can give me a quick pointer as to what
is happening.  How is the actual packaging from the installed files into
the rpm performed/controlled?  Following is some output showing the
problem.  I'll be happy to provide more information, if needed, but I'm
trying to keep it succinct.

I am using the rpm version that came with Red Hat 7.2 for Itanium, 4.0.2.
I know that's old, but I don't want to take the time to upgrade right now,
just to find out that the problem is caused to my setup (macros/spec).  Of
course, if this is a "known problem" that is fixed in 4.0.4, I'll be happy
to upgrade.

The package contains documentation that is installed in
/usr/share/doc/<package> and /usr/share/doc/<package>/doc.  Directories
<buildroot>/usr/share/doc/<package> and
<buildroot>/usr/share/doc/<package>/doc are created with 755 permissions.
The directories permissions shown in a --dump of the rpm file are 644.

[builder@v9klion install]$ ls -ld ./usr/share/doc/pset_utilities-1.7
./usr/share/doc/pset_utilities-1.7/doc
drwxr-xr-x    3 builder  builder      4096 Mar 11 11:09
./usr/share/doc/pset_utilities-1.7/
drwxr-xr-x    2 builder  builder      4096 Mar 11 11:09
./usr/share/doc/pset_utilities-1.7/doc/
[builder@v9klion RPMS]$ rpm -qp pset_utilities-1.7-3.ia64.rpm --dump
/usr/bin/psetbindp 10264 1047406196 08c17ab5ab52a9c08cdc5c6d1abd5397
0104755 root root 0 0 0 X
/usr/bin/psetps 12600 1047406196 dc5ab672ebe6013b1dbddbfdb5e09139 0100755
root root 0 0 34818 X
/usr/bin/psrset 27680 1047406196 7c5158ce8d76b4f886e65488dbc431f1 0100755
root root 0 0 0 X
/usr/lib/libpset.so 6607 1047406195 36a15ddccb108e023524ddfb36a5cb09
0100755 root root 0 0 0 X
/usr/share/doc/pset_utilities-1.7 4096 1047406196  040644 root root 0 0 0 X
/usr/share/doc/pset_utilities-1.7/COPYING 18454 967571314
fd5d9bcabd8ed5a54a01ce8d183d592a 0100644 root root 0 1 0 X
/usr/share/doc/pset_utilities-1.7/doc 4096 1047406185  040644 root root 0 0
0 X
/usr/share/doc/pset_utilities-1.7/doc/index.html 767 1047406185
963179a2f161cd3c6c9b85f2ed324560 0100644 root root 0 1 0 X
/usr/share/doc/pset_utilities-1.7/doc/pset_assign.html 2626 970674298
8e549303a7db2fc087e9090b9fb403f6 0100644 root root 0 1 0 X
/usr/share/doc/pset_utilities-1.7/doc/pset_bind.html 3587 967659290
44fdead186fdb68fe2d9b220ca6dc483 0100644 root root 0 1 0 X
/usr/share/doc/pset_utilities-1.7/doc/pset_create.html 4042 967835860
56794baebfa8cdfe25a10b439b4c54d4 0100644 root root 0 1 0 X
/usr/share/doc/pset_utilities-1.7/doc/pset_ctl.html 5285 967659301
d3324ba8ce650bfb19d4fac02ce3bafa 0100644 root root 0 1 0 X
/usr/share/doc/pset_utilities-1.7/doc/pset_destroy.html 2928 967659307
e5dd040e78123078153ac93f90bee7e9 0100644 root root 0 1 0 X
/usr/share/doc/pset_utilities-1.7/doc/pset_getattr.html 3348 967659313
89d45f783bfe371069aee3923128ac8d 0100644 root root 0 1 0 X
/usr/share/doc/pset_utilities-1.7/doc/psetbindp.html 1845 1047406185
a44f7155f99bc09759147113aa7266c4 0100644 root root 0 1 0 X
/usr/share/doc/pset_utilities-1.7/doc/psetps.html 872 967659319
cb93c3664107f0f942bcf7f090a2ce59 0100644 root root 0 1 0 X
/usr/share/doc/pset_utilities-1.7/doc/psrset.html 6863 968367234
14debcabc52c4c407e7699b655f0d850 0100644 root root 0 1 0 X

My spec file has the following %files section:

%files
%attr(0755, root, root) /usr/lib/libpset.so
%docdir doc
%attr(0644, root, root) %doc COPYING
%attr(0755, root, root) %doc doc
%attr(0755, root, root) /usr/bin/psrset
%attr(0755, root, root) /usr/bin/psetps
%attr(4755, root, root) /usr/bin/psetbindp

Note that I don't include a "%attr(4755, root, root)
/usr/share/doc/pset_utilities-1.7", but the %attr for the doc directory
isn't working.

Thanks,
Chad Farmer
Bull Information Systems






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []