Mandrake Linux 8.0 uses RPM 4.0
http://www.rpm.org/ as its package manager but does some things a little differently. The man pages for rpm indicate that you can use rpm with the
-b
flag to build packages from source but this isn't the case - you have to install the
rpm-build
package and use
rpmbuild
instead. The command line args appear to be the same for
rpmbuild
as for rpm.
When you install a source rpm the files go into the
/usr/src/RPM/
directory, in various subdirectories.
rpmbuild -bc
{specfile} rebuilds the package. The specfile is probably in
/usr/src/RPM/SPECS/
.
Trying to build the kernel bombed with the following error:
+ echo MAKE DEPEND FOR smp i686 KERNEL...
MAKE DEPEND FOR smp i686 KERNEL...
+ make -s mrproper
+ install -m644 /usr/src/RPM/SOURCES/kernel-2.4.3-i686.config arch/i386/defconfig
install: /usr/src/RPM/SOURCES/kernel-2.4.3-i686.config: No such file or directory
Bad exit status from /var/tmp/rpm-tmp.68750 (%build)
[root@tiny RPM]#
I had to copy
usr/src/RPM/SOURCES/kernel-2.4.3-i586.config
to
usr/src/RPM/SOURCES/kernel-2.4.3-i686.config
(and edit the configuration, of course).
--
TobyCabot - 13 Jun 2001
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria?
Send feedback