Bug 101368 - Rebuild of mkinitrd-3.5.7-2.src.rpm fails under RH7.2
Summary: Rebuild of mkinitrd-3.5.7-2.src.rpm fails under RH7.2
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: mkinitrd (Show other bugs)
(Show other bugs)
Version: 1.0
Hardware: athlon Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: David Lawrence
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-07-31 12:29 UTC by James Pearson
Modified: 2007-04-18 16:56 UTC (History)
0 users

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


Attachments (Terms of Use)

Description James Pearson 2003-07-31 12:29:04 UTC
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 12:34:17 UTC
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.