Subject: pkg/23328: net/ntp4 has a build time dependency upon perl
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <roskens@elfin.net>
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
>Closed-Date:
>Last-Modified:
>Originator: Ron Roskens
>Release: -current
>Organization:
>Environment:
NetBSD hysteria.tx.elfin.net 1.6ZD NetBSD 1.6ZD (GENERIC) #19: Wed Oct 22 18:35:02 CDT 2003 root@speedy.tx.elfin.net:/obj/sys/arch/i386/compile/GENERIC i386
>Description:
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.pl > nl.c
./nl.pl: not found
*** Error code 127
Stop.
make: stopped in /obj/pkgsrc/net/ntp4/work.sb2/ntp-4.2.0/ntpdc
>How-To-Repeat:
# pkg_delete -r perl5
# cd pkgsrc/net/ntp4
# make install
>Fix:
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 @@
GNU_CONFIGURE= YES
#USE_BUILDLINK2=YES ***FIXME: Causes lots of "missing prototype" warnings.***
+USE_PERL5= build
CONFIGURE_ENV+= PATH_PERL="${PERL5}"
@@ -49,4 +50,5 @@
.endif
.include "../../security/openssl/buildlink2.mk"
+.include "../../lang/perl5/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: