Received: by mail.netbsd.org (Postfix, from userid 605) id 1CFCF84D30; Sun, 9 Jul 2017 17:17:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A28F284D2E for ; Sun, 9 Jul 2017 17:17:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 4GF50-A16juI for ; Sun, 9 Jul 2017 17:17:07 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id E8B5484D24 for ; Sun, 9 Jul 2017 17:17:06 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id E3668FB7A; Sun, 9 Jul 2017 17:17:06 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_149962062627300" MIME-Version: 1.0 Date: Sun, 9 Jul 2017 17:17:06 +0000 From: "Amitai Schleier" Subject: CVS commit: pkgsrc/sysutils/p5-IO-KQueue To: pkgsrc-changes@NetBSD.org Reply-To: schmonz@netbsd.org X-Mailer: log_accum Message-Id: <20170709171706.E3668FB7A@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_149962062627300 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: schmonz Date: Sun Jul 9 17:17:06 UTC 2017 Modified Files: pkgsrc/sysutils/p5-IO-KQueue: Makefile distinfo Added Files: pkgsrc/sysutils/p5-IO-KQueue/patches: patch-Makefile.PL Log Message: Rely on PKG_HAVE_KQUEUE to tell us whether the OS supports kqueue(2). Fixes build on Darwin 10.12.5 (and probably Bitrig and MirBSD, which had been excluded from ONLY_FOR_PLATFORM). To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 pkgsrc/sysutils/p5-IO-KQueue/Makefile cvs rdiff -u -r1.2 -r1.3 pkgsrc/sysutils/p5-IO-KQueue/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/p5-IO-KQueue/patches/patch-Makefile.PL Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_149962062627300 Content-Disposition: inline Content-Length: 2929 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/sysutils/p5-IO-KQueue/Makefile diff -u pkgsrc/sysutils/p5-IO-KQueue/Makefile:1.11 pkgsrc/sysutils/p5-IO-KQueue/Makefile:1.12 --- pkgsrc/sysutils/p5-IO-KQueue/Makefile:1.11 Mon Jun 5 14:24:36 2017 +++ pkgsrc/sysutils/p5-IO-KQueue/Makefile Sun Jul 9 17:17:06 2017 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2017/06/05 14:24:36 ryoon Exp $ +# $NetBSD: Makefile,v 1.12 2017/07/09 17:17:06 schmonz Exp $ DISTNAME= IO-KQueue-0.34 PKGNAME= p5-${DISTNAME} @@ -13,7 +13,11 @@ LICENSE= ${PERL5_LICENSE} BUILD_DEPENDS+= p5-perl-headers-[0-9]*:../../devel/p5-perl-headers -ONLY_FOR_PLATFORM= FreeBSD-*-* NetBSD-*-* OpenBSD-*-* DragonFly-*-* Darwin-*-* +.include "../../mk/bsd.prefs.mk" + +.if !defined(PKG_HAVE_KQUEUE) +PKG_FAIL_REASON+= "Requires kqueue(2)" +.endif PERL5_PACKLIST= auto/IO/KQueue/.packlist Index: pkgsrc/sysutils/p5-IO-KQueue/distinfo diff -u pkgsrc/sysutils/p5-IO-KQueue/distinfo:1.2 pkgsrc/sysutils/p5-IO-KQueue/distinfo:1.3 --- pkgsrc/sysutils/p5-IO-KQueue/distinfo:1.2 Wed Nov 4 01:32:24 2015 +++ pkgsrc/sysutils/p5-IO-KQueue/distinfo Sun Jul 9 17:17:06 2017 @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2015/11/04 01:32:24 agc Exp $ +$NetBSD: distinfo,v 1.3 2017/07/09 17:17:06 schmonz Exp $ SHA1 (IO-KQueue-0.34.tar.gz) = 8a006a1f43412569a38912c177aff483f9719d59 RMD160 (IO-KQueue-0.34.tar.gz) = c3110d99a29057e33d341b0c532c4331ee52ffe2 SHA512 (IO-KQueue-0.34.tar.gz) = 55833358bed2398d598bbe21204704e51c37afe12f0f6019979137228b75065757c8c71bca957a21fdf6388c15058713437b2ccec1237013e00d368a5f20c132 Size (IO-KQueue-0.34.tar.gz) = 8532 bytes +SHA1 (patch-Makefile.PL) = c4c652acfe5f7ceca99aedb03053f5cd15729b3a Added files: Index: pkgsrc/sysutils/p5-IO-KQueue/patches/patch-Makefile.PL diff -u /dev/null pkgsrc/sysutils/p5-IO-KQueue/patches/patch-Makefile.PL:1.1 --- /dev/null Sun Jul 9 17:17:06 2017 +++ pkgsrc/sysutils/p5-IO-KQueue/patches/patch-Makefile.PL Sun Jul 9 17:17:06 2017 @@ -0,0 +1,40 @@ +$NetBSD: patch-Makefile.PL,v 1.1 2017/07/09 17:17:06 schmonz Exp $ + +This check fails on OS X, but the code otherwise builds and passes +its tests. Let pkgsrc decide whether the OS has kqueue(2). + +--- Makefile.PL.orig 2005-02-17 22:15:36.000000000 +0000 ++++ Makefile.PL +@@ -3,19 +3,19 @@ + use strict; + use ExtUtils::MakeMaker; + +-eval { require 'syscall.ph'; 1 } || eval { require 'sys/syscall.ph'; 1 }; +- +-my $SYS_kqueue = eval { &::SYS_kqueue } || 362; +- +-my $kq = eval { syscall($SYS_kqueue) }; +- +-if ($@) { +- print < 'KQueue.pm', --_----------=_149962062627300--