Bug 228987 - find-debuginfo: also fix source code perms in /usr/src/debug
find-debuginfo: also fix source code perms in /usr/src/debug
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Panu Matilainen
Depends On:
  Show dependency treegraph
Reported: 2007-02-16 07:07 EST by Joe Orton
Modified: 2008-05-06 21:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-06 21:11:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Joe Orton 2007-02-16 07:07:32 EST
Description of problem:
find-debuginfo already fixes directory permissions in /usr/src/debug but not
file permissions; seems sensible to fix this once globally; packages which
happen to ship with odd source file perms are not uncommon.

find ${RPM_BUILD_ROOT}/usr/src/debug -type f -print0 | xargs -0 chmod 0644
Comment 1 Jeff Johnson 2007-02-16 07:18:38 EST
adding %defattr is likely easiies change to control both file/directory perms.
Comment 2 Joe Orton 2007-02-19 13:52:09 EST
AFAICS the macros already declare a defattr for the debuginfo subpackage and it
doesn't take; defattr doesn't apply to -f files list, right?
Comment 3 Michael Jennings (KainX) 2007-02-19 13:57:19 EST
No, but %defattr can appear in the -f files list.  It should be fairly easy to
prepend it.
Comment 4 Jeff Johnson 2007-02-19 16:57:32 EST
%defattr can be used multiple times, in file manifests, and in mixed
file manifests amnd lists.

Be forewarned: The scoping of %defattr is likely different than what you expect,
iirc only the last %defattr encountered is used.
Comment 5 Red Hat Bugzilla 2007-08-21 01:31:59 EDT
User pnasrat@redhat.com's account has been closed
Comment 6 Panu Matilainen 2007-08-22 02:30:14 EDT
Reassigning to owner after bugzilla made a mess, sorry about the noise...
Comment 7 Bug Zapper 2008-04-03 15:09:56 EDT
Based on the date this bug was created, it appears to have been reported
against rawhide during the development of a Fedora release that is no
longer maintained. In order to refocus our efforts as a project we are
flagging all of the open bugs for releases which are no longer
maintained. If this bug remains in NEEDINFO thirty (30) days from now,
we will automatically close it.

If you can reproduce this bug in a maintained Fedora version (7, 8, or
rawhide), please change this bug to the respective version and change
the status to ASSIGNED. (If you're unable to change the bug's version
or status, add a comment to the bug and someone will change it for you.)

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we're following is outlined here:

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.
Comment 8 Bug Zapper 2008-05-06 21:11:47 EDT
This bug has been in NEEDINFO for more than 30 days since feedback was
first requested. As a result we are closing it.

If you can reproduce this bug in the future against a maintained Fedora
version please feel free to reopen it against that version.

The process we're following is outlined here:

Note You need to log in before you can comment on or make changes to this bug.