[Bug 2159396] Review Request: perl-generators-epel - RPM Perl dependencies generators for EPEL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2159396

Petr Pisar <ppisar@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|fedora-review?              |fedora-review+



--- Comment #2 from Petr Pisar <ppisar@xxxxxxxxxx> ---
A standalone spec file and a spec file in the source package differ. The
difference is not important for EPELs 7--9.

Summary is Ok.
Description is Ok.
TODO: I think a better English phrasing is "getting run-time requirements
perl(:MODULE_COMPAT_XXX) and perl-libs".

FIX: Use an SPDX format for the License tag (GPL-1.0-or-later).

The run-time dependency on perl-macros is for %perl_version macro. Ok.
I'm not a Lua expert, but I think that "path:match('.+%.so$')" could be
simplified to "path:match('%.so$')".

FIX: In perlcompat.req shell script you are missing double quotes in the test:
'[ -z "$PERL_VERSION" ]'. If the variable contained a space you would get a
syntax error:

$ sh ../SOURCES/perlcompat.req 'a b'
../SOURCES/perlcompat.req: line 3: [: a: binary operator expected
perl(:MODULE_COMPAT_a b)

Moreover the negated test can be simplified to 'if [ -n "$PERL_VERSION" ];
then'.

FIX: perlcompat.req is a POSIX shell script (#!/bin/sh). POSIX shell does not
have a built-in "test" or "[" command. Either change the interpreter to
/bin/bash, or run-require coreutils which provides "/usr/bin/[" tool. Because
Fedora and RHEL have /bin/sh implemented with bash, I recommend changing the
interpreter than adding a superfluous dependency.

$ rpmlint perl-generators-epel.spec
../SRPMS/perl-generators-epel-1-1.el9.src.rpm
../RPMS/noarch/perl-generators-epel-1-1.el9.noarch.rpm 
perl-generators-epel.spec: W: no-%prep-section
perl-generators-epel.spec: W: no-%build-section
perl-generators-epel.src: W: no-url-tag
perl-generators-epel.src: W: no-%prep-section
perl-generators-epel.src: W: no-%build-section
perl-generators-epel.noarch: W: no-url-tag
perl-generators-epel.noarch: W: only-non-binary-in-usr-lib
perl-generators-epel.noarch: W: no-documentation
2 packages and 1 specfiles checked; 0 errors, 8 warnings.
TODO: Set URL tag to <https://src.fedoraproject.org/rpms/perl-generators-epel>.

$ rpm -q -lv -p ../RPMS/noarch/perl-generators-epel-1-1.el9.noarch.rpm 
-rw-r--r--    1 root     root                      365 Jan  9 15:36
/usr/lib/rpm/fileattrs/perlcompat.attr
File layout and permissions are Ok.

$ rpm -q --requires -p ../RPMS/noarch/perl-generators-epel-1-1.el9.noarch.rpm |
sort -f | uniq -c
      1 perl-macros
      1 rpmlib(CompressedFileNames) <= 3.0.4-1
      1 rpmlib(FileDigests) <= 4.6.0-1
      1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
      1 rpmlib(PayloadIsZstd) <= 5.4.18-1
FIX: /usr/lib/rpm/fileattrs is owned by "rpm" package. Either run-require that,
or own that directory.

$ rpm -q --provides -p ../RPMS/noarch/perl-generators-epel-1-1.el9.noarch.rpm |
sort -f | uniq -c
      1 perl-generators-epel = 1-1.el9
Binary provides are Ok.

The package builds in EPEL9
(https://koji.fedoraproject.org/koji/taskinfo?taskID=95924829). Ok.

Functional tests: I confirmed that after installing that package perl-libs and
perl(:MODULE_COMPAT_...) are correctly added to packages which install files
into a standard Perl path.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2159396
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux