Bug 127025

Summary: perl-5.8.4-3: strip warnings
Product: [Fedora] Fedora Reporter: Jose Pedro Oliveira <jose.p.oliveira.oss>
Component: perlAssignee: Chip Turner <cturner>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: scop, wtogami
Target Milestone: ---Keywords: EasyFix, Patch
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-01-29 21:45:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 136450    
Attachments:
Description Flags
Fix against current CVS devel none

Description Jose Pedro Oliveira 2004-06-30 19:18:33 UTC
Description of problem:
Building perl with a non-root account generates a lot warnings
during the stripping process.

Version-Release number of selected component (if applicable):
perl-5.8.4-3

How reproducible:
Always.


Steps to Reproduce:
Normal building procedures (rpmbuild -ba perl.spec)
  
Actual results:
...
/usr/bin/strip: unable to copy file
'/var/tmp/perl-root/usr/lib/perl5/5.8.4/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a'
reason: Permission denied
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
/usr/bin/objdump
/usr/bin/strip: unable to copy file
'/var/tmp/perl-root/usr/lib/perl5/5.8.4/i386-linux-thread-multi/CORE/libperl.so'
reason: Permission denied
/usr/bin/strip: unable to copy file
'/var/tmp/perl-root/usr/lib/perl5/5.8.4/i386-linux-thread-multi/auto/File/Glob/Glob.so'
reason: Permission denied

   (several lines reporting the same problem were deleted)

...

Expected results:
No warnings.

Additional info:
Adding the line 

    chmod -R u+w $RPM_BUILD_ROOT/*

at the end of the install section resolves the problem.
Note: This line is recommended by fedora.us for perl related specfiles.

Comment 1 Ville Skyttä 2005-01-29 14:34:25 UTC
Created attachment 110380 [details]
Fix against current CVS devel

The changelog entry for this bug has been applied from bug 120772, but the
actual fix has not.  The attachment (against current CVS devel) fixes it.

This is no longer a big deal because find-debuginfo.sh can temporarily "chmod
+w" unwritable files during build, but would be nice to have applied so that
the file perms are consistent with the rest of the world, and things would work
if someone rebuilds this using an older version of rpm where the
find-debuginfo.sh workaround is not yet available.

Comment 2 Warren Togami 2005-01-29 21:45:07 UTC
Applied to FC4.