Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1823132 - Review Request: gearhead1 - Roguelike mecha role-playing game
Summary: Review Request: gearhead1 - Roguelike mecha role-playing game
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: aegorenk
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: FE-GAMESIG
TreeView+ depends on / blocked
 
Reported: 2020-04-11 21:28 UTC by Artur Frenszek-Iwicki
Modified: 2020-05-28 04:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-28 01:59:58 UTC
Type: ---
Embargoed:
aegorenk: fedora-review+


Attachments (Terms of Use)

Description Artur Frenszek-Iwicki 2020-04-11 21:28:47 UTC
spec: https://svgames.pl/fedora/gearhead1-1.310-1.spec
srpm: https://svgames.pl/fedora/gearhead1-1.310-1.src.rpm
koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=43249441

Description: Set a century and a half after nuclear war, in this game you explore a world where various factions compete to determine the future of the human race. Features include random plot generation and over two hundred mecha designs. Pilot a giant robot, a city smashing tank, a living jet fighter, or anything else that can be built using the game's sophisticated design system.

Fedora Account System Username: suve

Comment 1 Artur Frenszek-Iwicki 2020-04-22 14:02:15 UTC
Added a textmode build of the game and split the whole thing into several packages.

spec: https://svgames.pl/fedora/gearhead1-1.310-2/gearhead1.spec
srpm: https://svgames.pl/fedora/gearhead1-1.310-2/gearhead1-1.310-2.fc32.src.rpm
koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=43642023

Comment 2 Artur Frenszek-Iwicki 2020-05-14 23:33:28 UTC
Added an appdata.xml file and switched to using fc-match for finding system fonts, instead of relying on hard-coded paths.

spec: https://svgames.pl/fedora/gearhead1-1.310-3/gearhead1.spec
srpm: https://svgames.pl/fedora/gearhead1-1.310-3/gearhead1-1.310-3.fc32.src.rpm
koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=44502319

Comment 3 aegorenk 2020-05-15 10:52:18 UTC
I'll review this.

Comment 4 aegorenk 2020-05-18 15:07:49 UTC
Issues:
=======
- GNU Lesser General Public License v2 (or 2.1) only should use "LGPLv2" as a short name
- mixed-use-of-spaces-and-tabs (spaces: line 148, tab: line 159)
- $ rpmlint RPMS/noarch/gearhead1-data-1.310-3.fc31.noarch.rpm
  ...
  gearhead1-data.noarch: W: wrong-file-end-of-line-encoding ...
  ...
  multiple files with wrong file end of line incoding
- $ rpmlint RPMS/noarch/gearhead1-data-1.310-3.fc31.noarch.rpm
  ...
  gearhead1-data.noarch: E: incorrect-fsf-address /usr/share/licenses/gearhead1-data/license.txt
  ...
  https://fedoraproject.org/wiki/Common_Rpmlint_issues#incorrect-fsf-address

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

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: "GNU Lesser General Public License (v2.1 or later)", "Unknown
     or generated", "GNU Lesser General Public License". 752 files have
     unknown license. Detailed output of licensecheck in
     /home/eam/tmp/gearhead1/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[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.
[-]: 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 122880 bytes in 18 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: There are rpmlint messages (see attachment).
[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 requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[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]: Package contains desktop file if it is a GUI application.
[x]: Package installs a %{name}.desktop using desktop-file-install or
     desktop-file-validate if there is such a file.
[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:
[x]: Avoid bundling fonts in non-fonts packages.
     Note: Package contains font files
[-]: 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).
[x]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in
     gearhead1-textmode , gearhead1-SDL , gearhead1-data , gearhead1-data-
     gfx
[x]: 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.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[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]: 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]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: Spec use %global instead of %define unless justified.

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

Generic:
[x]: Rpmlint is run on debuginfo package(s).
     Note: There are rpmlint messages (see attachment).
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.

Generated by fedora-review 0.7.5 (5fa5b7e) last change: 2020-02-16
Command line :/usr/bin/fedora-review -rn gearhead1-1.310-3.fc32.src.rpm
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, Shell-api
Disabled plugins: C/C++, fonts, SugarActivity, Haskell, R, PHP, Perl, Java, Ocaml, Python
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 5 Artur Frenszek-Iwicki 2020-05-18 17:24:38 UTC
>gearhead1-data.noarch: E: incorrect-fsf-address /usr/share/licenses/gearhead1-data/license.txt
Notified upstream: https://github.com/jwvhewitt/gearhead-1/issues/108

All the other issues fixed in the spec.
spec: https://svgames.pl/fedora/gearhead1-1.310-4/gearhead1.spec
srpm: https://svgames.pl/fedora/gearhead1-1.310-4/gearhead1-1.310-4.fc32.src.rpm
koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=44658018

Comment 6 aegorenk 2020-05-19 12:00:54 UTC
I'm sorry for not pointing it in the initial review comment. There is one more problem pointed by rpmlint.

- $ rpmlint RPMS/x86_64/gearhead1-textmode-1.310-4.fc31.x86_64.rpm
  ...
  gearhead1-textmode.x86_64: E: statically-linked-binary /usr/libexec/gearhead1/gearhead1-textmode
  ...
  https://docs.fedoraproject.org/en-US/packaging-guidelines/#packaging-static-libraries


Also there are more mixed-use-of-spaces-and-tabs warnings.

- $ rpmlint SRPMS/gearhead1-1.310-4.fc31.src.rpm
  ...
  gearhead1.src:153: W: mixed-use-of-spaces-and-tabs (spaces: line 153, tab: line 153)
  ...
  after fixing this "spaces and tabs" warning please run rpmlint again, I saw that there is more places like that

Comment 7 Artur Frenszek-Iwicki 2020-05-19 12:23:46 UTC
>gearhead1-textmode.x86_64: E: statically-linked-binary /usr/libexec/gearhead1/gearhead1-textmode
A "Hello world" program build with FPC on Fedora 32 does not link to anything:
>$ echo "program helloworld; begin writeln('Hello, world.') end." > hello_world.pas && fpc hello_world.pas && ./hello_world && ldd ./hello_world
>Free Pascal Compiler version 3.2.0-beta [2020/05/04] for x86_64
>Copyright (c) 1993-2020 by Florian Klaempfl and others
>Target OS: Linux for x86-64
>Compiling hello_world.pas
>Linking hello_world
>1 lines compiled, 0.1 sec
>Hello, world.
>	not a dynamic executable
The textmode build of the game does not include any external libraries, so it doesn't link to anything more. As such, if anything, this would be a bug against FPC.

>gearhead1.src:153: W: mixed-use-of-spaces-and-tabs (spaces: line 153, tab: line 153)
I'm using tabs for indentation everywhere. Apparently rpmlint really doesn't like me using more than 1 space to separate command arguments in some places.

Comment 8 aegorenk 2020-05-19 15:41:58 UTC
> The textmode build of the game does not include any external libraries, so
> it doesn't link to anything more. As such, if anything, this would be a bug
> against FPC.
I see that the build process is pretty straight forward. I checked FPC man and tried different options, but the result is the same. I think it should be escalated to FPC.
 
> I'm using tabs for indentation everywhere. Apparently rpmlint really doesn't
> like me using more than 1 space to separate command arguments in some places.

This shouldn't be a problem.

Looks good to me.
Approved.

Comment 9 Gwyn Ciesla 2020-05-19 15:46:55 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/gearhead1

Comment 10 Fedora Update System 2020-05-19 20:49:19 UTC
FEDORA-2020-08bcf86079 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-08bcf86079

Comment 11 Fedora Update System 2020-05-19 20:51:39 UTC
FEDORA-2020-6b578c45df has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-6b578c45df

Comment 12 Fedora Update System 2020-05-20 05:40:48 UTC
FEDORA-2020-6b578c45df has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2020-6b578c45df \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-6b578c45df

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

Comment 13 Fedora Update System 2020-05-20 05:49:10 UTC
FEDORA-2020-08bcf86079 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2020-08bcf86079 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-08bcf86079

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

Comment 14 Fedora Update System 2020-05-28 01:59:58 UTC
FEDORA-2020-6b578c45df has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2020-05-28 04:15:04 UTC
FEDORA-2020-08bcf86079 has been pushed to the Fedora 32 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.