On Fri, 2004-07-16 at 12:40, Matt Hansen wrote: > Hello all, > > I'm trying to rebuild the kernel 2197 src.rpm for athlon and i386 but it > keeps failing with the following exit status in the i386 build section: > ln: creating symbolic link > `/var/tmp/kernel-2.4.22-1.2197.nptl.mh-root/lib/modules/*/build' to > '../../../usr/src/linux-2.4.22-1.2197.mh': No such file or directory. > bad exit status from /var/tmp/rpm-tmp.34893 (%install) Well, it turns out that the kernel spec wasn't finding the source files in the existing /usr/src/linux-2.4.22-1.2197.nptl directory (i.e. those installed by kernel-source) because it was expecting them in /usr/src/linux-2.4.22-1.2197.nptl.mh ("mh" being the extra text recommended to be added to the Release field for custom kernels). Creating a symlink from /usr/src/linux-2.4.22-1.2197.nptl.mh to /usr/src/linux-2.4.22-1.2197.nptl enabled the spec to find the source files and complete the builds of kernel/kernel-doc/kernel-source. What I'd like to know is why I had to manually create that symlink? I thought it should have been done automatically (if so needed) in the spec file. I haven't read anything mentioning the need to do this so maybe there's something amiss with my system configuration? Any thoughts welcome. Regards, Matt -- "Would you buy a car with the hood welded shut?" - Bob Young on the benefits of the open source development model. mhelios - www.fedoraforum.org
Attachment:
signature.asc
Description: This is a digitally signed message part