From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 Description of problem: Trying to recompile the packages of the new kernel kernel-2.4.18-19.8 from its source package kernel-2.4.18-19.8.0.src.rpm fails with: Patch #1600 (linux-2.4.18-procfixes.patch): + patch -p1 -s 1 out of 1 hunk FAILED -- saving rejects to file drivers/net/natsemi.c.rej Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. download kernel-2.4.18-19.8.0.src.rpm 2. install it with rpm -ivh kernel-2.4.18-19.8.0.src.rpm 3. rpmbuild -ba kernel-2.4.spec Actual Results: Patch #1600 (linux-2.4.18-procfixes.patch): + patch -p1 -s 1 out of 1 hunk FAILED -- saving rejects to file drivers/net/natsemi.c.rej Expected Results: to continue the normal compilation... Additional info: drivers/net/natsemi.c.rej: *** 1963,1968 **** if (copy_from_user(&eeprom, useraddr, sizeof(eeprom))) return -EFAULT; if ((eeprom.offset+eeprom.len) > NATSEMI_EEPROM_SIZE) { eeprom.len = NATSEMI_EEPROM_SIZE-eeprom.offset; } --- 1963,1971 ---- if (copy_from_user(&eeprom, useraddr, sizeof(eeprom))) return -EFAULT; + if (eeprom.offset > eeprom.offset+eeprom.len) + return -EINVAL; + if ((eeprom.offset+eeprom.len) > NATSEMI_EEPROM_SIZE) { eeprom.len = NATSEMI_EEPROM_SIZE-eeprom.offset; }
this is extremely strange since the binaries we ship get build from the exact same .src.rpm... are you 100% sure the kernel patches are ALL unchanged?
I've downloaded again the src.rpm and I've cleaned the SOURCES directory and now it compiles OK.