Skip to content

(#17866) RPM spec file work-around for RH Bugzilla 681540 (defattr overrides in-line attr)#1385

Closed
ryanuber wants to merge 1 commit intopuppetlabs:masterfrom
ryanuber:rpm-file-attr-workaround
Closed

(#17866) RPM spec file work-around for RH Bugzilla 681540 (defattr overrides in-line attr)#1385
ryanuber wants to merge 1 commit intopuppetlabs:masterfrom
ryanuber:rpm-file-attr-workaround

Conversation

@ryanuber
Copy link
Copy Markdown
Contributor

Once puppet #17866 was resolved (Puppet RPM's break themselves), yet another RPM problem surfaced. This issue is isolated to builds on RHEL 6.x due to the newer version of rpmbuild (4.8 on RHEL6). Previous versions of rpmbuild (4.4 from RHEL5.x) did not have this issue.

What the issue boils down to is that using the %attr tag after a %defattr tag has no effect.

To illustrate, the file attributes of the /test directory would come out as 0755 in the below example:

%defattr(-, root, root, 0755)
%attr(0750, root, root) /test

The work-around simply involves using %defattr multiple times rather than trying to override it with %attr in-line.

@jeffmccune
Copy link
Copy Markdown
Contributor

@haus @MosesMendoza does this look good to you guys?

@haus
Copy link
Copy Markdown
Contributor

haus commented Jan 15, 2013

👍

@jeffmccune
Copy link
Copy Markdown
Contributor

Merged into master as ea8901e.

This should be released in 3.1.0.

Thanks again for the contribution!

-Jeff

@ryanuber ryanuber deleted the rpm-file-attr-workaround branch January 17, 2013 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants