rpmbuild kernel.spec error

Justin Conover justin.conover at gmail.com
Sun Mar 12 15:32:13 UTC 2006


On 3/12/06, Justin Conover <justin.conover at gmail.com> wrote:
>
>
>
> On 3/12/06, Justin Conover <justin.conover at gmail.com> wrote:
> >
> >
> >
> > On 3/12/06, Justin Conover < justin.conover at gmail.com> wrote:
> > >
> > > This is from 2041.src.rpm
> > >
> > > $ rpmbuild -bp kernel-2.6.spec
> > > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.39530
> > > + umask 022
> > > + cd /home/justin/rpmbuild/BUILD
> > > + LANG=C
> > > + export LANG
> > > + unset DISPLAY
> > > + '[' '!' -d kernel-2.6.15/vanilla ']'
> > > + cd kernel-2.6.15
> > > + '[' -d linux-2.6.15.x86_64 ']'
> > > + mv linux-2.6.15.x86_64 deleteme
> > > + rm -rf deleteme
> > > + '[' -d xen ']'
> > > + cp -rl vanilla linux-2.6.15.x86_64
> > > + cp -rl xen-vanilla xen
> > > cp: cannot stat `xen-vanilla': No such file or directory
> > > error: Bad exit status from /var/tmp/rpm-tmp.39530 (%prep)
> > >
> > >
> > > RPM build errors:
> > >     Bad exit status from /var/tmp/rpm-tmp.39530 (%prep)
> > >
> > > $ pwd
> > /home/justin/rpmbuild/BUILD/kernel-2.6.15
> >
> > $ ls
> > linux-2.6.15  linux-2.6.15.x86_64  vanilla
> >
> > $ mkdir xen-vanilla
> >
> > spec now starts to build, so there is a mkdir xen-vanilla or something
> > along those lines missing
> >
> > After that, it breaks on a patch
> >
> > + patch -p1 -s
> > 1 out of 4 hunks FAILED -- saving rejects to file
> > arch/i386/kernel/sysenter.c.rej
> > error: Bad exit status from /var/tmp/rpm-tmp.35125 (%prep)
> >
> >
> > RPM build errors:
> >     Bad exit status from /var/tmp/rpm-tmp.35125 (%prep)
> >
>
>
>   rpmbuild -bp --target=x86_64 kernel-2.6.spec
>
>
> # Exec-shield.
> #Patch810: linux-2.6-execshield.patch
> #Patch814: linux-2.6-execshield-fixes.patch
>
> # Exec shield
> #%patch810 -p1
> # Final small execshield fixes.
> #%patch814 -p1
>
>
> Builds fine with out those, but I assume we want the exec shield stuff ;)
>


There is two // between arch and Makefile

+ make ARCH= nonint_oldconfig
Makefile:438: /home/justin/rpmbuild/BUILD/kernel-2.6.15/linux-
2.6.15.x86_64/arch//Makefile: No such file or directory
make: *** No rule to make target `/home/justin/rpmbuild/BUILD/kernel-2.6.15
/linux-2.6.15.x86_64/arch//Makefile'.  Stop.
error: Bad exit status from /var/tmp/rpm-tmp.62781 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.62781 (%prep)


$ tail /var/tmp/rpm-tmp.6278

# make sure the kernel has the sublevel we know it has. This looks weird
# but for -pre and -rc versions we need it since we only want to use
# the higher version when the final kernel is released.
perl -p -i -e "s/^SUBLEVEL.*/SUBLEVEL = 15/" Makefile
perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -prep/" Makefile

# get rid of unwanted files resulting from patch fuzz
find . -name "*.orig" -o -name "*~" -exec rm -f {} \; >/dev/null &

###
### build
###

exit 0[
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20060312/b971c44b/attachment.htm>


More information about the fedora-test-list mailing list