os-build created SRPM doesn't prep
After checking out the os-build
branch:
$ sed -i 's/=13/=11/g' redhat/configs/fedora/generic/arm/aarch64/CONFIG_FORCE_MAX_ZONEORDER
$ make dist-srpm
<snip>
Wrote: /home/hadess/Projects/kernel/kernel-ark/redhat/rpm/SRPMS/kernel-5.8.0-0.rc6.20200721git4fa640dc5230.0.test.fc33.src.rpm
make[1]: Leaving directory '/home/hadess/Projects/kernel/kernel-ark/redhat'
$ rpmbuild --rebuild -bp /home/hadess/Projects/kernel/kernel-ark/redhat/rpm/SRPMS/kernel-5.8.0-0.rc6.20200721git4fa640dc5230.0.test.fc33.src.rpm
Installing /home/hadess/Projects/kernel/kernel-ark/redhat/rpm/SRPMS/kernel-5.8.0-0.rc6.20200721git4fa640dc5230.0.test.fc33.src.rpm
setting SOURCE_DATE_EPOCH=1595289600
Executing(%prep): /bin/sh -e /home/hadess/Projects/packages/tmp/rpm-tmp.yw8Bf5
+ umask 022
+ cd /home/hadess/Projects/packages/BUILD
+ patch_command='patch -p1 -F1 -s'
+ cd /home/hadess/Projects/packages/BUILD
+ rm -rf kernel-20200721git4fa640dc5230
+ /usr/bin/mkdir -p kernel-20200721git4fa640dc5230
+ cd kernel-20200721git4fa640dc5230
+ /usr/bin/xz -dc /home/hadess/Projects/packages/SOURCES/linux-20200721git4fa640dc5230.tar.xz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ mv linux-20200721git4fa640dc5230 linux-5.8.0-0.rc6.20200721git4fa640dc5230.0.test.fc32.x86_64
+ cd linux-5.8.0-0.rc6.20200721git4fa640dc5230.0.test.fc32.x86_64
+ cp -a /home/hadess/Projects/packages/SOURCES/Makefile.rhelver .
+ ApplyOptionalPatch 0001-initial-commit-Add-Red-Hat-variables-in-the-top-leve.patch
+ local patch=0001-initial-commit-Add-Red-Hat-variables-in-the-top-leve.patch
+ shift
+ '[' '!' -f /home/hadess/Projects/packages/SOURCES/0001-initial-commit-Add-Red-Hat-variables-in-the-top-leve.patch ']'
++ wc -l /home/hadess/Projects/packages/SOURCES/0001-initial-commit-Add-Red-Hat-variables-in-the-top-leve.patch
++ awk '{print $1}'
+ local C=43
+ '[' 43 -gt 9 ']'
+ ApplyPatch 0001-initial-commit-Add-Red-Hat-variables-in-the-top-leve.patch
+ local patch=0001-initial-commit-Add-Red-Hat-variables-in-the-top-leve.patch
+ shift
+ '[' '!' -f /home/hadess/Projects/packages/SOURCES/0001-initial-commit-Add-Red-Hat-variables-in-the-top-leve.patch ']'
Patch2: 0001-initial-commit-Add-Red-Hat-variables-in-the-top-leve.patch
+ case "$patch" in
+ patch -p1 -F1 -s
1 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
error: Bad exit status from /home/hadess/Projects/packages/tmp/rpm-tmp.yw8Bf5 (%prep)
RPM build errors:
Bad exit status from /home/hadess/Projects/packages/tmp/rpm-tmp.yw8Bf5 (%prep)