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@
The _fixowner/_fixgroup/_fixuser macros are being phased out of rpm's default configuration. Configure per-system if you want the old behavior.