Postfix with quota patch on x86_64

Discussion in 'Server Operation' started by AdamR, Jun 29, 2007.

  1. AdamR

    AdamR New Member


    I’m trying to build:


    with the Quota path:


    The build

    rpmbuild -ba postfix.spec

    fails. Here are the last few lines:

    + ed /var/tmp/postfix-buildroot/etc/postfix/postfix-files
    + exit 1
    error: Bad exit status from /var/tmp/rpm-tmp.54973 (%install)

    This is the failing script in the postfix.spec file:

    # 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

    Thanks in advance for any ideas!
  2. falko

    falko Super Moderator ISPConfig Developer

    Did you get any error messages before the ones you posted?
  3. AdamR

    AdamR New Member

    Hi Falko, thanks for responding.

    No errors except for the gazillion warnings: "/*" within comments.

    It appears the problem is on my Fedora 6 install, the ED editor chokes on the "%s" syntax for search/replace. Preferring the ",s" syntax (from the man page).

    Thanks again.
  4. falko

    falko Super Moderator ISPConfig Developer

    What did you try to replace?
  5. AdamR

    AdamR New Member

    Hi Falko,

    The build (rpmbuild -ba postfix.spec) edits the "postfix-files" file so the post-installation won't fail. Verbatim, from postfix.spec, the two ED search & replace commands:


    On my Fedora Core 6 installation the ED editor does not recognize the %s command. This is confirmed by observation and from the MAN page. Changing to the recognized form ",s" as in:


    appears to fix the build script.

    Thanks again,

Share This Page