From owner-svn-ports-all@freebsd.org Sun Jun 24 01:06:41 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 688DD100CD9B; Sun, 24 Jun 2018 01:06:41 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1AF3C70BEE; Sun, 24 Jun 2018 01:06:41 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F155E17840; Sun, 24 Jun 2018 01:06:40 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5O16ex0061329; Sun, 24 Jun 2018 01:06:40 GMT (envelope-from adamw@FreeBSD.org) Received: (from adamw@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5O16ew4061327; Sun, 24 Jun 2018 01:06:40 GMT (envelope-from adamw@FreeBSD.org) Message-Id: <201806240106.w5O16ew4061327@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adamw set sender to adamw@FreeBSD.org using -f From: Adam Weinberger Date: Sun, 24 Jun 2018 01:06:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r473172 - in head/devel/p5-Canary-Stability: . files X-SVN-Group: ports-head X-SVN-Commit-Author: adamw X-SVN-Commit-Paths: in head/devel/p5-Canary-Stability: . files X-SVN-Commit-Revision: 473172 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2018 01:06:41 -0000 Author: adamw Date: Sun Jun 24 01:06:40 2018 New Revision: 473172 URL: https://svnweb.freebsd.org/changeset/ports/473172 Log: Neutralize Canary::Stability entirely As time goes on, the uselessness of this module only increases. Previously, a short-circuit was used to return early from import(), but there's no point in even wasting time to compile it anymore. Instead, when ACTIVATE is off, replace the module entirely with a much more functional stub. Added: head/devel/p5-Canary-Stability/files/ head/devel/p5-Canary-Stability/files/Stability.pm (contents, props changed) Modified: head/devel/p5-Canary-Stability/Makefile Modified: head/devel/p5-Canary-Stability/Makefile ============================================================================== --- head/devel/p5-Canary-Stability/Makefile Sun Jun 24 01:06:12 2018 (r473171) +++ head/devel/p5-Canary-Stability/Makefile Sun Jun 24 01:06:40 2018 (r473172) @@ -2,6 +2,7 @@ PORTNAME= Canary-Stability PORTVERSION= 2012 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN MASTER_SITE_SUBDIR= CPAN:MLEHMANN @@ -19,9 +20,8 @@ USE_PERL5= configure OPTIONS_DEFINE= ACTIVATE ACTIVATE_DESC= Enable Canary::Stability functionality -# Just skip everything in this module unless activated +# Install an empty stub post-patch-ACTIVATE-off: - @${REINPLACE_CMD} -e '/^sub import {/s/$$/ return 1; /' \ - ${WRKSRC}/Stability.pm + ${CP} ${FILESDIR}/Stability.pm ${WRKSRC} .include Added: head/devel/p5-Canary-Stability/files/Stability.pm ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Canary-Stability/files/Stability.pm Sun Jun 24 01:06:40 2018 (r473172) @@ -0,0 +1,19 @@ +=head1 NAME + +Canary::Stability - Stub to prevent checking perl compatibility for "schmorp" modules + +=head1 SYNOPSIS + + use Canary::Stability; + +=head1 PURPOSE + +This is a stub module that neutralizes the original Canary::Stability +module. That module is a relic of a strange notion that "schmorp" should +prevent people from using any Perl released after 2015. + +=cut + +package Canary::Stability; + +1;