Subject: Re: pkgsrc NetBSD 2.0/i386 bulk build results 2005-04-01
To: Thomas Klausner <wiz@NetBSD.org>
From: Urban Boquist <urban@boquist.net>
List: pkgsrc-bulk
Date: 04/05/2005 22:24:17
>>>>> Thomas Klausner writes:

Thomas> 74a75
>> lang/erlang tech-pkg@NetBSD.org

Thomas>  Bareword found where operator expected at -e line 1, near
Thomas>  "s/%PERL%//usr" syntax error at -e line 1, near
Thomas>  "s/%PERL%//usr" Execution of -e aborted due to compilation
Thomas>  errors.
Thomas> and later lots of PLIST problems.

I'm not sure why it is needed, but the patch below fixes lang/erlang
for me.

Best regards,

        -- Urban

--- lib/snmp/mibs/Makefile.in.orig	2005-03-15 13:38:36.000000000 +0000
+++ lib/snmp/mibs/Makefile.in	2005-03-15 13:38:46.000000000 +0000
@@ -115,7 +115,7 @@
 debug opt: $(TARGET_FILES)
 
 $(ERL_TOP)/lib/snmp/bin/snmp-v2tov1: $(ERL_TOP)/lib/snmp/bin/snmp-v2tov1.src
-	$(PERL) -p -e 's/%PERL%/$(PERL)/ ' < $< > $@
+	$(PERL) -p -e 's|%PERL%|$(PERL)| ' < $< > $@
 	chmod 755 $@
 
 $(SNMP_BIN_TARGET_DIR)/OTP-REG.bin:	$(ERL_TOP)/lib/$(OTP_MIBDIR)/mibs/OTP-REG.mib