Commit 8c654464 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbph: replace readlink with realpath on FreeBSD

parent 3a77a37c
...@@ -56,12 +56,18 @@ cat $SPECNAME | grep rpm-build-compat &>/dev/null && BUILDREQ="$FIXPATCHFUZZ" ...@@ -56,12 +56,18 @@ cat $SPECNAME | grep rpm-build-compat &>/dev/null && BUILDREQ="$FIXPATCHFUZZ"
FIXMKTEMP="" FIXMKTEMP=""
# fix readlink -m, introduced by new libtool and missed in RHEL4 (replace with readlink -e) # fix readlink -m, introduced by new libtool and missed in RHEL4 (replace with readlink -f)
if [ "`distr_vendor -d`/$DISTRVERSION" = "ASPLinux/11.2" ] ; then if [ "`distr_vendor -d`/$DISTRVERSION" = "ASPLinux/11.2" ] ; then
test -z "$VERBOSE" || echo "Add subst readlink -m" test -z "$VERBOSE" || echo "Add subst readlink -m"
FIXMKTEMP="%__subst 's|readlink -m|readlink -f|g' libtool ltmain.sh" FIXMKTEMP="%__subst 's|readlink -m|readlink -f|g' libtool ltmain.sh"
fi fi
# fix readlink -mv, introduced by new libtool and missed in Generic (FreeBSD) (replace with readlink -f)
if [ "$VENDOR" = "generic" ] ; then
test -z "$VERBOSE" || echo "Add subst readlink -mv"
FIXMKTEMP="%__subst 's|readlink -mv|realpath|g' configure ltmain.sh"
fi
if [ "`distr_vendor -d`" = "Ubuntu" ] || [ "`distr_vendor -d`" = "Debian" ]; then if [ "`distr_vendor -d`" = "Ubuntu" ] || [ "`distr_vendor -d`" = "Debian" ]; then
test -z "$VERBOSE" || echo "Add remove_optflags -m64" test -z "$VERBOSE" || echo "Add remove_optflags -m64"
FIXMKTEMP="%remove_optflags -m64" FIXMKTEMP="%remove_optflags -m64"
...@@ -70,7 +76,7 @@ fi ...@@ -70,7 +76,7 @@ fi
# fix mktemp using for MCBC # fix mktemp using for MCBC
if [ "$VENDOR" = "mcbc" ] ; then if [ "$VENDOR" = "mcbc" ] ; then
test -z "$VERBOSE" || echo "Add subst mktemp -dt" test -z "$VERBOSE" || echo "Add subst mktemp -dt"
FIXMKTEMP="%__subst 's|mktemp -dt|mktemp -d|g' configure" FIXMKTEMP="%__subst 's|mktemp -dt|mktemp -d|g s|readlink -mv|readlink -f|g' configure libtool"
fi fi
# Too old problem # Too old problem
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment