[CentOS-devel] there's something happened between kernel 2.6.28-128.1.1 and 2.6.18-128.1.6 compilation

Mon Apr 20 10:29:59 UTC 2009
Farkas Levente <lfarkas at lfarkas.org>

Karanbir Singh wrote:
> Farkas Levente wrote:
>> what's more the same is not true for rhel's kernel ie. in case of rhel's
>> 2.6.18-128.1.6 it gives unifdef. so it's a centos bug and with this bug
>> centos don't follow upstream behavior.
>> just my 2c.
> 
> sounds like an issue on your setup rather than at the centos end, the 
> kernels build fine in mock for me, and the sources match whats upstream.

ok i try to describe in more detail the problem:
run this two command on centos's src.rpm:
--------------------------------------
rpm -qp --requires kernel-2.6.18-128.1.1.el5.src.rpm | grep unifdef
rpm -qp --requires kernel-2.6.18-128.1.6.el5.src.rpm | grep unifdef
--------------------------------------
now download rhel's src.rpm and run it on that rpms. the result are
different. while both rhel's src.rpm are required unifdef the latest
centos kernel do _not_ require unifdef. it has nothing to do with my
setup since all these files are downloaded from centos and rhel.
anyway see this bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=496464
and if i build in mock i've got:
----------------------------------
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.7677
+ umask 022
+ cd /builddir/build/BUILD
+ cd kernel-2.6.18
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd linux-2.6.18.i386
+ make ARCH=i386
INSTALL_HDR_PATH=/var/tmp/kernel-2.6.18-128.1.6.el5-root/usr headers_install
  CHK     include/linux/version.h
  UPD     include/linux/version.h
make: execvp: unifdef: Permission denied
make: *** [headers_install] Error 127
error: Bad exit status from /var/tmp/rpm-tmp.7677 (%install)
RPM build errors:
    Could not canonicalize hostname: buildsys
    Bad exit status from /var/tmp/rpm-tmp.7677 (%install)
Child returncode was: 1
----------------------------------



-- 
  Levente                               "Si vis pacem para bellum!"