Bug 2195959 - Review Request: pgn-extract - Portable Game Notation (PGN) Manipulator for Chess Games
Summary: Review Request: pgn-extract - Portable Game Notation (PGN) Manipulator for Ch...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Benson Muite
QA Contact: Fedora Extras Quality Assurance
URL: https://www.cs.kent.ac.uk/~djb/pgn-ex...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-06 23:19 UTC by Davide Cavalca
Modified: 2024-12-28 02:57 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-12-18 20:07:52 UTC
Type: ---
Embargoed:
benson_muite: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 5897240 to 8410668 (1.01 KB, patch)
2024-12-18 12:32 UTC, Fedora Review Service
no flags Details | Diff

Description Davide Cavalca 2023-05-06 23:19:22 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/pgn-extract/pgn-extract.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/pgn-extract/pgn-extract-22.11-1.fc39.src.rpm

Description:
pgn-extract is a command-line program for searching, manipulating and
formatting chess games recorded in the Portable Game Notation (PGN) or
something close. It is capable of handling files containing millions of games.
It also recognises Chess960 encodings.

Fedora Account System Username: dcavalca

Comment 1 Davide Cavalca 2023-05-06 23:19:25 UTC
This package built on koji:  https://koji.fedoraproject.org/koji/taskinfo?taskID=100825719

Comment 2 Fedora Review Service 2023-05-08 19:32:16 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5897240
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2195959-pgn-extract/fedora-rawhide-x86_64/05897240-pgn-extract/fedora-review/review.txt

Please take a look if any issues were found.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 3 Benson Muite 2023-05-22 11:51:50 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed



===== MUST items =====

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Header files in -devel subpackage, if present.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[ ]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "GNU General Public License v3.0 or
     later", "*No copyright* GNU General Public License", "GNU General
     Public License v1.0 or later [obsolete FSF postal address (Mass
     Ave)]". 197 files have unknown license. Detailed output of
     licensecheck in /home/FedoraPackaging/reviews/pgn-extract/2195959-
     -pgn-extract/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[!]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/pgn-extract
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/pgn-extract
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[x]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 153600 bytes in 4 files.
[x]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: No rpmlint messages.
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package must not depend on deprecated() packages.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Packages must not store files under /srv, /opt or /usr/local

===== SHOULD items =====

Generic:
[-]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[ ]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[ ]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Fully versioned dependency in subpackages if applicable.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on debuginfo package(s).
     Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
     Note: No rpmlint messages.
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: pgn-extract-22.11-1.fc39.x86_64.rpm
          pgn-extract-debuginfo-22.11-1.fc39.x86_64.rpm
          pgn-extract-debugsource-22.11-1.fc39.x86_64.rpm
          pgn-extract-22.11-1.fc39.src.rpm
=========================================================== rpmlint session starts ==========================================================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmp9dva_yr2')]
checks: 31, packages: 4

============================ 4 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 badness; has taken 6.5 s ===========================




Rpmlint (debuginfo)
-------------------
Checking: pgn-extract-debuginfo-22.11-1.fc39.x86_64.rpm
=========================================================== rpmlint session starts ==========================================================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmpymcw8ir_')]
checks: 31, packages: 1

============================ 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 badness; has taken 1.4 s ===========================





Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 31, packages: 3

 3 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 badness; has taken 3.4 s 



Source checksums
----------------
https://www.cs.kent.ac.uk/~djb/pgn-extract/pgn-extract-22-11.tgz :
  CHECKSUM(SHA256) this package     : 331e84d55299987dc27f159292ea3b59b94c47edc972f32e96f4e6c0c8621c0b
  CHECKSUM(SHA256) upstream package : 331e84d55299987dc27f159292ea3b59b94c47edc972f32e96f4e6c0c8621c0b


Requires
--------
pgn-extract (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libm.so.6()(64bit)
    rtld(GNU_HASH)

pgn-extract-debuginfo (rpmlib, GLIBC filtered):

pgn-extract-debugsource (rpmlib, GLIBC filtered):



Provides
--------
pgn-extract:
    pgn-extract
    pgn-extract(x86-64)

pgn-extract-debuginfo:
    debuginfo(build-id)
    pgn-extract-debuginfo
    pgn-extract-debuginfo(x86-64)

pgn-extract-debugsource:
    pgn-extract-debugsource
    pgn-extract-debugsource(x86-64)



Generated by fedora-review 0.9.0 (6761b6c) last change: 2022-08-23
Command line :/usr/bin/fedora-review -b 2195959
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, Generic, C/C++
Disabled plugins: Ocaml, Haskell, SugarActivity, R, fonts, Perl, PHP, Java, Python, Ruby
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comments:
a) Please modify spec file to add
%dir %{_datadir}/%{name}
in the files section
b) Please also package the copyright file
c) typedef.h seems to be under GPL 1.0 or later
d) Warning when building:
map.c: In function 'generate_pawn_moves':
map.c:2153:27: warning: array subscript -1 is below array bounds of 'const Piece[12]' [-Warray-bounds=]
 2153 |     if (board->board[to_r][to_c] == OFF) {
      |         ~~~~~~~~~~~~~~~~~~^~~~~~
In file included from map.c:28:
defs.h:89:11: note: while referencing 'board'
   89 |     Piece board[HEDGE+BOARDSIZE+HEDGE][HEDGE+BOARDSIZE+HEDGE];
      |           ^~~~~

Comment 4 Davide Cavalca 2024-02-10 12:32:01 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/pgn-extract/pgn-extract.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/pgn-extract/pgn-extract-22.11-1.fc40.src.rpm

Changelog:
- update license tag
- fix typo in description
- add %{_datadir}/%{name} to %files

Comment 5 Davide Cavalca 2024-02-10 12:33:02 UTC
Thanks!

> a) Please modify spec file to add
> %dir %{_datadir}/%{name}
> in the files section

Fixed

> b) Please also package the copyright file

This is already included in %license

> c) typedef.h seems to be under GPL 1.0 or later

Fixed

> d) Warning when building:

These seem harmless in practice. I'd put up a PR but there isn't an upstream repo or an obvious contribution workflow.

Comment 6 Benson Muite 2024-12-18 12:25:38 UTC
[fedora-review-service-build]

Comment 7 Fedora Review Service 2024-12-18 12:32:03 UTC
Created attachment 2062965 [details]
The .spec file difference from Copr build 5897240 to 8410668

Comment 8 Fedora Review Service 2024-12-18 12:32:05 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8410668
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2195959-pgn-extract/fedora-rawhide-x86_64/08410668-pgn-extract/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 9 Benson Muite 2024-12-18 13:12:52 UTC
>> b) Please also package the copyright file

> This is already included in %license

The information in copyright is not included in COPYING.
Please use either:
%license COPYING copyright
or
%license COPYING
%doc copyright



>> d) Warning when building:

> These seem harmless in practice. I'd put up a PR but there isn't an upstream repo or an obvious contribution workflow.

Information can be sent by email to upstream, see:
https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/

Approved. Sorry for the delay. Please fix (b) and update to the latest version on import.

Comment 10 Davide Cavalca 2024-12-18 14:21:54 UTC
Thanks for the review! Repo request is failing with
> The email address "benson_muite" of the Bugzilla reviewer is not tied to a user in FAS or FAS check failed. Group membership can't be validated.
in https://pagure.io/releng/fedora-scm-requests/issue/70923 -- I think you might need to add/update your bugzilla email in FAS

Comment 11 Benson Muite 2024-12-18 15:59:48 UTC
Updated. Please try to request the repo again.

Comment 12 Fedora Admin user for bugzilla script actions 2024-12-18 19:43:26 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/pgn-extract

Comment 13 Fedora Update System 2024-12-18 19:57:06 UTC
FEDORA-2024-f05a842112 (pgn-extract-24.11-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-f05a842112

Comment 14 Fedora Update System 2024-12-18 20:07:52 UTC
FEDORA-2024-f05a842112 (pgn-extract-24.11-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2024-12-19 09:53:10 UTC
FEDORA-2024-ab691c9cce (pgn-extract-24.11-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ab691c9cce

Comment 16 Fedora Update System 2024-12-20 04:36:47 UTC
FEDORA-2024-ab691c9cce has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-ab691c9cce \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-ab691c9cce

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2024-12-28 02:57:40 UTC
FEDORA-2024-ab691c9cce (pgn-extract-24.11-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


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