Re: make rpm fails

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 03 May 2003 11:02 am, Bret Comstock Waldow wrote:
> On Fri, 2003-05-02 at 21:41, Michael Fratoni wrote:
> > RPM auto generates a debug.rpm by default. It's failing here for some
> > reason. You can try:
> >
> > # echo "%debug_package          %{nil}" >> ~/.rpmmacros
> >
> > # cd /usr/src/linux-2.4
> > # make rpm
>
> This failed with this (partial) output:

Hrmm, I did this here, just to verify that it worked. The package built 
without any problems. What I did:
make mrproper
cp configs/kernel-2.4.18-i686.config .config
make dep
make rpm

This built the following package:
/usr/src/redhat/RPMS/i386/kernel-2.4.209custom-1.i386.rpm

However, a few things of note with this method...
The file name would indicate an i386 kernel. This is misleading, as the 
kernel is for an i686.

Also, while a usable package is created, it lacks a few features that 
would be available if it were built from the Red Hat kernel*.src.rpm

# rpm -qp /usr/src/redhat/RPMS/i386/kernel-2.4.209custom-1.i386.rpm 
- --scripts
#
No pre or post install scripts are included. This mean the package would 
need to be manually configured. (create initrd.img, add to boot loader, 
etc.)

Compare to a stock Red Hat kernel package:
$ rpm -qp --scripts 
~/devel/dist-9/updated/athlon/kernel-2.4.20-9.athlon.rpm
preinstall scriptlet (through /bin/sh):
/sbin/modprobe loop 2> /dev/null > /dev/null  || :
exit 0
postinstall scriptlet (through /bin/sh):
cd /boot
ln -sf vmlinuz-2.4.20-9 vmlinuz
ln -sf System.map-2.4.20-9 System.map
ln -sf module-info-2.4.20-9 module-info
[ -x /usr/sbin/module_upgrade ] && /usr/sbin/module_upgrade
[ -x /sbin/mkkerneldoth ] && /sbin/mkkerneldoth
if [ -x /sbin/new-kernel-pkg ] ; then
        /sbin/new-kernel-pkg --mkinitrd --depmod --install 2.4.20-9
fi
preuninstall scriptlet (through /bin/sh):
/sbin/modprobe loop 2> /dev/null > /dev/null  || :
#rm -f /lib/modules/2.4.20-9/modules.*
if [ -x /sbin/new-kernel-pkg ] ; then
 /sbin/new-kernel-pkg --rminitrd --rmmoddep --remove 2.4.20-9
fi


- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+tGmFn/07WoAb/SsRAsj0AJ9yoaAQcANWv0DUt74QkwbSV7iu7QCgtzzt
tJzw50TTd3SURaTJN9Xqlo4=
=fMtb
-----END PGP SIGNATURE-----





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux