HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5) ed bad exit (http://www.howtoforge.com/forums/showthread.php?t=10172)

wsand70 28th January 2007 22:38

Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5) ed bad exit
 
Following the Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5) Howto. I'm doing this on a FC5 VPS that was built up from a minimal install. Not getting very far and already having issues. I have called the new patch in the spec file and getting bad exit status error during the rpmbuild. Here are the last few lines:
Code:

+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/saved
+ for i in active bounce corrupt defer deferred flush incoming private saved maildrop public pid saved trace
+ mkdir -p /var/tmp/postfix-buildroot/var/spool/postfix/trace
+ for i in smtp-sink smtp-source
+ install -c -m 755 bin/smtp-sink /var/tmp/postfix-buildroot/usr/sbin/
+ install -c -m 755 man/man1/smtp-sink.1 /var/tmp/postfix-buildroot/usr/share/man/man1/
+ for i in smtp-sink smtp-source
+ install -c -m 755 bin/smtp-source /var/tmp/postfix-buildroot/usr/sbin/
+ install -c -m 755 man/man1/smtp-source.1 /var/tmp/postfix-buildroot/usr/share/man/man1/
+ ed /var/tmp/postfix-buildroot/etc/postfix/postfix-files
17109
?
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.5435 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.5435 (%install)

Ironicly I have found one other instance of someone having a very similar error they posted to pastebin just yesterday too. Any tips on tracking this one?

Thanks,
Warren

wsand70 29th January 2007 02:38

Problem must have been related to OpenVZ. Seems to build fine on a native FC5 install. So I assume there must be a special glibc-common for openvz causing the problem. Moving on now.

starex 25th February 2007 22:52

dirty fix
 
Hi,
The problem is related with "ed" text editor. Open postfix.spec file and comment out the lines that prevent srpm to build:

# RPM compresses man pages automatically.
# - Edit postfix-files to reflect this, so post-install won't get confused
# when called during package installation.
##ed $RPM_BUILD_ROOT%{postfix_config_dir}/postfix-files <<EOF || exit 1
##%s/\(\/man[158]\/.*\.[158]\):/\1.gz:/
##%s/\$config_directory\/aliases:f/\#/
##w
##q
##EOF

These lines seem to be man pages related which is not vital for me. Someone experienced in scripting can fix this easily.
SRPM builds and postfix runs without problem.

Regards.


All times are GMT +2. The time now is 17:15.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.