Bug 1165628 - Review Request: perl-Tie-Cycle - Cycle through a list of values via a scalar
Summary: Review Request: perl-Tie-Cycle - Cycle through a list of values via a scalar
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Petr Šabata
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1165620 1165639
TreeView+ depends on / blocked
 
Reported: 2014-11-19 11:47 UTC by Colin Macdonald
Modified: 2014-12-06 10:39 UTC (History)
2 users (show)

Fixed In Version: perl-Getopt-Tabular-0.3-2.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-06 10:39:29 UTC
Type: ---
Embargoed:
psabata: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Colin Macdonald 2014-11-19 11:47:59 UTC
Spec URL: https://github.com/cbm755/fedora-spec/blob/master/perl-Tie-Cycle.spec
SRPM URL: http://people.maths.ox.ac.uk/macdonald/fedora/perl-Tie-Cycle-1.20-1.fc21.src.rpm

Description:
You use Tie::Cycle to go through a list over and over again. Once you get
to the end of the list, you go back to the beginning. You don't have to
worry about any of this since the magic of tie does that for you.

Fedora Account System Username: cbm

This is dep for Biber, bug #1165620

I need sponsorship, but I'm not a perl user so I'm equally happy for perl people to take this one.

Koji: koji.fedoraproject.org/koji/taskinfo?taskID=8180291

Comment 1 Petr Šabata 2014-11-19 14:39:21 UTC
#1 The same as bug 1165625, comment 3, point 3.

#2 The same as bug 1165625, comment 3, point 4.

#3 Don't package META.json in %doc.  It's not really useful to end users.

#4 Missing build-time deps here: perl, perl(Carp), perl(constant), perl(strict), perl(Test::More) >= 0.95.

#5 The minimum required version of ExtUtils::MakeMaker is 6.46.  You should reflect that in your list of build-time deps.

#6 Test::Simple is not used anywhere, at all.  What you wanted was Test::More (see above).

#7 Addition optional build-time dependencies you may add are perl(Test::Pod) >= 1.00 and perl(Test::Pod::Coverage).

Comment 3 Colin Macdonald 2014-11-19 17:30:25 UTC
For a minute I thought some of my BR should actually be Requires.  I think I've sorted it out...

says "tangerine lib/":

````
Carp
	Used by:
		lib/Tie/Cycle.pm:6
constant
	Used by:
		lib/Tie/Cycle.pm:10
		lib/Tie/Cycle.pm:8
		lib/Tie/Cycle.pm:9
ExtUtils::MakeMaker, version 6.46
	Used by:
		Makefile.PL:1, v6.46
strict
	Used by:
		lib/Tie/Cycle.pm:2
Tie::Cycle
	Provided by:
		lib/Tie/Cycle.pm:1

````

Are these observations correct?

1.  That output means perl(Carp), perl(constant), perl(strict) are run-time deps (not build deps).

2.  It looks like rpmbuild automatically knows about these three (from output of "rpm -qRp").  That is why we don't need to manually list them as "Requires".

3.  All Requires effectively become BR because of tests (which need to load the module itself).  Which is why we list them as BR (even though the Makefile itself doesn't need them.)

Comment 4 Petr Šabata 2014-11-19 18:31:37 UTC
(In reply to Colin Macdonald from comment #3)
> Are these observations correct?
> 
> 1.  That output means perl(Carp), perl(constant), perl(strict) are run-time
> deps (not build deps).

Well, since the code is tested in %check phase, they're both.

> 2.  It looks like rpmbuild automatically knows about these three (from
> output of "rpm -qRp").  That is why we don't need to manually list them as
> "Requires".

Correct.

Once built, rpmbuild scans perl files listed in %files and generates list of provided and required modules.  If you're curious, you can find the script rpmbuild uses in the perl-generators package.

> 3.  All Requires effectively become BR because of tests (which need to load
> the module itself).  Which is why we list them as BR (even though the
> Makefile itself doesn't need them.)

Correct, see (1) :)

However, this isn't always the case.  It depends on what code is tested and what is not.  Some test suites are very thorough, some don't do much.

`use'-like statements are compile-time dependencies and are always needed when the file is loaded via whatever method, even if the said statement is in a block which isn't executed.  `require'-like statements are pure runtime dependencies.

Our module here is very simple; all these are "used", therefore they will be loaded as soon as something touches lib/Tie/Cycle.pm.  And when you run `tangerine t/', you see all three tests (obviously) do fiddle with it.

Comment 5 Petr Šabata 2014-11-19 18:35:56 UTC
This package fine now.  I'm approving it.

I've just sponsored you, too.  You can now request git branches you care about:
https://fedoraproject.org/wiki/Package_SCM_admin_requests

When dealing with perl packages, please, always add perl-sig to InitialCC.

Comment 6 Colin Macdonald 2014-11-22 00:11:50 UTC
New Package SCM Request
=======================
Package Name: perl-Tie-Cycle
Short Description: Cycle through a list of values via a scalar
Upstream URL: http://search.cpan.org/dist/Tie-Cycle/
Owners: cbm mef
Branches: f21
InitialCC: perl-sig

Comment 7 Gwyn Ciesla 2014-11-24 13:47:46 UTC
Git done (by process-git-requests).

Comment 8 Fedora Update System 2014-11-24 23:44:41 UTC
perl-Getopt-Tabular-0.3-2.fc21,perl-Business-ISSN-0.91-4.fc21,perl-Tie-Cycle-1.20-2.fc21,perl-XML-LibXML-Simple-0.94-3.fc21,perl-XML-Writer-String-0.1-5.fc21,perl-ExtUtils-LibBuilder-0.06-4.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/perl-Getopt-Tabular-0.3-2.fc21,perl-Business-ISSN-0.91-4.fc21,perl-Tie-Cycle-1.20-2.fc21,perl-XML-LibXML-Simple-0.94-3.fc21,perl-XML-Writer-String-0.1-5.fc21,perl-ExtUtils-LibBuilder-0.06-4.fc21

Comment 9 Fedora Update System 2014-11-25 21:25:49 UTC
perl-Getopt-Tabular-0.3-2.fc21, perl-Business-ISSN-0.91-4.fc21, perl-Tie-Cycle-1.20-2.fc21, perl-XML-LibXML-Simple-0.94-3.fc21, perl-XML-Writer-String-0.1-5.fc21, perl-ExtUtils-LibBuilder-0.06-4.fc21 has been pushed to the Fedora 21 testing repository.

Comment 10 Fedora Update System 2014-12-06 10:39:29 UTC
perl-Getopt-Tabular-0.3-2.fc21, perl-Business-ISSN-0.91-4.fc21, perl-Tie-Cycle-1.20-2.fc21, perl-XML-LibXML-Simple-0.94-3.fc21, perl-XML-Writer-String-0.1-5.fc21, perl-ExtUtils-LibBuilder-0.06-4.fc21 has been pushed to the Fedora 21 stable repository.


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