postfix .src.rpm fails to build on fc6
Michael Fleming
mfleming at enlartenment.com
Fri Mar 2 09:28:38 UTC 2007
On Fri, 2007-03-02 at 01:01 +0500, Asrai khn wrote:
> Hi am trying to build postfix-2.3.3-2.src.rpm with Mysql support on
> FC6 but each time it fails and during build process it gives millions
> of lines scrolling ...
>
> (..)
> postsuper.c:112:1: warning: "/*" within comment
> postsuper.c:113:1: warning: "/*" within comment
> postsuper.c:114:1: warning: "/*" within comment
> postsuper.c:115:1: warning: "/*" within comment
> postsuper.c:116:1: warning: "/*" within comment
> postsuper.c:117:1: warning: "/*" within comment
> (..)
>
These are just warnings and are harmless - it's just the way Wietse
(Postfix's author) uses comments in the code.
> And in end it exit with error ..
>
> + exit 1
> error: Bad exit status from /var/tmp/rpm-tmp.651 (%install)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.651 (%install)
>
> I have tried to build it on two different hosts but faced with same
> problem.
>
> Any idea please ?
>
The problem isn't with Postfix itself, just part of the specfile that
uses "ed" to manipulate the "postfix-files" file (which contains the
file list + ownership and permissions for Postfix core files, used in
turn by the "postfix check" command) to suit Fedora's alternatives
setup. It seems the version of ed supplied in FC6 updates ( 0.3, not the
original ed 0.2 package in core)
I worked around this by forcing "ed = 0.2" in the spec file's
BuildRequires line and rebuilt. Someone with better knowledge of ed's
internals or usage may have a better fix, but if you're reading this
message it works ;-)
> Thanks.
No problem :-)
Michael.
--
Michael Fleming <mfleming at enlartenment.com> in Brisbane, Australia
"Be master of your mind, not mastered by mind"
More information about the fedora-list
mailing list