aboutsummaryrefslogtreecommitdiffstats
path: root/lang/perl5.14/files/use.perl
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2005-06-24 17:17:06 +0800
committertobez <tobez@FreeBSD.org>2005-06-24 17:17:06 +0800
commit85945fb6cfcff1aeb2931fecd4725ade082d171a (patch)
tree6733402c0f17cf5bdefd3b87e5dc5c3021426287 /lang/perl5.14/files/use.perl
parent5b91ce0a50857b4fdd670e0926e669faf8bec6dd (diff)
downloadfreebsd-ports-graphics-85945fb6cfcff1aeb2931fecd4725ade082d171a.tar.gz
freebsd-ports-graphics-85945fb6cfcff1aeb2931fecd4725ade082d171a.tar.zst
freebsd-ports-graphics-85945fb6cfcff1aeb2931fecd4725ade082d171a.zip
Upgrade to 5.8.7. In addition:
- add perl-after-upgrade utility to move around dependent packages - fix $0 expansion in use.perl [1] - enable threaded perl on amd64 [2] - always compile perl with -pthread [3] - fix errno issue in SDBM_File [4] - add support for // and err (defined-or) [5] - add WITH_DEBUGGING option [6] - fix suidperl symlink [7] - fix several small bugs in use.perl - print possible WITH_XXX flags (no OPTIONS support yet) [1] Submitted by: erwin, Niƫl Dogger <niel@introweb.nl> [2] Nudged by: Mike Schroll <FreeBSD@LogicX.us> [3] Nudged by: skv [4] perl bug #35938 [5] Obtained from: H.Merijn Brand <h.m.brand@xs4all.nl> [6] PR: 78811, submitted by: skv [7] PR: 80069, submitted by: Sergey N. Voronkov <serg@tmn.ru> A different solution was actually implemented.
Diffstat (limited to 'lang/perl5.14/files/use.perl')
-rw-r--r--lang/perl5.14/files/use.perl22
1 files changed, 13 insertions, 9 deletions
diff --git a/lang/perl5.14/files/use.perl b/lang/perl5.14/files/use.perl
index 57e1acde0bc..eca7811f3a8 100644
--- a/lang/perl5.14/files/use.perl
+++ b/lang/perl5.14/files/use.perl
@@ -34,9 +34,9 @@ if [ "x$this" = "xuse.perl" ]; then
need_cleanup_make_conf=yes
need_cleanup_manpath=yes
else
- echo 'Usage:
- $0 port -> /usr/bin/perl is the perl5 port
- $0 system -> /usr/bin/perl is the system perl'
+ echo "Usage:
+ ${0##*/} port -> /usr/bin/perl is the perl5 port
+ ${0##*/} system -> /usr/bin/perl is the system perl"
exit 2;
fi
else
@@ -77,14 +77,14 @@ link_list="
pod2man
pod2text
s2p
- splain"
+ splain
+ suidperl"
if [ $osreldate -ge 500036 ] ; then
link_list=""
fi
special_link_list="
perl
- perl5
- suidperl"
+ perl5"
do_remove_links()
{
@@ -130,11 +130,11 @@ do_create_links()
for binary in $special_link_list
do
if [ -f "/usr/bin/$binary" ] ; then
- echo " Removing /usr/bin/$binary"
+ echo " Backing up /usr/bin/$binary as /usr/bin/$binary.freebsd"
+ /bin/mv -f "/usr/bin/$binary" "/usr/bin/$binary.freebsd"
fi
bin=`echo $binary | /usr/bin/sed -e 's!perl5!perl!'`
- bin=`echo $bin | /usr/bin/sed -e 's!suidperl!sperl!'`
- if [ -e "/usr/bin/$binary.XXX" ] ; then
+ if [ -e "/usr/bin/$binary" ] ; then
echo " *** /usr/bin/$binary is still there, which should not happen"
elif [ -e "$PKG_PREFIX/bin/${bin}%%PERL_VERSION%%" ] ; then
echo " Symlinking $PKG_PREFIX/bin/${bin}%%PERL_VERSION%% to /usr/bin/$binary"
@@ -185,6 +185,10 @@ do_base_system_perl()
else
echo " *** $bin is NOT there, nothing to restore"
fi
+ if [ -f "/usr/bin/$binary.freebsd" ] ; then
+ echo " Removing backup copy /usr/bin/$binary.freebsd"
+ rm -f "/usr/bin/$binary.freebsd"
+ fi
fi
done
echo "Done."