Fix "pkg_add -r perl" for 5.2-CURRENT (and later)

Sergey Akifyev asa at gascom.ru
Mon Mar 1 05:08:32 PST 2004


Hello!

Congratulations, you just broke lang/perl5 Makefile!

#make
"Makefile", line 26: Malformed conditional (${OSVERSION} >= 502100)
"Makefile", line 26: Need an operator
"Makefile", line 28: if-less endif
"Makefile", line 28: Need an operator
make: fatal errors encountered -- cannot continue

Here's suggested patch:

--- Makefile.orig       Mon Mar  1 16:04:28 2004
+++ Makefile    Mon Mar  1 16:07:44 2004
@@ -23,7 +23,7 @@
 PERL_ARCH=     mach
 PERL_VERSION=  ${PERL_VER}
  
-.if ${OSVERSION} >= 502100
+.if "${OSVERSION}">="502100"
 LATEST_LINK=   perl5.6
 .endif

-- 
regards,
Sergey Akifyev <asa at gascom.ru>
JSC Gascom <http://www.gascom.ru>
PGP key available from:
ftp://ftp.gascom.ru/pub/PGP-keys/asa.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040301/5fabbf94/attachment.bin


More information about the freebsd-ports mailing list