Bug 101368 - Rebuild of mkinitrd-3.5.7-2.src.rpm fails under RH7.2
Rebuild of mkinitrd-3.5.7-2.src.rpm fails under RH7.2
Status: CLOSED RAWHIDE
Product: Red Hat Raw Hide
Classification: Retired
Component: mkinitrd (Show other bugs)
1.0
athlon Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-07-31 08:29 EDT by James Pearson
Modified: 2007-04-18 12:56 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-07-31 08:34:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description James Pearson 2003-07-31 08:29:04 EDT
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;
Comment 1 Jeremy Katz 2003-07-31 08:34:17 EDT
This is actually fixed in CVS already, just pending being built.

Note You need to log in before you can comment on or make changes to this bug.