Subject: pkg/23328: net/ntp4 has a build time dependency upon perl
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/01/2003 00:28:06
>Number:         23328
>Category:       pkg
>Synopsis:       net/ntp4 has a build time dependency upon perl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 01 00:29:00 UTC 2003
>Originator:     Ron Roskens
>Release:        -current
NetBSD 1.6ZD NetBSD 1.6ZD (GENERIC) #19: Wed Oct 22 18:35:02 CDT 2003 i386

A build of net/ntp4 on a machine without perl installed ends with a failure of:
Making all in ntpdate
if cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -I/usr/include  -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-a
rith -Wshadow -Wstrict-prototypes -MT ntpdate.o -MD -MP -MF ".deps/ntpdate.Tpo"  -c -o ntpdate.o `test -f 'ntpdate.c' ||
 echo './'`ntpdate.c;  then mv -f ".deps/ntpdate.Tpo" ".deps/ntpdate.Po";  else rm -f ".deps/ntpdate.Tpo"; exit 1;  fi
env CSET=`cat ../version` ../scripts/mkver ntpdate
Version <ntpdate 4.2.0@1.1161-r Fri Oct 31 18:02:43 CST 2003 (1)>
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -I/usr/include  -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arit
h -Wshadow -Wstrict-prototypes -c version.c
cc  -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes  -Wl,-R/usr/pkg/lib -L/usr/p
kg/lib -L/usr/lib -o ntpdate  ntpdate.o version.o ../libntp/libntp.a -lkvm
Making all in ntpdc
cc -E -I. -I. -I.. -I../include -I/usr/include ./nl_in.c | ./ > nl.c
./ not found
*** Error code 127

make: stopped in /obj/pkgsrc/net/ntp4/work.sb2/ntp-4.2.0/ntpdc

# pkg_delete -r perl5
# cd pkgsrc/net/ntp4
# make install
The following patch to pkgsrc/net/ntp4/Makefile allowed ntp4 to build and install.

Index: Makefile
RCS file: /cvs/NetBSD/pkgsrc/net/ntp4/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile    24 Oct 2003 04:52:26 -0000      1.25
+++ Makefile    1 Nov 2003 00:11:18 -0000
@@ -12,6 +12,7 @@
 #USE_BUILDLINK2=YES ***FIXME: Causes lots of "missing prototype" warnings.***
+USE_PERL5=     build
@@ -49,4 +50,5 @@
 .include "../../security/openssl/"
+.include "../../lang/perl5/"
 .include "../../mk/"