Bug 2097746 - Review Request: perl-MooseX-Role-WarnOnConflict - Warn if classes override role methods without excluding them
Summary: Review Request: perl-MooseX-Role-WarnOnConflict - Warn if classes override r...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2097813
TreeView+ depends on / blocked
 
Reported: 2022-06-16 12:48 UTC by Ralf Corsepius
Modified: 2022-06-27 10:25 UTC (History)
2 users (show)

Fixed In Version: perl-MooseX-Role-WarnOnConflict-0.01-2.fc37 perl-MooseX-Role-WarnOnConflict-0.01-2.fc36 perl-MooseX-Role-WarnOnConflict-0.01-2.fc35
Clone Of:
Environment:
Last Closed: 2022-06-27 10:25:02 UTC
Type: ---
Embargoed:
jplesnik: fedora-review+


Attachments (Terms of Use)

Description Ralf Corsepius 2022-06-16 12:48:48 UTC
Spec URL: https://corsepiu.fedorapeople.org/packages/perl-MooseX-Role-WarnOnConflict.spec
SRPM URL: https://corsepiu.fedorapeople.org/packages/perl-MooseX-Role-WarnOnConflict-0.01-1.fc37.src.rpm
Description: 
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.

Fedora Account System Username: corsepiu

Comment 1 Jitka Plesnikova 2022-06-20 17:11:21 UTC
Source file is ok
Summary is ok
License is ok
Description is ok
URL and Source0 are ok
All tests passed

BuildRequires
FIX: Please add 'coreutils', it is needed for macro %{_fixperms}
TODO: Please add version restriction for perl(ExtUtils::MakeMaker) >= 6.76
      NO_PACKLIST is provided since this version.

$ rpm -qp --requires perl-MooseX-Role-WarnOnConflict-0.01-1.fc37.noarch.rpm | sort | uniq -c | grep -v rpmlib
      1 perl(Carp)
      1 perl(:MODULE_COMPAT_5.36.0)
      1 perl(Moose)
      1 perl(Moose::Exporter)
      1 perl(Moose::Role)
      1 perl(MooseX::Meta::Role::WarnOnConflict)
      1 perl(strict)
      1 perl(warnings)
FIX: Please add following run-time requires:
     perl(Moose::Meta::Role) - lib/MooseX/Meta/Role/WarnOnConflict.pm:6
     perl(Moose::Meta::Role::Application::ToClass) - lib/MooseX/Role/WarnOnConflict.pm:28

$ rpm -qp --provides perl-MooseX-Role-WarnOnConflict-0.01-1.fc37.noarch.rpm | sort | uniq -c
      1 perl(MooseX::Meta::Role::WarnOnConflict) = 0.01
      1 perl(MooseX::Role::WarnOnConflict) = 0.01
      1 perl-MooseX-Role-WarnOnConflict = 0.01-1.fc37
Binary provides are Ok.

$ rpmlint ./perl-MooseX-Role-WarnOnConflict*
================================ rpmlint session starts ================================
rpmlint: 2.2.0
configuration:
    /usr/lib/python3.10/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/licenses.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 32, packages: 3
= 2 packages and 1 specfiles checked; 0 errors, 0 warnings, 0 badness; has taken 0.2 s =
Rpmlint is ok

Otherwise the package is in line with Fedora and Perl packaging guide lines.
Please correct all 'FIX' items, consider fixing 'TODO' item.

Resolution:
Approved

Comment 3 Gwyn Ciesla 2022-06-21 19:47:53 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/perl-MooseX-Role-WarnOnConflict

Comment 4 Jitka Plesnikova 2022-06-27 10:25:02 UTC
Built by corsepiu


Note You need to log in before you can comment on or make changes to this bug.