Patch error messages - rpmbuild
William Muriithi
william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Oct 26 21:38:52 UTC 2009
Afternoon,
I am trying to build an rpm for erlang as I can not seem to find any
out there for the most current release. So, I went out there and found
a rpm spec file for an older erlang that I used as a base for building
the recent release. I am however not as strong as I would wish as far
patch management is concerned. In short, I have been unable to make
sense of what the patch error its throwing means.
I think the patch fails because it was written for a different version
of source code. My wish was to figure out the failing hunk and search
the offending line(s) to make the necessary change. However, that
seem to be harder than I thought and would appreciate any assistance
on how to go about it. May be use this case as an example and
hopefully I will be able to figure it out for other patches.
When I attempt building, I get the following message:
Snippet of the last few lines of rpmbuild
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (otp-links.patch):'
Patch #0 (otp-links.patch):
+ patch -p1 -b --suffix .links -s
+ echo 'Patch #1 (otp-install.patch):'
Patch #1 (otp-install.patch):
+ patch -p1 -b --suffix .install -s
1 out of 2 hunks FAILED -- saving rejects to file erts/etc/unix/Install.src.rej
error: Bad exit status from /var/tmp/rpm-tmp.90300 (%prep)
When I look at the reject file, it looks like this:
***************
*** 84,90 ****
/bin/rm -f epmd
fi
- ln -s $ERL_ROOT/erts-%I_VSN%/bin/epmd epmd
cp -p $ERL_ROOT/erts-%I_VSN%/bin/run_erl .
cp -p $ERL_ROOT/erts-%I_VSN%/bin/to_erl .
--- 84,90 ----
/bin/rm -f epmd
fi
+ ln -s ../erts-%I_VSN%/bin/epmd epmd
cp -p $ERL_ROOT/erts-%I_VSN%/bin/run_erl .
cp -p $ERL_ROOT/erts-%I_VSN%/bin/to_erl .
And the patch looks like this:
--- otp_src_R9C-0/erts/etc/unix/Install.src.install 2003-10-17
12:52:14.000000000 +0200
+++ otp_src_R9C-0/erts/etc/unix/Install.src 2003-10-17
14:26:49.000000000 +0200
@@ -84,7 +84,7 @@
/bin/rm -f epmd
fi
-ln -s $ERL_ROOT/erts-%I_VSN%/bin/epmd epmd
+ln -s ../erts-%I_VSN%/bin/epmd epmd
cp -p $ERL_ROOT/erts-%I_VSN%/bin/run_erl .
cp -p $ERL_ROOT/erts-%I_VSN%/bin/to_erl .
@@ -145,16 +145,4 @@
(ranlib $library) > /dev/null 2>&1
done
fi
-
-
-#
-# Fixing the man pages
-#
-
-if [ -d $ERL_ROOT/man ]
-then
- cd $ERL_ROOT
- ./misc/format_man_pages $ERL_ROOT
-fi
-
-
+exit 0
Question, how should I go about making sense of these information?
Regards,
William
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list