Description of problem: Running ' rpm --rebuild mkinitrd-3.5.7-2.src.rpm' fails at the 'make test' stage Version-Release number of selected component (if applicable): RedHat 7.2 mkinitrd-3.5.7-2.src.rpm Steps to Reproduce: 1. rpm --rebuild mkinitrd-3.5.7-2.src.rpm 2. 3. Actual results: Z/IPL add kernel... ------------------------------------------------------------- FAILURE: test/zipl.1 test/results/add/z1.1 --add-kernel=/boot/new-kernel.img --title test ./grubby --zipl --bad-image-okay -c test/zipl.1 -o - "--add-kernel=/boot/new-kernel.img" "--title" "test" --- test/results/add/z1.1 Sun Mar 23 22:43:50 2003 +++ - Thu Jul 31 13:21:20 2003 @@ -1,6 +1,6 @@ [defaultboot] default=linux -[test] +[test]�Q�¬@øHøH�¬@�¬@�¬@�¬@ ¬@ ¬@¨¬@¨¬@°¬@°¬@¸¬@¸¬@ì@ì@ì@ì@ì@ì@ì@ì@à ¬@à ¬@è¬@è¬@ð¬@ð¬@ø¬@ø¬@ image=/boot/new-kernel.img [linux] target=/boot/ LILO long titles... ELILO long titles... make[1]: *** [test] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/mkinitrd-3.5.7/grubby' make: *** [test] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.67495 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.67495 (%build) Expected results: exit status == 0 Additional info: 'make test' works OK with the following patch: *** mkinitrd-3.5.7/grubby/grubby.c.dist Tue Jul 29 12:09:09 2003 --- mkinitrd-3.5.7/grubby/grubby.c Tue Jul 29 12:08:29 2003 *************** *** 1395,1400 **** --- 1395,1401 ---- line->elements[0].item = malloc(strlen(val) + 3); sprintf(line->elements[0].item, "[%s]", val); + line->elements[0].indent = strdup(""); } return line;
This is actually fixed in CVS already, just pending being built.