From nobody Sun Oct 09 15:38:52 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MlmRc2wKxz4dw95; Sun, 9 Oct 2022 15:38:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MlmRc24LPz3ZyG; Sun, 9 Oct 2022 15:38:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665329932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sOccxhVujG9WQtVY43x91xLag1UrH9bMaKk6qvVjxzw=; b=wkpptHgwCmXaXW7VohkTmcv7wQeiGBaUHagNjsSfvQqDJJhsQcsI6UXOCaHBqW3o7ZW2Sw A9RCbd21S2sjWcT1LvK9OilUvK9zmrr3aeJlPv1utG6j0ufHn/scqYFNe7xqN19ddr00PM YVVHswtbolYFtNzTes5/VGT9m2MIU2PLP8GKHFwzqQvcvE9Y3dqAwztFFBey5JD7f3hAGe 9wOPhCRXR1gloJBpWUdHz7fAN07OemFvSHFxzDRawPfK+HL2rzVZPlLcHY1wg/69NCF+Sj itPhzdt1tWb+1DQHAd+1nleVaTX1Pw/mUhHYZdwa54FhsHcW1yRVQLJ+hSa5mQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MlmRc0vF6zKX3; Sun, 9 Oct 2022 15:38:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 299FcqgI041559; Sun, 9 Oct 2022 15:38:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 299FcqHK041558; Sun, 9 Oct 2022 15:38:52 GMT (envelope-from git) Date: Sun, 9 Oct 2022 15:38:52 GMT Message-Id: <202210091538.299FcqHK041558@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: b91a0f277666 - main - devel/p5-MooseX-Role-WarnOnConflict: Add p5-MooseX-Role-WarnOnConflict 0.01 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b91a0f27766668817a5b6aa5148b245095e9dab5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665329932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sOccxhVujG9WQtVY43x91xLag1UrH9bMaKk6qvVjxzw=; b=NffwgQibClqhr2SZJ3S5BfwRlSrYmXVp8nzhZ2XV+9ZjKoxbJ9FsY/nQUR9hTugX4BLWnD KyrroYEEA2Bx5/6xOgvJOVqbjHD4IVgjoI/xXn08sm6kw+JsckpeZMNHU0IIAbzsREO4E8 i1cftjIvwpGZYt+InWQryUy42C92g7hcgmC34s4OMbvZ9AlteiRm9xFusL7+7niHSSqc05 AjXF8WLpukg8qetT8cKitfVnlatGdiyGM7fsaJ9kE/JnQ7E3j8X5dYsVvSdIIg/lvPvW1c p5mbe3PCsow5ixSRXYO/7Sk6aJH6+VzKEr9n1dVO5oMZQXq72j1EbrSVkNxEqw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665329932; a=rsa-sha256; cv=none; b=aFbm35RNfJV28gvgBT0UfFz6O93KOF0P+N4i6jKEEx5PxlI1BU0rkVjATRphsodKbq9InL ZeN14+kPRPuqs+2J3gMnYNoa6SgMcNGxgxUgZI+r7BiOexEHY+KJFbEPh1gic1UggWcFmL NE+LtKTKWipHN6fGpQJMDLYsXrowlOt6TovjFh8Cjyc6iFjR+02dHcxV1o1F9Y4xKu3PFj z9KBJgIACSAcSyHwOQG0ua7ioLc6unvhfBo0STb44OtYQ8JDLFar/PW6NuZU+U/A7F7rye HpJ22n6OIWX5DA8RL/Awni9HkcA/OM0LNqrgQg83KYT1wlSxQKPahwm6e2kKSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b91a0f27766668817a5b6aa5148b245095e9dab5 commit b91a0f27766668817a5b6aa5148b245095e9dab5 Author: Po-Chuan Hsieh AuthorDate: 2022-10-09 15:19:06 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-10-09 15:37:42 +0000 devel/p5-MooseX-Role-WarnOnConflict: Add p5-MooseX-Role-WarnOnConflict 0.01 When using Moose::Role, a class which provides a method a role provides will silently override that method. This can cause strange, hard-to-debug errors when the role's methods are not called. Simply use MooseX::Role::WarnOnConflict instead of Moose::Role and overriding a role's method becomes a composition-time warning. See the synopsis for a resolution. --- devel/Makefile | 1 + devel/p5-MooseX-Role-WarnOnConflict/Makefile | 24 ++++++++++++++++++++++++ devel/p5-MooseX-Role-WarnOnConflict/distinfo | 3 +++ devel/p5-MooseX-Role-WarnOnConflict/pkg-descr | 5 +++++ devel/p5-MooseX-Role-WarnOnConflict/pkg-plist | 4 ++++ 5 files changed, 37 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 04aa6288b48f..0370c74b9f90 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2912,6 +2912,7 @@ SUBDIR += p5-MooseX-Role-Matcher SUBDIR += p5-MooseX-Role-Parameterized SUBDIR += p5-MooseX-Role-Strict + SUBDIR += p5-MooseX-Role-WarnOnConflict SUBDIR += p5-MooseX-Runnable SUBDIR += p5-MooseX-SemiAffordanceAccessor SUBDIR += p5-MooseX-SetOnce diff --git a/devel/p5-MooseX-Role-WarnOnConflict/Makefile b/devel/p5-MooseX-Role-WarnOnConflict/Makefile new file mode 100644 index 000000000000..8766a44452ee --- /dev/null +++ b/devel/p5-MooseX-Role-WarnOnConflict/Makefile @@ -0,0 +1,24 @@ +PORTNAME= MooseX-Role-WarnOnConflict +PORTVERSION= 0.01 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Warn if classes override role methods without excluding them +WWW= https://metacpan.org/dist/MooseX-Role-WarnOnConflict + +LICENSE= ART20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Moose>=0:devel/p5-Moose +TEST_DEPENDS= p5-Capture-Tiny>=0:devel/p5-Capture-Tiny \ + p5-Test-Most>=0:devel/p5-Test-Most + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include diff --git a/devel/p5-MooseX-Role-WarnOnConflict/distinfo b/devel/p5-MooseX-Role-WarnOnConflict/distinfo new file mode 100644 index 000000000000..4b13aa3c7b2f --- /dev/null +++ b/devel/p5-MooseX-Role-WarnOnConflict/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1665073066 +SHA256 (MooseX-Role-WarnOnConflict-0.01.tar.gz) = 5547750f239db63b23d3027a07dbb16fd01a220d681e4f61624e6851401463c3 +SIZE (MooseX-Role-WarnOnConflict-0.01.tar.gz) = 11365 diff --git a/devel/p5-MooseX-Role-WarnOnConflict/pkg-descr b/devel/p5-MooseX-Role-WarnOnConflict/pkg-descr new file mode 100644 index 000000000000..8133954d4afe --- /dev/null +++ b/devel/p5-MooseX-Role-WarnOnConflict/pkg-descr @@ -0,0 +1,5 @@ +When using Moose::Role, a class which provides a method a role provides will +silently override that method. This can cause strange, hard-to-debug errors when +the role's methods are not called. Simply use MooseX::Role::WarnOnConflict +instead of Moose::Role and overriding a role's method becomes a composition-time +warning. See the synopsis for a resolution. diff --git a/devel/p5-MooseX-Role-WarnOnConflict/pkg-plist b/devel/p5-MooseX-Role-WarnOnConflict/pkg-plist new file mode 100644 index 000000000000..4deaffd10feb --- /dev/null +++ b/devel/p5-MooseX-Role-WarnOnConflict/pkg-plist @@ -0,0 +1,4 @@ +%%SITE_PERL%%/MooseX/Meta/Role/WarnOnConflict.pm +%%SITE_PERL%%/MooseX/Role/WarnOnConflict.pm +%%PERL5_MAN3%%/MooseX::Meta::Role::WarnOnConflict.3.gz +%%PERL5_MAN3%%/MooseX::Role::WarnOnConflict.3.gz