Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 4522

Summary: chgrp fails building packages with symlinks
Product: [Retired] Red Hat Linux Reporter: Gordon Messmer <gordon.messmer>
Component: rpmAssignee: David Lawrence <dkl>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-08-14 19:01:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Gordon Messmer 1999-08-14 18:47:18 UTC
When attempting to build a package whose source contains
symlinks, chgrp returns -1.

The solution appears to be changing the macro:
%_fixgroup    		[ `%{__id} -u` = '0' ] && %{__chgrp} -Rf
root
to;
%_fixgroup    		[ `%{__id} -u` = '0' ] && %{__chgrp} -Rhf
root
in /usr/lib/rpm/macros

Comment 1 Jeff Johnson 1999-08-14 19:01:59 UTC
Fixed in (as yet unreleased) rpm-3.0.3. Thanks for the patch.