Bug 64677 - can't install on base Red Hat system due to unnecessary Perl usage
Summary: can't install on base Red Hat system due to unnecessary Perl usage
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: postfix
Version: 7.3
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: wdovlrrw
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-05-09 14:22 UTC by Chris Ricker
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-05-09 15:44:57 UTC
Embargoed:


Attachments (Terms of Use)

Description Chris Ricker 2002-05-09 14:22:52 UTC
Postfix is not installable on a base Red Hat install, because the postfix spec
includes this little gem that needs to be rewritten using sed:

# Put db3 in the chroot jail, but only if the soname is correct
%triggerin -- db3
%{copy_cmd}
DBVER=`ldd %{_libexecdir}/postfix/pickup |grep libdb |perl -pi -e "s,\s+,,g;s,=>
.*,,"`
if [ -e "/lib/$DBVER" ]; then
        copy "/lib/$DBVER" %{ROOT}/lib
fi


Perl cannot be used in specs!  It may or may not be installed....  When
installing postfix on systems which don't have or need perl, the install fails
in the %post phase because of this.

Comment 1 Michael Schwendt 2002-05-09 15:44:53 UTC
Encountered this today on a machine where I've protected perl. With sed, one fix
would be:

DBVER=`ldd /usr/libexec/postfix/pickup |grep libdb |sed s,[[:blank:]],,g;s,=>.*,,"`


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