Bug 552564 - Merge Review: perl-IO-stringy - I/O on in-core objects like strings and arrays for Perl
Summary: Merge Review: perl-IO-stringy - I/O on in-core objects like strings and array...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Parag AN(पराग)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-05 14:38 UTC by Marcela Mašláňová
Modified: 2011-01-19 09:44 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-15 12:23:36 UTC
Type: ---
Embargoed:
panemade: fedora-review+


Attachments (Terms of Use)

Description Marcela Mašláňová 2010-01-05 14:38:48 UTC
SRPM: http://kojipkgs.fedoraproject.org/packages/perl-IO-stringy/2.110/11.fc13/src/perl-IO-stringy-2.110-11.fc13.src.rpm
Spec: http://koji.fedoraproject.org/koji/fileinfo?rpmID=1735817&filename=perl-IO-stringy.spec
Description: This toolkit primarily provides Perl modules for performing both traditional and object-oriented I/O) on things *other* than normal filehandles; in particular, IO::Scalar, IO::ScalarArray, and IO::Lines.

Comment 1 Parag AN(पराग) 2010-01-15 06:52:08 UTC
Review:
+ package builds in mock (rawhide i686).
koji Build =>http://koji.fedoraproject.org/koji/taskinfo?taskID=1923072
- rpmlint is NOT silent for SRPM and for RPM.
perl-IO-stringy.noarch: W: spurious-executable-perm /usr/share/doc/perl-IO-stringy-2.110/examples/IO_Scalar_synopsis
perl-IO-stringy.noarch: W: doc-file-dependency /usr/share/doc/perl-IO-stringy-2.110/examples/IO_Scalar_synopsis /usr/bin/perl

+ source files match upstream url (sha1sum)
3ef94404e51e3a6276ddddcce9ba7bbdd6b76a1f  IO-stringy-2.110.tar.gz
+ package meets naming and packaging guidelines.
+ make test gave
All tests successful.
Files=6, Tests=116,  0 wallclock secs ( 0.03 usr  0.01 sys +  0.18 cusr  0.02 csys =  0.24 CPU)
+ Package perl-IO-stringy-2.110-11.fc13.noarch =>
Provides: perl(IO::AtomicFile) = 2.110 perl(IO::InnerFile) = 2.110 perl(IO::Lines) = 2.110 perl(IO::Scalar) = 2.110 perl(IO::ScalarArray) = 2.110 perl(IO::Stringy) = 2.110 perl(IO::Wrap) = 2.110 perl(IO::WrapTie) = 2.110 perl(IO::WrapTie::Master) perl(IO::WrapTie::Slave)
Requires: /usr/bin/perl perl >= 0:5.002 perl >= 0:5.004 perl >= 0:5.005 perl(Carp) perl(Exporter) perl(FileHandle) perl(IO::File) perl(IO::Handle) perl(IO::Scalar) perl(IO::ScalarArray) perl(IO::WrapTie) perl(Symbol) perl(overload) perl(strict) perl(vars)

Suggestions:
1) please use macros everywhere so replace rm in following with its macro
/usr/bin/find %{buildroot} -type f -name .packlist -exec rm -f {} ';'

2)change line
%{__chmod} -R u+w %{buildroot}/*
to
%{_fixperms} %{buildroot}/*

3) Fix rpmlint message by adding following to %prep
chmod 644 examples/IO_Scalar_synopsis


APPROVED.

Comment 2 Marcela Mašláňová 2010-01-15 12:23:36 UTC
Thanks, macros in this spec are really strange. Fixed.

Comment 3 Paul Howarth 2010-01-15 13:46:27 UTC
(In reply to comment #1)
> - rpmlint is NOT silent for SRPM and for RPM.
> perl-IO-stringy.noarch: W: spurious-executable-perm
> /usr/share/doc/perl-IO-stringy-2.110/examples/IO_Scalar_synopsis
> perl-IO-stringy.noarch: W: doc-file-dependency
> /usr/share/doc/perl-IO-stringy-2.110/examples/IO_Scalar_synopsis /usr/bin/perl

...

> 3) Fix rpmlint message by adding following to %prep
> chmod 644 examples/IO_Scalar_synopsis

The rpmlint warnings don't really need fixing; having the example executable makes it easier to try, and the /usr/bin/perl dependency isn't adding anything that isn't already required by the package.

Comment 4 Parag AN(पराग) 2010-01-15 13:52:25 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > - rpmlint is NOT silent for SRPM and for RPM.
> > perl-IO-stringy.noarch: W: spurious-executable-perm
> > /usr/share/doc/perl-IO-stringy-2.110/examples/IO_Scalar_synopsis
> > perl-IO-stringy.noarch: W: doc-file-dependency
> > /usr/share/doc/perl-IO-stringy-2.110/examples/IO_Scalar_synopsis /usr/bin/perl
> 
> ...
> 
> > 3) Fix rpmlint message by adding following to %prep
> > chmod 644 examples/IO_Scalar_synopsis
> 
> The rpmlint warnings don't really need fixing; having the example executable
> makes it easier to try, and the /usr/bin/perl dependency isn't adding anything
> that isn't already required by the package.    

Just thought lets keep rpmlint silent. And yes I agree keeping it executable is easier to try.

Thanks for committing the changes. But Just wonder do you see macros in SPEC are more recommended for perl packages?

Comment 5 Paul Howarth 2010-01-15 14:01:29 UTC
I think it's just a matter of maintainer preference, as long as usage is consistent.

One thing I added that you missed in the review is that there is the bit that ties the package to a compatible version of perl:

Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

All perl packages should have this; its absence causes problems like the ones tracked by Bug #454257.

Comment 6 Marcela Mašláňová 2010-01-15 14:05:51 UTC
Wow how we missed the module compat. Added. Thanks for your comments.

Comment 7 Parag AN(पराग) 2010-01-15 14:08:24 UTC
Ah! how come I missed that requires.....

Thanks Paul.

Comment 8 Mathieu Bridon 2011-01-19 09:13:27 UTC
This package is in EPEL5, but not in EPEL6. Is there any reason for that?

I would like to see this package in EPEL6, and I am willing to help co-maintain it.

Comment 9 Mathieu Bridon 2011-01-19 09:40:38 UTC
Nevermind, I just saw it's in the RHEL6 Client repository (I was only looking at the Server one).

Sorry for the spam.

Comment 10 Marcela Mašláňová 2011-01-19 09:44:43 UTC
I found perl-IO-stringy in optional packages in RHEL-6. Not sure if these can be built in EPEL-6 or not.


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