Bug 11095
| Summary: | Bad exit status from ... %prep | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | C. Ray Ng <crn1> |
| Component: | rpm | Assignee: | Jeff Johnson <jbj> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.0 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| URL: | http://www.3ware.co.jp/ (sorry, Japanes only) | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2001-04-18 21:33:41 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: | |||
The _fixowner/_fixgroup/_fixuser macros are being phased out of rpm's default configuration. Configure per-system if you want the old behavior. |
When source tree includes symbolic link which points non-existent file and its owner/group is not root, automatically generated script for prep stage fails at chgrp line. This bug can be resolved either adding h option to the chgrp command or specifying "root.root" option to the chown command. A patch I created is attached below for your info. diff -uNr rpm-3.0.2.orig/macros.in rpm-3.0.2/macros.in --- rpm-3.0.2.orig/macros.in Sat May 15 03:59:43 1999 +++ rpm-3.0.2/macros.in Fri Apr 28 21:07:55 2000 @@ -65,7 +65,7 @@ # # XXX fixowner, fixgroup, and fixperms are run at the end of hardcoded setup %_fixowner [ `%{__id} -u` = '0' ] && %{__chown} -Rf root -%_fixgroup [ `%{__id} -u` = '0' ] && %{__chgrp} -Rf @ROOT_GROUP@ +%_fixgroup [ `%{__id} -u` = '0' ] && %{__chgrp} -Rhf @ROOT_GROUP@ %_fixperms %{__chmod} -Rf @FIXPERMS@ # %_gzipbin @GZIPBIN@