Re: make rpm fails

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

 



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

On Friday 02 May 2003 02:59 pm, Bret Comstock Waldow wrote:
> I ran "make rpm".
>
> After much time, the build fails with this:

> Processing files: kernel-debuginfo-2.4.209custom-2
> error: Could not open %files file
> /usr/src/redhat/BUILD/kernel-2.4.209custom/debugfiles.list: No such
> file or directory

Hi Bret,
I'll ignore all the other replies on the topic, and address the problem 
you asked about in the first place. ;)

What you are trying to do is possible. (and you have done it correctly)
"spec" and "rpm" are valid targets in the kernel Makefile. 

> RPM build errors:
>     Could not open %files file
> /usr/src/redhat/BUILD/kernel-2.4.209custom/debugfiles.list: No such
> file or directory
> make: *** [rpm] Error 1
> [root@xxxxxxx linux-2.4]# ls /usr/src

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

(I don't like building rpms as root, but that's another rant.)

> My understanding was making the custom kernel as an rpm allows the Red
> Hat upgrade mechanism to continue working, and I thought I'd try that.
>
> Can anyone tell me what to do to make "make rpm" work, or perhaps what
> I should be doing instead?

'make rpm' is as straightforward as any other method, I suppose.
Others have suggested installing kernel-something.src.rpm. That works as 
well, but is a little complicated if you actually want to make a change 
to a config file. You have to install the package, generate a config for 
your setup, figure out how to force the use of your config file during 
the build process...


- -- 
- -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+sx5mn/07WoAb/SsRAsXwAJ45F5pdtx8s0WWdPkDrtK8RnHwvogCff84i
8Z3WEMPzH6Bdwh28LPE1ios=
=zOnn
-----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