today when Im tring to refresh kernel 2.6.39 on my Fedora11 node, some small issue hit during make rpm progress.
1 2 3 4 5 6 |
[root@suse-pc linux-2.6.39]# make rpm make clean ... ... rpm --target i386 -ta ../kernel-2.6.39.ZIP.tar.gz --target: Unkown option |
double check and file the problem,
in the file linux-2.6.39/scripts/package/Makefile
, this scriptwill detect the current installation of rpmbuild. If failed it will choose rpm instead. That’s why I hit the problem.
1 2 3 4 5 6 |
23 24 # Do we have rpmbuild, otherwise fall back to the older rpm 25 RPM := $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo rpmbuild; 26 else echo rpm; fi) 27 |
fix:
just refresh the rpm-build
package and continue,.
1 |
yum install rpm-build -y |
手贱了吧。。。