Work around this bug in moblin kernel building by adding "%_default_patch_fuzz 2" to ~/.rpmmacros
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Chris Masone Sent: 2009年4月10日 15:48 To: Peter-Jan Deweirdt Cc: [email protected] Subject: Re: [Moblin Dev] failed to compile moblin kernel I ran into this too; I changed rpmbuild to use --fuzz=2 and that worked. You should be able to find a fuzziness setting in the systemwide rpmbuild macros file. You can change it there or override it just for your account. On Apr 10, 2009, at 12:42 AM, Peter-Jan Deweirdt <[email protected]> wrote: > Hi, > > I tried to compile the kernel (no changes made) from the source code > I've downloaded from the moblin site. > I get the following error: > > [pjdewei...@lindevel SPECS]$ rpmbuild -ba kernel.spec > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kN6bkZ > + umask 022 > + cd /home/pjdeweirdt/rpmbuild/BUILD > + LANG=C > + export LANG > + unset DISPLAY > + '[' '!' -d kernel-2.6.28/vanilla-2.6.29-rc7 ']' > + rm -f pax_global_header > + cd /home/pjdeweirdt/rpmbuild/BUILD > + rm -rf kernel-2.6.28 > + /bin/mkdir -p kernel-2.6.28 > + cd kernel-2.6.28 > + /usr/bin/bzip2 -dc /home/pjdeweirdt/rpmbuild/SOURCES/ > linux-2.6.28.tar.bz2 > + /bin/tar -xf - > + STATUS=0 > + '[' 0 -ne 0 ']' > + /bin/chmod -Rf a+rX,u+w,g-w,o-w . > + mv linux-2.6.28 vanilla-2.6.29-rc7 > + cd vanilla-2.6.29-rc7 > + echo 'Patch #0 (patch-2.6.29-rc7.bz2):' > Patch #0 (patch-2.6.29-rc7.bz2): > + /usr/bin/bzip2 -dc /home/pjdeweirdt/rpmbuild/SOURCES/patch-2.6.29- > rc7.bz2 > + /usr/bin/patch -s -p1 --fuzz=0 > + echo 'Patch #1 (linux-2.6-build-nonintconfig.patch):' > Patch #1 (linux-2.6-build-nonintconfig.patch): > + /bin/cat /home/pjdeweirdt/rpmbuild/SOURCES/linux-2.6-build- > nonintconfig.patch > + /usr/bin/patch -s -p1 --fuzz=0 > + echo 'Patch #2 (linux-2.6.29-retry-root-mount.patch):' > Patch #2 (linux-2.6.29-retry-root-mount.patch): > + /bin/cat /home/pjdeweirdt/rpmbuild/SOURCES/linux-2.6.29-retry-root- > mount.patch > + /usr/bin/patch -s -p1 --fuzz=0 > + echo 'Patch #3 (linux-2.6.29-dont-wait-for-mouse.patch):' > Patch #3 (linux-2.6.29-dont-wait-for-mouse.patch): > + /bin/cat /home/pjdeweirdt/rpmbuild/SOURCES/linux-2.6.29-dont-wait- > for-mouse.patch > + /usr/bin/patch -s -p1 --fuzz=0 > + echo 'Patch #4 (linux-2.6.29-fast-initrd.patch):' > Patch #4 (linux-2.6.29-fast-initrd.patch): > + /bin/cat /home/pjdeweirdt/rpmbuild/SOURCES/linux-2.6.29-fast- > initrd.patch > + /usr/bin/patch -s -p1 --fuzz=0 > + echo 'Patch #5 (linux-2.6.29-sreadahead.patch):' > Patch #5 (linux-2.6.29-sreadahead.patch): > + /bin/cat /home/pjdeweirdt/rpmbuild/SOURCES/linux-2.6.29- > sreadahead.patch > + /usr/bin/patch -s -p1 --fuzz=0 > + echo 'Patch #6 (linux-2.6.29-enable-async-by-default.patch):' > Patch #6 (linux-2.6.29-enable-async-by-default.patch): > + /bin/cat /home/pjdeweirdt/rpmbuild/SOURCES/linux-2.6.29-enable- > async-by-default.patch > + /usr/bin/patch -s -p1 --fuzz=0 > + echo 'Patch #7 (linux-2.6.29-drm-revert.patch):' > Patch #7 (linux-2.6.29-drm-revert.patch): > + /bin/cat /home/pjdeweirdt/rpmbuild/SOURCES/linux-2.6.29-drm- > revert.patch > + /usr/bin/patch -s -p1 --fuzz=0 > 1 out of 2 hunks FAILED -- saving rejects to file drivers/gpu/drm/ > i915/i915_dma.c.rej > 1 out of 1 hunk FAILED -- saving rejects to file drivers/gpu/drm/ > i915/i915_drv.h.rej > error: Bad exit status from /var/tmp/rpm-tmp.kN6bkZ (%prep) > > > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.kN6bkZ (%prep) > > > > > _______________________________________________ > Moblin dev Mailing List > [email protected] > > To manage or unsubscribe from this mailing list visit: > https://lists.moblin.org/mailman/listinfo/dev or your user account > on http://moblin.org once logged in. > > For more information on the Moblin Developer Mailing lists visit: > http://moblin.org/community/mailing-lists _______________________________________________ Moblin dev Mailing List [email protected] To manage or unsubscribe from this mailing list visit: https://lists.moblin.org/mailman/listinfo/dev or your user account on http://moblin.org once logged in. For more information on the Moblin Developer Mailing lists visit: http://moblin.org/community/mailing-lists _______________________________________________ Moblin dev Mailing List [email protected] To manage or unsubscribe from this mailing list visit: https://lists.moblin.org/mailman/listinfo/dev or your user account on http://moblin.org once logged in. For more information on the Moblin Developer Mailing lists visit: http://moblin.org/community/mailing-lists
