Dear
All, I need
some help regarding rpm build for RHEL4U3. I tried
to create an rpm using an rpm spec file pasted below. I created the rpm with
the command rpmbuild
–bb –-target i386 rpmspec.spec The rpm
was successfully created in the directory /usr/src/redhat/RPMS/i386/kernel-2.6.9.34.gcov-1.i386.rpm But when
I tried to install that rpm I get the following error. error:
Failed dependencies: scripts/kconfig/libkconfig.so
is needed by kernel-2.6.9-34.gcov-1.i386 If I use
the –-nodeps option I am able to install the rpm. RPM Version: 4.3.3 Can
anybody help me out in this issue? RPMSPECFILE ============ Name:
kernel Summary:
The Linux Kernel Version:
2.6.9.34.gcov Release:
1 License:
GPL Group:
System Environment/Kernel BuildRoot:
/var/tmp/%{name}-%{PACKAGE_VERSION}-root Provides:
kernel-2.6.9-34.gcov %description The
Linux Kernel, the operating system core itself %install %ifarch
ia64 mkdir -p
$RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules
$RPM_BUILD_ROOT/usr/src/ %else mkdir -p
$RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules
$RPM_BUILD_ROOT/usr/src/ %endif cp
/usr/src/linux-2.6.9-34.gcov/System.map
$RPM_BUILD_ROOT/boot/System.map-2.6.9-34.gcov %ifarch
ia64 cp
/boot/vmlinuz-2.6.9-34.gcov $RPM_BUILD_ROOT/boot/efi/vmlinuz-2.6.9-34.gcov cp
/boot/initrd-2.6.9-34.gcov.img $RPM_BUILD_ROOT/boot/efi/initrd-2.6.9-34.gcov.img ln -s
/boot/efi/vmlinuz-2.6.9-34.gcov $RPM_BUILD_ROOT/boot/vmlinuz-2.6.9-34.gcov ln -s
/boot/efi/System.map-2.6.9-34.gcov $RPM_BUILD_ROOT/boot/System.map %else cp
/boot/vmlinuz-2.6.9-34.gcov $RPM_BUILD_ROOT/boot/vmlinuz-2.6.9-34.gcov cp
/boot/initrd-2.6.9-34.gcov.img
$RPM_BUILD_ROOT/boot/efi/initrd-2.6.9-34.gcov.img ln -s
/boot/efi/vmlinuz-2.6.9-34.gcov $RPM_BUILD_ROOT/boot/vmlinuz-2.6.9-34.gcov ln -s
/boot/efi/System.map-2.6.9-34.gcov $RPM_BUILD_ROOT/boot/System.map %endif cp
/home/linuxsrc/linux-2.6.9-34.gcov/.config
$RPM_BUILD_ROOT/boot/config-2.6.9-34.gcov cp
/boot/initrd-2.6.9-34.gcov.img $RPM_BUILD_ROOT/boot/initrd-2.6.9-34.gcov.img cp -r
/usr/src/linux-2.6.9-34.gcov $RPM_BUILD_ROOT/usr/src/ cp -r
/lib/modules/2.6.9-34.gcov $RPM_BUILD_ROOT/lib/modules/ %clean rm -rf
$RPM_BUILD_ROOT %files %defattr(-,root,root) %dir
/lib/modules /lib/modules/2.6.9-34.gcov /boot/* %dir
/usr/src/ /usr/src/linux-2.6.9-34.gcov ================================================================================================================= Thanks
& Regards, Sundar |
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list