[Postfix RPMs] Reported problems with my RPMs
Simon J Mudd
sjmudd at pobox.com
Wed Apr 10 16:04:53 CEST 2002
Hello All,
This message is just to warn those of you who may upgrade my packages
about a problem which a few people have experienced during a package
upgrade. I'd also like to solicit help from those of you who may already
have experienced this problem.
A user, having self-built a package has experienced the following problem
on package upgrade:
---
# rpm -qa|grep postfix
postfix-20010808snapshot-5ldap+pcre
# rpm -Fvh postfix-1.1.7-1.rh70.1.ldap.pcre.i386.rpm
Preparing... ###########################################
[100%]
1:postfix
warning: /etc/cron.daily/1postfix createdas /etc/cron.daily/1postfix.rpmnew
warning: /etc/postfix/main.cf created as /etc/postfix/main.cf.rpmnew
warning: /etc/postfix/master.cf created as/etc/postfix/master.cf.rpmnew
########################################### [100%]
/var/tmp/rpm-tmp.84496: line 9: syntax error near unexpected token `}'
/var/tmp/rpm-tmp.84496: line 9: ` copy() { file=`basename $1`; ln -f
$1 $2/$file 2>/dev/null || { test -L $1 2>/dev/null && { dest=`ls -l $1|
awk '{print $11}'`; ln -sf $dest $2/$file; } || cp -dpf $1 $2/$file; }
}'
error: execution of %post scriptlet from
postfix-1.1.7-1.rh70.1.ldap.pcre failed, exit status 2
---
This led him to have two postfix packages installed and the upgrade script
didn't terminate properly leaving master.cf incorrectly configured for the
newer version of postfix.
Obviously I would like to avoid this happening but the spec file's use of
the copy function works fine on my machine. One or two other people have
complained about this failing but I haven't yet discovered exactly what
I'm doing wrong.
Therefore I'd ask anyone who experiences this, or has experienced
this problem to advise me of the system that causes the error and the
packages installed to which this may be related, ie the output of:
rpm -q rpm
rpm -q redhat-release
rpm -qf /bin/ln
rpm -qf /bin/ls
rpm -qf /bin/awk
rpm -qf /bin/cp
rpm -qf /bin/basename
rpm -qf /bin/sh
Many thanks for the pointers you can give me and hopefully I'll avoid this
bug catching others.
Regards,
Simon
--
Simon J Mudd, Tel: +34-91-408 4878, Mobile: +34-605-085 219
Madrid, Spain. email: sjmudd at pobox.com, Postfix RPM Packager
+-------------------------------------------------------------------------+
| Previous messages sent to this list can be found at: |
| |
| http://www.ea4els.ampr.org/cgi-bin/wilma/postfix-rpm-announce |
| |
| To unsubscribe: send the line "unsubscribe postfix-rpm-announce" in the |
| BODY of a message to majordomo at ea4els.ampr.org |
+-------------------------------------------------------------------------+
More information about the Postfix-rpm-announce
mailing list