Mailinglist Archive: opensuse-bugs (4724 mails)

< Previous Next >
[Bug 594310] New: rpm: using %defattr multiple times doesn't work as expected
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 7 Apr 2010 10:23:08 +0000
  • Message-id: <bug-594310-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=594310

http://bugzilla.novell.com/show_bug.cgi?id=594310#c0


Summary: rpm: using %defattr multiple times doesn't work as
expected
Classification: openSUSE
Product: openSUSE 11.3
Version: Factory
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Development
AssignedTo: pth@xxxxxxxxxx
ReportedBy: vuntz@xxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---


gnome-games fails to build in Factory with this error:

The following directories are not even executable by their owner:
drw-rw-r-- 2 root root 0 Apr 5 22:45
/usr/share/gnome-games/glines
drw-rw-r-- 2 root root 0 Apr 5 22:45
/usr/share/gnome-games/glines/pixmaps

However, the directories are executable at the end of %install, so the
executable bit gets lost when creating the rpm file. Looking at the %files
section, we have this:

%files -n glines -f glines.schemas_list
%defattr (0755, games, games)
%verify(not mode) %{_bindir}/glines
%defattr (0664, games, games)
%ghost %{_localstatedir}/games/glines.Large.scores
%ghost %{_localstatedir}/games/glines.Medium.scores
%ghost %{_localstatedir}/games/glines.Small.scores
%defattr(-, root, root)
%{_datadir}/applications/glines.desktop
%{_datadir}/gnome-games/glines/
%{_datadir}/icons/hicolor/*/apps/gnome-glines.*
%{_mandir}/man?/glines.*

So it appears to me that the %defattr(-, root, root) line doesn't work as
expected. And indeed, it works if I change the %files section to:

%files -n glines -f glines.schemas_list
%defattr(-, root, root)
%{_datadir}/applications/glines.desktop
%{_datadir}/gnome-games/glines/
%{_datadir}/icons/hicolor/*/apps/gnome-glines.*
%{_mandir}/man?/glines.*
%defattr (0755, games, games)
%verify(not mode) %{_bindir}/glines
%defattr (0664, games, games)
%ghost %{_localstatedir}/games/glines.Large.scores
%ghost %{_localstatedir}/games/glines.Medium.scores
%ghost %{_localstatedir}/games/glines.Small.scores

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >