make package in net-snmp fails to complete. also, it should be an option to the port to build without the perl modules for those of us who like to use CPAN to keep modules up-to-date. Fix: fix the pkg-plist file? make an option to skip building the perl modules? not sure... How-To-Repeat: # make package ===> Building package for net-snmp-5.0.9 Creating package /usr/ports/packages/All/net-snmp-5.0.9.tgz Registering depends: rc_subr-1.16. Creating gzip'd tar ball in '/usr/ports/packages/All/net-snmp-5.0.9.tgz' tar: lib/perl5/5.6.1/man/man3/NetSNMP\:\:default_store.3.gz: Cannot stat: No such file or directory tar: lib/perl5/5.6.1/man/man3/NetSNMP\:\:ASN.3.gz: Cannot stat: No such file or directory tar: lib/perl5/5.6.1/man/man3/NetSNMP\:\:OID.3.gz: Cannot stat: No such file or directory tar: lib/perl5/5.6.1/man/man3/NetSNMP\:\:agent\:\:default_store.3.gz: Cannot stat: No such file or directory tar: lib/perl5/5.6.1/man/man3/NetSNMP\:\:netsnmp_request_infoPtr.3.gz: Cannot stat: No such file or directory tar: lib/perl5/5.6.1/man/man3/NetSNMP\:\:agent.3.gz: Cannot stat: No such file or directory tar: lib/perl5/5.6.1/man/man3/SNMP.3.gz: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/default_store/default_store.so: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/default_store/default_store.bs: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/default_store/autosplit.ix: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/ASN/ASN.so: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/ASN/ASN.bs: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/ASN/autosplit.ix: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/OID/OID.so: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/OID/OID.bs: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/OID/autosplit.ix: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/agent/agent.so: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/agent/agent.bs: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/agent/default_store/default_store.so: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/agent/default_store/default_store.bs: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/agent/default_store/autosplit.ix: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/NetSNMP/agent/autosplit.ix: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/SNMP/SNMP.so: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/SNMP/SNMP.bs: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/SNMP/autosplit.ix: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/auto/Bundle/NetSNMP/.packlist: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/Bundle/Makefile.subs.pl: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/NetSNMP/default_store.pm: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/NetSNMP/ASN.pm: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/NetSNMP/OID.pm: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/NetSNMP/agent/netsnmp_request_infoPtr.pm: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/NetSNMP/agent/default_store.pm: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/NetSNMP/agent.pm: Cannot stat: No such file or directory tar: lib/perl5/site_perl/5.6.1/mach/SNMP.pm: Cannot stat: No such file or directory 70.2% tar: Error exit delayed from previous errors pkg_create: make_dist: tar command failed with code 512 *** Error code 1 Stop in /u/sources/usr/ports/net/net-snmp.
here's a patch to net-snmp to make it build without the perl modules unless WITH_PERL is set. --- Makefile.orig Thu Sep 11 15:54:40 2003 +++ Makefile Thu Sep 11 16:09:37 2003 @@ -21,7 +21,9 @@ RC_SUBR= /etc/rc.subr .endif +.if defined(WITH_PERL) USE_PERL5= yes +.endif USE_REINPLACE= yes USE_AUTOCONF_VER=213 USE_LIBTOOL= yes @@ -35,8 +37,13 @@ --with-sys-location="${NET_SNMP_SYS_LOCATION}" \ --with-logfile="${NET_SNMP_LOGFILE}" \ --with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \ - --with-perl-modules \ --with-gnu-ld --with-libwrap --with-libs="-lkvm -ldevstat" +.if defined(WITH_PERL) +CONFIGURE_ARGS+= --with-perl-modules +PLIST_SUB+= WITHPERL="" +.else +PLIST_SUB+= WITHPERL="@comment " +.endif .if defined(BATCH) CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where .else @@ -81,12 +88,14 @@ snmp_sess_send.3 snmp_sess_session.3 snmp_sess_timeout.3 \ snmp_set_mib_warnings.3 snmp_set_save_descriptions.3 \ snmp_timeout.3 snmp_trap_api.3 +.if defined(WITH_PERL) MAN3PERL= NetSNMP::default_store.3 NetSNMP::ASN.3 NetSNMP::OID.3 \ NetSNMP::agent::default_store.3 \ NetSNMP::netsnmp_request_infoPtr.3 \ NetSNMP::agent.3 SNMP.3 MAN3PERLPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} _MANPAGES+= ${MAN3PERL:S%^%${MAN3PERLPREFIX}/man/man3/%} +.endif MAN5= snmp.conf.5 snmp_config.5 snmpd.conf.5 \ snmptrapd.conf.5 variables.5 MAN8= snmpd.8 snmptrapd.8 @@ -113,9 +122,11 @@ -e 's|%%LTMAIN%%|${LIBTOOL_SHAREDIR}/ltmain.sh|g' \ ${WRKSRC}/aclocal.m4 +.if defined(WITH_PERL) post-build: @${FIND} ${CONFIGURE_WRKSRC}/perl -name Makefile | \ ${XARGS} ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' +.endif pre-install: -@[ -f ${STARTUP_FILE} ] && \ --- pkg-plist.orig Thu Sep 11 15:54:48 2003 +++ pkg-plist Thu Sep 11 15:59:30 2003 @@ -244,49 +244,49 @@ share/snmp/snmpconf-data/snmptrapd-data/formatting share/snmp/snmpconf-data/snmptrapd-data/snmpconf-config share/snmp/snmpconf-data/snmptrapd-data/traphandle -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store/default_store.so -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store/default_store.bs -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store/autosplit.ix -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/ASN.so -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/ASN.bs -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/autosplit.ix -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID/OID.so -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID/OID.bs -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID/autosplit.ix -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/agent.so -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/agent.bs -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store/default_store.so -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store/default_store.bs -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store/autosplit.ix -%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/autosplit.ix -%%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP/SNMP.so -%%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP/SNMP.bs -%%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP/autosplit.ix -%%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle/NetSNMP/.packlist -%%SITE_PERL%%/%%PERL_ARCH%%/Bundle/Makefile.subs.pl -%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/default_store.pm -%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/ASN.pm -%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/OID.pm -%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent/netsnmp_request_infoPtr.pm -%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent/default_store.pm -%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent.pm -%%SITE_PERL%%/%%PERL_ARCH%%/SNMP.pm +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store/default_store.so +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store/default_store.bs +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store/autosplit.ix +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/ASN.so +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/ASN.bs +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/autosplit.ix +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID/OID.so +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID/OID.bs +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID/autosplit.ix +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/agent.so +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/agent.bs +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store/default_store.so +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store/default_store.bs +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store/autosplit.ix +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/autosplit.ix +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP/SNMP.so +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP/SNMP.bs +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP/autosplit.ix +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle/NetSNMP/.packlist +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/Bundle/Makefile.subs.pl +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/default_store.pm +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/ASN.pm +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/OID.pm +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent/netsnmp_request_infoPtr.pm +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent/default_store.pm +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent.pm +%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/SNMP.pm @dirrm share/snmp/snmpconf-data/snmp-data @dirrm share/snmp/snmpconf-data/snmpd-data @dirrm share/snmp/snmpconf-data/snmptrapd-data @dirrm share/snmp/snmpconf-data @dirrm share/snmp/mibs @unexec rmdir %D/share/snmp 2>/dev/null || true -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle/NetSNMP -@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle 2>/dev/null || true -@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto 2>/dev/null || true -@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Bundle 2>/dev/null || true -@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent -@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP 2>/dev/null || true +%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store +%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN +%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID +%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store +%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent +%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP +%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP +%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle/NetSNMP +%%WITHPERL%%@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle 2>/dev/null || true +%%WITHPERL%%@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto 2>/dev/null || true +%%WITHPERL%%@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Bundle 2>/dev/null || true +%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent +%%WITHPERL%%@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP 2>/dev/null || true
Responsible Changed From-To: freebsd-ports-bugs->kuriyama Over to maintainer
Adding to audit trail, from misfiled PR ports/56722: Date: Fri, 12 Sep 2003 07:03:59 +0900 From: Jun Kuriyama <kuriyama@imgsrc.co.jp> Message-Id: <7mznhb3ru8.wl@black.imgsrc.co.jp> References: <20030911195121.7643021C38@yertle.kcilink.com> At Thu, 11 Sep 2003 15:51:21 -0400 (EDT), Vivek Khera wrote: > make package in net-snmp fails to complete. also, it should be an > option to the port to build without the perl modules for those of us > who like to use CPAN to keep modules up-to-date. It looks you set appropriate environment variables for perl-5.6.1 for ports, but configure script of net-snmp uses perl-5.005 and installs modules into 5.005 directories. Yes, we should add a knob to install or not to instlal perl modules in net-nmp distribution. I'll try after ports freeze over. -- Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc. <kuriyama@FreeBSD.org> // FreeBSD Project
State Changed From-To: open->closed Committed with WITHOUT_PERL knob. Thanks!