Bug 98362

Summary: error in spec file
Product: [Retired] Red Hat Linux Beta Reporter: Gerald Teschl <gt>
Component: kernelAssignee: Dave Jones <davej>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: alpha 3CC: chris.ricker, pfrields, riel
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: 2004-10-26 04:49:32 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: 100644    

Description Gerald Teschl 2003-07-01 18:04:22 UTC
The script

find $RPM_BUILD_ROOT/usr/src/linux-%{KVERREL} -name ".*depend" | \
while read file ; do
    mv $file $file.old
    sed -e "s|[^ ]*\(/usr/src/linux\)|\1|g" < $file.old > $file
    rm -f $file.old
done

in the kernel spec file will replace

.PRECIOUS:      /usr/src/linux-2.4.21-2gt/include/asm/apicdef.h

by

/usr/src/linux-2.4.21-2gt/include/asm/apicdef.h

and hence corrupt the corresponding file. Probaly the sed should read

sed -e "s|$RPM_BUILD_ROOT||g" < $file.old > $file