Simon Matter
2011-Aug-12 13:07 UTC
[CentOS] Wrong directory permissions in RPMs build on CentOS6
Hi, I have rebuilt all our source RPMs on CentOS 6 and found they sometimes differ in directory permissions compared to those built on CentOS 3, 4 and 5. The problem is that %defattr overrides %attr on directories. Have a look at this example spec file: --%<--------------------------------- Summary: foo Name: mini Version: 0.1 Release: 1%{?dist} Group: System Environment/Daemons License: GPLv2+ BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-root %description foo %prep %install %{__install} -d %{buildroot}/XXX %files %defattr(0644,root,root,0755) %attr(0730,root,nobody) %dir /XXX --%<--------------------------------- The rpm file list build on EL5 looks like this: drwx-wx--- 2 root nobody 0 Aug 12 14:16 /XXX The same rebuilt on EL6: drwxr-xr-x 2 root nobody 0 Aug 12 14:19 /XXX So the EL6 package seems wrong. Novell has a BZ entry about this bug: https://bugzilla.novell.com/show_bug.cgi?id=629048 Now my questions 1) did I miss the obvious? 2) am I the only one seeing this? 3) is this fixed in EL6.1 (can anyone test this on RHEL6.1?) I've looked up RedHat's bugzilla but couldn't find anything related. Regards, Simon
Seemingly Similar Threads
- [PATCH ovirt-node] Removed subpackages, stateful, stateless, logos, and selinux for inclusuion in Fedora
- Re: [CentOS-devel] Areca RAID drivers
- failure building memcached rpm
- [PATCH node] drop collectd startup reordering hack
- [PATCH] move dracut config and patching to spec