Bug 227902 - Cannot compile postfix
Cannot compile postfix
Product: Fedora
Classification: Fedora
Component: postfix (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Thomas Woerner
: 239964 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2007-02-08 15:51 EST by Luis Marqueta
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-22 06:26:43 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Luis Marqueta 2007-02-08 15:51:44 EST
Description of problem: Cannot compile postfix

Version-Release number of selected component (if applicable): postfix-2.3.3-2

How reproducible:
Always: compile postfix using provided specfile

Steps to Reproduce:
1. Install postfix SRPM
2. rpmbuild -ba postfix.spec
Actual results:

+ install -c -m 755 man/man1/smtp-source.1
+ ed /var/tmp/postfix-buildroot/etc/postfix/postfix-files
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.42063 (%install)

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

Expected results:
postfix compiled

Additional info:
The following fix works for me:

--- postfix.spec.sed    2007-02-08 21:50:53.000000000 +0100
+++ postfix.spec.orig   2007-02-08 21:50:09.000000000 +0100
@@ -262,8 +262,12 @@ done
 # RPM compresses man pages automatically.
 # - Edit postfix-files to reflect this, so post-install won't get confused
 #   when called during package installation.
-sed -i 's/\(\/man[158]\/.*\.[158]\):/\1.gz:/'
-sed -i 's/\$config_directory\/aliases:f/\#/'
+ed $RPM_BUILD_ROOT%{postfix_config_dir}/postfix-files <<EOF || exit 1
Comment 1 David J Craigon 2007-03-28 12:03:23 EDT
Me too. I am running x86_64
Comment 2 David J Craigon 2007-03-29 05:17:01 EDT
The development (rawhide) RPM does build OK though, but the configuration files
end up in the wrong place. But that's probably a separate bug.
Comment 3 Thomas Woerner 2007-09-24 11:13:22 EDT
*** Bug 239964 has been marked as a duplicate of this bug. ***
Comment 4 Thomas Woerner 2007-10-04 11:57:15 EDT
Please have a look at postfix-2.4.5-2.fc6 in FC-6-testing.
Comment 5 Thomas Woerner 2007-11-22 06:26:43 EST
Fixed in package postfix-2.4.5-2.fc6 in FC-6-updates.

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