pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/49755: net/dnscheck package needs devel/p5-List-MoreUtils to run



Suggested change to the Makefile. Removing patches/ as well.


--- Makefile.origin     2015-03-18 20:59:57.000000000 +0100
+++ Makefile    2015-03-18 16:14:25.000000000 +0100
@@ -4,7 +4,7 @@
 PKGNAME=       dnscheck-1.5.4
 PKGREVISION=   1
 CATEGORIES=    net perl5
-MASTER_SITES=  -https://github.com/dotse/dnscheck/tarball/1.5.4
+MASTER_SITES=   ${MASTER_SITE_GITHUB:=dotse/dnscheck/tarball/1.5.4/}

 MAINTAINER=    pettai%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/dotse/dnscheck/
@@ -31,6 +31,7 @@
 DEPENDS+=      p5-JSON-XS-[0-9]*:../../converters/p5-JSON-XS
 DEPENDS+=      p5-MIME-Lite-[0-9]*:../../mail/p5-MIME-Lite
 DEPENDS+=      p5-Text-Template-[0-9]*:../../textproc/p5-Text-Template
+DEPENDS+=       p5-List-MoreUtils-[0-9]*:../../devel/p5-List-MoreUtils

 REPLACE_PERL+=  lib/DNSCheck.pm lib/DNSCheck/*.pm
 REPLACE_PERL+=  lib/DNSCheck/Lookup/*.pm lib/DNSCheck/Test/*.pm
@@ -38,30 +39,21 @@

 PERL5_PACKLIST=        auto/DNSCheck/.packlist
 BUILDLINK_API_DEPENDS.perl+=   perl>=5.6.1
-
-WRKSRC=         ${WRKDIR}/dotse-dnscheck-006ca8d/engine
-SYSCONFDIR=     `${BASENAME} ${PKG_SYSCONFDIR}`
-
-EGDIR=         ${PREFIX}/share/examples/${PKGBASE}
-#CONF_FILES= ${EGDIR}/config.yaml ${PKG_SYSCONFDIR}/${PKGBASE}/config.yaml -#CONF_FILES+= ${EGDIR}/policy.yaml ${PKG_SYSCONFDIR}/${PKGBASE}/policy.yaml
-
 BUILD_DEFS+=    IPV6_READY

+INSTALLATION_DIRS=     ${EGDIR}
+OWN_DIRS=              ${PKGSYSCONFDIR} ${PKGBASE}
+
 SUBST_CLASSES+=         paths
 SUBST_STAGE.paths=      pre-configure
 SUBST_FILES.paths=      lib/DNSCheck/Config.pm
-SUBST_SED.paths+=       -e s!@SYSCONFDIR@!${SYSCONFDIR}!g
-
-INSTALLATION_DIRS=     ${EGDIR}
-OWN_DIRS=              ${SYSCONFDIR}/${PKGBASE}
+SUBST_SED.paths+=       -e s!/etc!${PKGSYSCONFDIR}!g

-post-patch:
-       ${RM} ${WRKSRC}/lib/DNSCheck/Config.pm.orig
+WRKSRC=         ${WRKDIR}/dotse-dnscheck-006ca8d/engine
+EGDIR=         ${PREFIX}/share/examples/${PKGBASE}

-#post-install:
-#      ${INSTALL_DATA} ${WRKSRC}/config.yaml ${DESTDIR}${EGDIR}/
-#      ${INSTALL_DATA} ${WRKSRC}/policy.yaml ${DESTDIR}${EGDIR}/
+post-install:
+       ${MV} ${WRKSRC}/config ${EGDIR}

 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"



On 2015-03-18 13:40, dogan%tesmer.org.tr@localhost wrote:
Number:         49755
Category:       pkg
Synopsis: net/dnscheck package needs devel/p5-List-MoreUtils to run
Confidential:   no
Severity:       serious
Priority:       low
Responsible:    pkg-manager
State:          open
Class:          sw-bug
Submitter-Id:   net
Arrival-Date:   Wed Mar 18 12:40:00 +0000 2015
Originator:     Mustafa Dogan
Release:        NetBSD 7.0_BETA (GENERIC) amd64 Mar 12 2015
Organization:
Ankara University
Environment:
NetBSD research 7.0_BETA NetBSD 7.0_BETA (GENERIC) #0: Thu Mar 12
06:11:39 EET 2015
root@localhost:/root/OBJ/sys/arch/amd64/compile/GENERIC amd64
Description:
net/dnscheck package can be compiled but require
devel/p5-List-MoreUtils to run. Otherwise, you will see on screen:

Can't locate List/MoreUtils.pm in @INC (you may need to install the
List::MoreUtils module) (@INC contains:
/usr/pkg/lib/perl5/site_perl/5.20.0/x86_64-netbsd-thread-multi
/usr/pkg/lib/perl5/site_perl/5.20.0
/usr/pkg/lib/perl5/vendor_perl/5.20.0/x86_64-netbsd-thread-multi
/usr/pkg/lib/perl5/vendor_perl/5.20.0
/usr/pkg/lib/perl5/5.20.0/x86_64-netbsd-thread-multi
/usr/pkg/lib/perl5/5.20.0 .) at
/usr/pkg/lib/perl5/vendor_perl/5.20.0/DNSCheck/Test/Zone.pm line 40.
BEGIN failed--compilation aborted at
/usr/pkg/lib/perl5/vendor_perl/5.20.0/DNSCheck/Test/Zone.pm line 40.
Compilation failed in require at
/usr/pkg/lib/perl5/vendor_perl/5.20.0/DNSCheck.pm line 51.
BEGIN failed--compilation aborted at
/usr/pkg/lib/perl5/vendor_perl/5.20.0/DNSCheck.pm line 51.
Compilation failed in require at /usr/pkg/bin/dnscheck line 42.
BEGIN failed--compilation aborted at /usr/pkg/bin/dnscheck line 42.

How-To-Repeat:
make net/dnscheck, install and run as is.
Fix:
make devel/p5-List-MoreUtils, install and run dnscheck again.



Home | Main Index | Thread Index | Old Index