Wietse Venema: > li...@rhsoft.net: > [ Charset windows-1252 converted... ] > > > > Am 12.02.2015 um 14:12 schrieb Wietse Venema: > > > li...@rhsoft.net: > > >> well, set LD_LIBRARY_PATH does the trick > > >> shoudn't postfix-install do that on it's own? > > > > > > You MUST NOT invoke postfix-install directly. > > > You MUST use "make install" as described in the INSTALL instructions > > > > besides that SPEC is derived from Redhat ones years ago using "make > > install" seems to change the whole semantic of what is happening in the > > %install section
Instead of "sh postfix-install name=value" use "make install name=value" Wietse > The Postfix installation procedure as documented installs Postfix > without the problems that you keep reporting. > > The RELEASE_NOTES say at the top of the file, "to avoid massive > frustration...". I will not repeat that text here, but summarize > it as "YOU IGNORE INSTRUCTIONS, YOU GET NO SUPPORT". > > Wietse > > > there is *nothing* but empty folders - so where does it install to? > > also tried with "make install DESTDIR=%{buildroot} -non-interactive" > > ___________________________________________________________________________ > > > > looks like "postfix-install" is *not* called with all the makro-params > > > > LD_LIBRARY_PATH=/home/builduser/rpmbuild/BUILD/postfix-3.0.0/lib > > shlib_directory=${shlib_directory:-`LD_LIBRARY_PATH=/home/builduser/rpmbuild/BUILD/postfix-3.0.0/lib > > > > bin/postconf -dhx shlib_directory`} /bin/sh postfix-install > > > > *these* are important for the package building process: > > > > -package -non-interactive install_root=%{buildroot} > > config_directory=%{postfix_config_dir} > > meta_directory=%{postfix_daemon_dir} > > daemon_directory=%{postfix_daemon_dir} > > shlib_directory=%{postfix_shlib_dir} > > command_directory=%{postfix_command_dir} > > queue_directory=%{postfix_queue_dir} data_directory=%{postfix_data_dir} > > sendmail_path=%{postfix_command_dir}/sendmail > > newaliases_path=%{_bindir}/newaliases mailq_path=%{_bindir}/mailq > > mail_owner=%{postfix_user} setgid_group=%{maildrop_group} > > manpage_directory=%{_mandir} sample_directory=%{postfix_sample_dir} > > readme_directory=%{postfix_readme_dir} > > ___________________________________________________________________________ > > > > [builduser@testserver:/rpmbuild/SPECS]$ ls -R > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/ > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/: > > total 12K > > drwxr-xr-x 3 builduser builduser 4.0K 2015-02-12 14:26 etc > > drwxr-xr-x 4 builduser builduser 4.0K 2015-02-12 14:26 usr > > drwxr-xr-x 3 builduser builduser 4.0K 2015-02-12 14:26 var > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/etc: > > total 4.0K > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 pam.d > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/etc/pam.d: > > total 4.0K > > -rw-r--r-- 1 builduser builduser 76 2015-02-12 14:26 smtp.postfix > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/usr: > > total 8.0K > > drwxr-xr-x 3 builduser builduser 4.0K 2015-02-12 14:26 lib64 > > drwxr-xr-x 3 builduser builduser 4.0K 2015-02-12 14:26 share > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/usr/lib64: > > total 4.0K > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 postfix > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/usr/lib64/postfix: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/usr/share: > > total 4.0K > > drwxr-xr-x 3 builduser builduser 4.0K 2015-02-12 14:26 doc > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/usr/share/doc: > > total 4.0K > > drwxr-xr-x 3 builduser builduser 4.0K 2015-02-12 14:26 postfix-3.0.0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/usr/share/doc/postfix-3.0.0: > > total 4.0K > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 examples > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/usr/share/doc/postfix-3.0.0/examples: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var: > > total 4.0K > > drwxr-xr-x 3 builduser builduser 4.0K 2015-02-12 14:26 spool > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool: > > total 4.0K > > drwxr-xr-x 15 builduser builduser 4.0K 2015-02-12 14:26 postfix > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix: > > total 52K > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 active > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 bounce > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 corrupt > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 defer > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 deferred > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 flush > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 incoming > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 maildrop > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 pid > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 private > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 public > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 saved > > drwxr-xr-x 2 builduser builduser 4.0K 2015-02-12 14:26 trace > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/active: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/bounce: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/corrupt: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/defer: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/deferred: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/flush: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/incoming: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/maildrop: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/pid: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/private: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/public: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/saved: > > total 0 > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/var/spool/postfix/trace: > > total 0 > > ___________________________________________________________________________ > > > > + rm -f > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/etc/postfix/TLS_LICENSE > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/etc/postfix/LICENSE > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/etc/postfix/bounce.cf.default > > > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/etc/postfix/main.cf.default > > + find > > /home/builduser/rpmbuild/BUILDROOT/postfix-3.0.0-4.fc21.20150212.rh.x86_64/usr/share/doc/postfix-3.0.0 > > > > -type f > > + xargs chmod 644 > > chmod: missing operand after '644' > > Try 'chmod --help' for more information. > > error: Bad exit status from /var/tmp/rpm-tmp.fGXx3m (%install) > > ___________________________________________________________________________ > > > > #LD_LIBRARY_PATH=$(pwd)/lib sh postfix-install -package -non-interactive > > install_root=%{buildroot} config_directory=%{postfix_config_dir} > > meta_directory=%{postfix_daemon_dir} > > daemon_directory=%{postfix_daemon_dir} > > shlib_directory=%{postfix_shlib_dir} > > command_directory=%{postfix_command_dir} > > queue_directory=%{postfix_queue_dir} data_directory=%{postfix_data_dir} > > sendmail_path=%{postfix_command_dir}/sendmail > > newaliases_path=%{_bindir}/newaliases mailq_path=%{_bindir}/mailq > > mail_owner=%{postfix_user} setgid_group=%{maildrop_group} > > manpage_directory=%{_mandir} sample_directory=%{postfix_sample_dir} > > readme_directory=%{postfix_readme_dir} || exit 1 > > > > make install -non-interactive install_root=%{buildroot} > > config_directory=%{postfix_config_dir} > > meta_directory=%{postfix_daemon_dir} > > daemon_directory=%{postfix_daemon_dir} > > shlib_directory=%{postfix_shlib_dir} > > command_directory=%{postfix_command_dir} > > queue_directory=%{postfix_queue_dir} data_directory=%{postfix_data_dir} > > sendmail_path=%{postfix_command_dir}/sendmail > > newaliases_path=%{_bindir}/newaliases mailq_path=%{_bindir}/mailq > > mail_owner=%{postfix_user} setgid_group=%{maildrop_group} > > manpage_directory=%{_mandir} sample_directory=%{postfix_sample_dir} > > readme_directory=%{postfix_readme_dir} || exit 1 > > > > for i in active bounce corrupt defer deferred flush incoming private > > saved maildrop public pid saved trace; do > > mkdir -p %{buildroot}%{postfix_queue_dir}/$i > > done > > mkdir -p %{buildroot}%{postfix_shlib_dir} > > > > mkdir -p %{buildroot}%{_sysconfdir}/pam.d %{buildroot}%{postfix_doc_dir} > > %{buildroot}%{postfix_doc_dir}/examples > > install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/smtp.%{name} > > rm -f %{buildroot}%{postfix_config_dir}/{TLS_,}LICENSE > > %{buildroot}%{_sysconfdir}/%{name}/bounce.cf.default > > %{buildroot}%{_sysconfdir}/%{name}/main.cf.default > > find %{buildroot}%{postfix_doc_dir} -type f | xargs chmod 644 > > find %{buildroot}%{postfix_doc_dir} -type d | xargs chmod 755 > > >