Re: rpmbuild kernel.spec error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 3/12/06, Justin Conover <justin.conover@xxxxxxxxx> wrote:


On 3/12/06, Justin Conover < justin.conover@xxxxxxxxx> wrote:


On 3/12/06, Justin Conover < justin.conover@xxxxxxxxx> wrote:


On 3/12/06, Justin Conover < justin.conover@xxxxxxxxx> 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[

Stuff from 810

Patch #810 (linux-2.6-execshield.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.40602 (%prep)


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

$ tail /var/tmp/rpm-tmp.40602
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
###


Stuff from 814

Patch #814 ( linux-2.6-execshield-fixes.patch):
+ patch -p1 -s
1 out of 1 hunk FAILED -- saving rejects to file arch/i386/kernel/traps.c.rej
1 out of 1 hunk FAILED -- saving rejects to file include/asm-i386/desc.h.rej
error: Bad exit status from /var/tmp/rpm- tmp.93927 (%prep)


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

$ tail /var/tmp/rpm-tmp.93927
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


I'm seeing references to Makefile :)
-- 
fedora-test-list mailing list
fedora-test-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-test-list

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]