Bug 1977987 - Review Request: anarch - minimalist first person shooter
Summary: Review Request: anarch - minimalist first person shooter
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1988952
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-30 20:38 UTC by Artur Frenszek-Iwicki
Modified: 2021-10-29 23:02 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-10-19 00:36:38 UTC
Type: ---
Embargoed:
sanjay.ankur: fedora-review+


Attachments (Terms of Use)

Description Artur Frenszek-Iwicki 2021-06-30 20:38:01 UTC
spec: https://svgames.pl/fedora/anarch-1.02d-1.20210616gitf6a6a68a/anarch.spec
srpm: https://svgames.pl/fedora/anarch-1.02d-1.20210616gitf6a6a68a/anarch-1.02d-1.20210616gitf6a6a68a.fc34.src.rpm
koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=71096482

Description: Anarch is an extremely small, completely Public Domain, no-dependency, no-file, portable, suckless, anarcho-pacifist, from-scratch, 90s-style Doom clone that runs everywhere, made for the benefit of all living beings.

Fedora Account System Username: suve

Comment 1 niohiani 2021-07-07 21:59:46 UTC
I should note that I'm a new contributor awaiting sponsorship into the package maintainers group, but I simply cannot get this to build, which means it obviously won't install. Here's a sampling of the errors received when using the fedora-review tool:

INFO: Processing bug on url: https://bugzilla.redhat.com/show_bug.cgi?id=1977987
INFO: Getting .spec and .srpm Urls from : https://bugzilla.redhat.com/show_bug.cgi?id=1977987
INFO:   --> SRPM url: https://svgames.pl/fedora/anarch-1.02d-1.20210616gitf6a6a68a/anarch-1.02d-1.20210616gitf6a6a68a.fc34.src.rpm
INFO:   --> Spec url: https://svgames.pl/fedora/anarch-1.02d-1.20210616gitf6a6a68a/anarch.spec
INFO: Using review directory: /review-anarch
INFO: Downloading .spec and .srpm files
cpio: premature end of file
WARNING: Cannot unpack /review-anarch/srpm/anarch-1.02d-1.20210616gitf6a6a68a.fc34.src.rpm into /review-anarch/srpm-unpacked
cpio: premature end of file
WARNING: Cannot unpack /review-anarch/srpm/anarch-1.02d-1.20210616gitf6a6a68a.fc34.src.rpm into /review-anarch/srpm-unpacked
INFO: No upstream for (Source101): anarch-sdl2.appdata.xml
INFO: No upstream for (Source100): anarch-sdl2.desktop
INFO: Downloading (Source0): https://gitlab.com/drummyfish/anarch/-/archive/f6a6a68a890716cd394c6fb2d00bd8123b51b18f/anarch-f6a6a68a890716cd394c6fb2d00bd8123b51b18f.tar.gz
INFO: Running checks and generating report
ERROR: Exception(/review-anarch/srpm/anarch-1.02d-1.20210616gitf6a6a68a.fc34.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 1 seconds
INFO: Results and/or logs in: /review-anarch/results
ERROR: Source RPM is not installable:
INFO: Reading configuration from /etc/mock/site-defaults.cfg
INFO: Reading configuration from /etc/mock/fedora-rawhide-x86_64.cfg
ERROR: 'mock build failed, see /review-anarch/results/build.log'

In conclusion, I am adding the contributor who will eventually be sponsoring me (Ankur Sinha) to the discussion for further input.

Comment 2 Didik Supriadi 2021-07-08 00:32:54 UTC
Hello, I'm new contributor too.
I see that your srpm link seems broken or at least can't be extracted. here's an example:

$ rpm2archive anarch-1.02d-1.20210616gitf6a6a68a.fc34.src.rpm 
Error reading file from rpm payload

But the koji is online, so it's fine to me.

Rpmlint gives this warning:
anarch.x86_64: W: incoherent-version-in-changelog 1.02d-1.20210617gitf6a6a68a8 ['1.02d-1.20210616gitf6a6a68a.fc35', '1.02d-1.20210616gitf6a6a68a']
                                                                 ^
                                                       the date seems wrong

Comment 3 Didik Supriadi 2021-07-08 07:55:07 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.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "*No copyright* Creative Commons CC0
     Universal 1.0 Public Domain Dedication", "Creative Commons CC0
     Universal 1.0 Public Domain Dedication". 207 files have unknown
     license. Detailed output of licensecheck in
     /home/chronoelves/rpmbuild/SRPMS/anarch/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[?]: Package must own all directories that it creates.
     Note: Directories without known owners:
     /usr/share/icons/hicolor/128x128/apps, /usr/share/icons/hicolor,
     /usr/share/icons/hicolor/128x128
[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
[?]: 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 51200 bytes in 1 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 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:
[-]: 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.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[-]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %check is present and all tests pass.
[-]: 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: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
 
 
Rpmlint
-------
Checking: anarch-1.02d-1.20210616gitf6a6a68a.fc35.x86_64.rpm
          anarch-debuginfo-1.02d-1.20210616gitf6a6a68a.fc35.x86_64.rpm
          anarch-debugsource-1.02d-1.20210616gitf6a6a68a.fc35.x86_64.rpm
          anarch-1.02d-1.20210616gitf6a6a68a.fc35.src.rpm
anarch.x86_64: W: spelling-error Summary(en_US) Suckless -> Luckless, Suckles, Suck less
anarch.x86_64: W: spelling-error %description -l en_US suckless -> suckles, luckless, suck less
anarch.x86_64: W: incoherent-version-in-changelog 1.02d-1.20210617gitf6a6a68a8 ['1.02d-1.20210616gitf6a6a68a.fc35', '1.02d-1.20210616gitf6a6a68a']
anarch.x86_64: W: no-manual-page-for-binary anarch-sdl2
anarch.src: W: spelling-error Summary(en_US) Suckless -> Luckless, Suckles, Suck less
anarch.src: W: spelling-error %description -l en_US suckless -> suckles, luckless, suck less
4 packages and 0 specfiles checked; 0 errors, 6 warnings.
 
 
 
 
Rpmlint (debuginfo)
-------------------
Checking: anarch-debuginfo-1.02d-1.20210616gitf6a6a68a.fc35.x86_64.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.
 
 
 
 
 
Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:
 
 
Source checksums
----------------
https://gitlab.com/drummyfish/anarch/-/archive/f6a6a68a890716cd394c6fb2d00bd8123b51b18f/anarch-f6a6a68a890716cd394c6fb2d00bd8123b51b18f.tar.gz :
  CHECKSUM(SHA256) this package     : 2e0b04ffc8b8bb79477d7df588ee1ef999f53e2749218653697a560785709175
  CHECKSUM(SHA256) upstream package : 2e0b04ffc8b8bb79477d7df588ee1ef999f53e2749218653697a560785709175
 
 
Requires
--------
anarch (rpmlib, GLIBC filtered):
    glibc
    libSDL2-2.0.so.0()(64bit)
    libc.so.6()(64bit)
    rtld(GNU_HASH)
 
anarch-debuginfo (rpmlib, GLIBC filtered):
 
anarch-debugsource (rpmlib, GLIBC filtered):
 
 
 
Provides
--------
anarch:
    anarch
    anarch(x86-64)
    application()
    application(anarch-sdl2.desktop)
    metainfo()
    metainfo(anarch-sdl2.appdata.xml)
 
anarch-debuginfo:
    anarch-debuginfo
    anarch-debuginfo(x86-64)
    debuginfo(build-id)
 
anarch-debugsource:
    anarch-debugsource
    anarch-debugsource(x86-64)
 
 
 
Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/usr/bin/fedora-review --rpm-spec -n anarch-1.02d-1.20210616gitf6a6a68a.fc35.src.rpm
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, Generic, C/C++
Disabled plugins: SugarActivity, Haskell, R, Java, Perl, Python, PHP, Ocaml, fonts
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 4 Ankur Sinha (FranciscoD) 2021-07-08 08:06:56 UTC
Thanks Niohiani, Dridi,

That looks good.

Please wait for Arthur to correct the issues you've outlined and then continue to new rounds of review as required.

Please also keep in mind that fedora-review is a helper but it does not replace a human review. So please do remember to check the package against the guidelines manually too if you haven't done that already. :)

PS: please add us to the CC list instead of using the needinfo flag. The needinfo flag is used when you haven't received a response after multiple messages. It sends extra notifications to folks, so should be used only when necessary.

Cheers,
Ankur

Comment 5 niohiani 2021-07-08 19:19:20 UTC
Loud and clear about the flag topic. No problemo, and will do.

Comment 6 Artur Frenszek-Iwicki 2021-07-09 09:25:21 UTC
Yep, looks like the original SRPM got corrupted during upload. Sorry for that.

Here's a new build that fixes issues with ownership of /usr/share/icons/... directories, and also adds a patch to store the game's savefile in $XDG_DATA_HOME instead of $PWD.

spec: https://svgames.pl/fedora/anarch-1.02d-2.20210616gitf6a6a68a/anarch.spec
srpm: https://svgames.pl/fedora/anarch-1.02d-2.20210616gitf6a6a68a/anarch-1.02d-2.20210616gitf6a6a68a.fc34.src.rpm
koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=71576566

Comment 7 niohiani 2021-07-12 20:17:54 UTC
Alright. Fedora-review works with the latest URLs you provided. These are the sections which require manual review, and my feedback on those sections where possible. A (✓) means there does not appear to be a problem. An (x) means there is an issue. A (?) means I'm not sure.

C/C++:
(✓): Package does not contain kernel modules.
(✓): Package contains no static executables.

Generic:
(✓): 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", "*No copyright* Creative Commons CC0
     Universal 1.0 Public Domain Dedication", "Creative Commons CC0
     Universal 1.0 Public Domain Dedication". 207 files have unknown
     license. Detailed output of licensecheck in
     licensecheck.txt
(✓): License file installed when any subpackage combination is installed.
(✓): %build honors applicable compiler flags or justifies otherwise.
(✓): Package contains no bundled libraries without FPC exception.
(✓): Changelog in prescribed format.
(✓): Sources contain only permissible code or content.
(✓): Development files must be in a -devel package
(✓): Package uses nothing in %doc for runtime.
(✓): Package consistently uses macros (instead of hard-coded directory
     names).
(✓): Package is named according to the Package Naming Guidelines.
(✓): Package does not generate any conflict.
(✓): Package obeys FHS, except libexecdir and /usr/target.
(✓): If the package is a rename of another package, proper Obsoletes and
     Provides are present.
(✓): Spec file is legible and written in American English.
(✓): Useful -debuginfo package or justification otherwise.
(✓): 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 51200 bytes in 1 files.
(✓): Package complies to the Packaging Guidelines

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.
(✓): Final provides and requires are sane (see attachments).
(✓): Package functions as described.
(✓): Latest version is packaged.
(✓): Package does not include license text files separate from upstream.
(✓): Patches link to upstream bugs/comments/lists or are otherwise
     justified.
(✓): 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.
(✓): Package should compile and build into binary rpms on all supported
     architectures.

To a newb this looks good. I will eMail Ankur to confirm. By the way, I've seen your game floating around, and a couple of articles about it. I tried it out myself a couple of months back, and I appreciate your work.

Comment 8 Ankur Sinha (FranciscoD) 2021-08-22 12:29:29 UTC
If all those review items pass, you're free to approve the review :)

Comment 9 Ankur Sinha (FranciscoD) 2021-08-22 13:02:50 UTC
I had a quick look. Looks very good. I wasn't able to get fedora-review to run though, but I can't see anything wrong with the spec. The only additional note here is:

- I think you may have to add the linker flags manually too since you're running the compilation commands yourself. %{optflags} doesn't include %{build_ldflags}. So your commands will be:

gcc %{optflags} -std=c99 -o %{name}-sdl2 main_sdl.c -lSDL2 %{build_ldflags} 
gcc %{optflags} -std=c99 -o %{name}-test main_test.c %{build_ldflags}

(You can set linker flags in multiple places on the compiler command line, but I remember reading somewhere that adding them at the end seems to work best---can't find the the post now :/)

Cheers,

Comment 11 niohiani 2021-09-09 17:39:29 UTC
Sorry for the delay. Been trying to get this take care of for the past few days, but the mock build keeps failing. Trying to get a handle on why.

Comment 12 Artur Frenszek-Iwicki 2021-09-15 15:26:07 UTC
What's the error from mock? Did you try "mock clean --scrub=all"?

Comment 13 niohiani 2021-09-21 23:05:02 UTC
Sorry, I was without internet access for a few days. I just did 'mock clean --scrub=all', then attempted to run the review again. Still throwing up errors, and unfortunately I'm getting the same results as the past several dozen attempts.

ERROR: 'mock build failed, see ~/Public/FedReviews/review-anarch/results/build.log'

ERROR: Exception(~/Public/FedReviews/review-anarch/srpm/anarch-1.02d-2.20210616gitf6a6a68a.fc34.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 46 seconds

INFO: Results and/or logs in: ~/Public/FedReviews/review-anarch/results

ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M afe2814e84c542a99ae39f11f9cc33a8 -D /var/lib/mock/fedora-rawhide-x86_64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.xcjfjtwo:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/anarch.spec

Comment 14 Ankur Sinha (FranciscoD) 2021-09-22 08:59:13 UTC
What do the build logs say? (~/Public/FedReviews/review-anarch/results/build.log). We need to narrow it down to see whether it's an issue with mock running, or an issue in the build once mock runs.

Comment 15 Artur Frenszek-Iwicki 2021-09-22 09:16:11 UTC
Well the error message says that systemd-nspawn failed. So I guess it's an issue either in mock itself, or systemd containers don't work on their machine. Maybe worth asking on devel mailing list?

Comment 16 Ankur Sinha (FranciscoD) 2021-09-22 09:37:09 UTC
Hrm, is that what the error is suggesting or is that just the full command that is printed out whenever mock errors? Anyway, one can use the `--isolation=simple` argument with mock to not use systemd-nspawn. `man mock` for more on that. To use this with fedora-review, one would use the `-o` flag there, so I'd think: `fedora-review -o "--no-bootstrap-chroot --no-cleanup-after --no-clean --isolation=simple ...` should do it (the other options are the defaults that fedora-review uses).

Comment 17 niohiani 2021-09-22 17:42:30 UTC
Hey guys. The Build logs always have the following errors in them:
ERROR: Exception(~/Public/FedReviews/review-anarch/srpm/anarch-1.02d-2.20210616gitf6a6a68a.fc34.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 46 seconds

INFO: Results and/or logs in: ~/Public/FedReviews/review-anarch/results

ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M afe2814e84c542a99ae39f11f9cc33a8 -D /var/lib/mock/fedora-rawhide-x86_64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.xcjfjtwo:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/anarch.spec

It's always the same, including when I ran fedora-review with the options suggested by Ankur. This has not happened with other reviews. Pretty stumped.

Comment 18 Ankur Sinha (FranciscoD) 2021-09-23 09:49:47 UTC
Can you please hit me up on IRC sometime so we can debug this? With the options I noted, it shouldn't run systemd-nspawn at all. So, something is off with your system. Are you able to run mock generally?

fedora-review works here, so I can take over the review while we fix your system if that's OK with both you and Artur?

Comment 19 Artur Frenszek-Iwicki 2021-09-23 12:11:59 UTC
Fine by me.

Comment 20 niohiani 2021-09-23 21:00:52 UTC
A OK with me, and yes Ankur, I'll email you to coordinate timing. I actually just tried fedora-review on packages that I previously reviewed successfully, and am now getting the same error for those, so something has definitely gone wrong since my last successful review, and I'd be happy to have some assistance in getting to the bottom of it!

Comment 21 Ankur Sinha (FranciscoD) 2021-09-24 09:45:10 UTC
Sure, I'll review this over the weekend at the latest. Do ping me wherever and let's get your system fixed up :)

Comment 22 Ankur Sinha (FranciscoD) 2021-09-25 10:53:50 UTC
Looks very good. Just a few minor things to fix up:

- You can use the forge macros to simplify the spec if you wish: https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_using_forges_hosted_revision_control

- typo on line 26: the description macro should be desc_text (currently is desc_test)

- You can use the %autosetup macro, it does the patching for you too: https://rpm-software-management.github.io/rpm/manual/autosetup.html
- You need to require hicolor-icon-theme which owns the icon directories. See the filesystem bit here: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_the_directory_is_owned_by_a_package_which_is_not_required_for_your_package_to_function

- Compilation warning worth looking at:
main_sdl.c: In function 'SFG_sleepMs':
main_sdl.c:172:3: warning: implicit declaration of function 'usleep'; did you mean 'sleep'? [-Wimplicit-function-declaration]
  172 |   usleep(timeMs * 1000);
      |   ^~~~~~
      |   sleep

- You can use autochangelog if you wish: https://fedoraproject.org/wiki/Changes/rpmautospec

RPMlint bits:
- anarch-CSFML.x86_64: E: summary-too-long Suckless, anarcho-pacifist, 90s-style Doom clone that runs everywhere (SDL2 version) (CSFML version)
^
  "SDL2 version" shouldn't be here

I seems like %summary is being redefined for each sub-package. I'm not sure if this is supposed to happen, though.

- anarch-SDL2.x86_64: E: summary-too-long Suckless, anarcho-pacifist, 90s-style Doom clone that runs everywhere (SDL2 version)
^
Could perhaps shorten this a bit to make rpmlint happy?

- because of typo in desc_text:
anarch.src: W: unexpanded-macro %description -l C %{desc_text}
anarch-CSFML.x86_64: W: unexpanded-macro %description -l C %{desc_text}
anarch-SDL2.x86_64: W: unexpanded-macro %description -l C %{desc_text}


===== 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.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "*No copyright* Creative Commons CC0
     1.0", "Creative Commons CC0 1.0". 206 files have unknown license.
     Detailed output of licensecheck in /home/asinha/dump/fedora-
     reviews/1977987-anarch/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/icons/hicolor,
     /usr/share/icons/hicolor/128x128,
     /usr/share/icons/hicolor/128x128/apps
^
I think you need to require hicolor-icon-theme which owns these directories: https://packages.fedoraproject.org/pkgs/hicolor-icon-theme/hicolor-icon-theme/

[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.
[x]: Macros in Summary, %description expandable at SRPM build time.
     Note: Macros in: anarch-SDL2 (description), anarch-CSFML (description)
[-]: 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.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 102400 bytes in 2 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 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]: 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:
[-]: 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).
[-]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in anarch-
     SDL2 , anarch-CSFML
[?]: Package functions as described.
^
Not tested this.

[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]: 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]: 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: 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.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
============================================================= rpmlint session starts =============================================================
rpmlint: 2.1.0
configuration:
    /usr/lib/python3.10/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/licenses.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 31, packages: 7

anarch-CSFML-debuginfo.x86_64: W: unstripped-binary-or-object /usr/lib/debug/usr/bin/anarch-csfml-1.02d-2.20210616gitf6a6a68a.fc36.x86_64.debug
anarch-debuginfo.x86_64: W: unstripped-binary-or-object /usr/lib/debug/.dwz/anarch-1.02d-2.20210616gitf6a6a68a.fc36.x86_64
anarch-SDL2-debuginfo.x86_64: W: unstripped-binary-or-object /usr/lib/debug/usr/bin/anarch-sdl2-1.02d-2.20210616gitf6a6a68a.fc36.x86_64.debug
anarch.src: W: unexpanded-macro %description -l C %{desc_text}
anarch-CSFML.x86_64: W: unexpanded-macro %description -l C %{desc_text}
anarch-SDL2.x86_64: W: unexpanded-macro %description -l C %{desc_text}

anarch-CSFML.x86_64: E: summary-too-long Suckless, anarcho-pacifist, 90s-style Doom clone that runs everywhere (SDL2 version) (CSFML version)
^
"SDL2 version" shouldn't be here

I seems like %summary is being redefined for each sub-package. I'm not sure if this is supposed to happen, though.

anarch-SDL2.x86_64: E: summary-too-long Suckless, anarcho-pacifist, 90s-style Doom clone that runs everywhere (SDL2 version)
^
Could perhaps shorten this a bit to make rpmlint happy?

anarch-debuginfo.x86_64: E: statically-linked-binary /usr/lib/debug/.dwz/anarch-1.02d-2.20210616gitf6a6a68a.fc36.x86_64
anarch-CSFML-debuginfo.x86_64: E: shared-library-without-dependency-information /usr/lib/debug/usr/bin/anarch-csfml-1.02d-2.20210616gitf6a6a68a.fc36.x86_64.debug
anarch-SDL2-debuginfo.x86_64: E: shared-library-without-dependency-information /usr/lib/debug/usr/bin/anarch-sdl2-1.02d-2.20210616gitf6a6a68a.fc36.x86_64.debug
anarch-CSFML.x86_64: W: no-manual-page-for-binary anarch-csfml
anarch-SDL2.x86_64: W: no-manual-page-for-binary anarch-sdl2
anarch-CSFML-debuginfo.x86_64: W: no-documentation
anarch-debuginfo.x86_64: W: no-documentation
anarch-debugsource.x86_64: W: no-documentation
anarch-SDL2-debuginfo.x86_64: W: no-documentation
anarch-debuginfo.x86_64: E: missing-PT_GNU_STACK-section /usr/lib/debug/.dwz/anarch-1.02d-2.20210616gitf6a6a68a.fc36.x86_64
anarch-debuginfo.x86_64: W: hidden-file-or-dir /usr/lib/debug/.dwz
anarch-debuginfo.x86_64: W: hidden-file-or-dir /usr/lib/debug/.dwz
anarch.src: W: description-shorter-than-summary
anarch-CSFML.x86_64: W: description-shorter-than-summary
anarch-SDL2.x86_64: W: description-shorter-than-summary
anarch-CSFML-debuginfo.x86_64: W: dangling-relative-symlink /usr/lib/debug/.build-id/a0/7c43f4607523c2ebaf16b7fbe6e4a37d1e34d4 ../../../.build-id/a0/7c43f4607523c2ebaf16b7fbe6e4a37d1e34d4
anarch-SDL2-debuginfo.x86_64: W: dangling-relative-symlink /usr/lib/debug/.build-id/f6/8b9e779fc3954082dcf1ee70a137aa5e221a81 ../../../.build-id/f6/8b9e779fc3954082dcf1ee70a137aa5e221a81
============================= 7 packages and 0 specfiles checked; 6 errors, 19 warnings, 6 badness; has taken 8.3 s ==============================

I don't know if anything should be done for the debug package related warnings/errors.

Source checksums
----------------
https://gitlab.com/drummyfish/anarch/-/archive/f6a6a68a890716cd394c6fb2d00bd8123b51b18f/anarch-f6a6a68a890716cd394c6fb2d00bd8123b51b18f.tar.gz :
  CHECKSUM(SHA256) this package     : 2e0b04ffc8b8bb79477d7df588ee1ef999f53e2749218653697a560785709175
  CHECKSUM(SHA256) upstream package : 2e0b04ffc8b8bb79477d7df588ee1ef999f53e2749218653697a560785709175


Requires
--------
anarch-SDL2 (rpmlib, GLIBC filtered):
    libSDL2-2.0.so.0()(64bit)
    libc.so.6()(64bit)
    rtld(GNU_HASH)

anarch-CSFML (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libcsfml-audio.so.2.5()(64bit)
    libcsfml-graphics.so.2.5()(64bit)
    libcsfml-system.so.2.5()(64bit)
    libcsfml-window.so.2.5()(64bit)
    rtld(GNU_HASH)

anarch-debuginfo (rpmlib, GLIBC filtered):

anarch-debugsource (rpmlib, GLIBC filtered):



Provides
--------
anarch-SDL2:
    anarch-SDL2
    anarch-SDL2(x86-64)
    application()
    application(anarch-sdl2.desktop)
    metainfo()
    metainfo(anarch-sdl2.metainfo.xml)

anarch-CSFML:
    anarch-CSFML
    anarch-CSFML(x86-64)
    application()
    application(anarch-csfml.desktop)
    metainfo()
    metainfo(anarch-csfml.metainfo.xml)

anarch-debuginfo:
    anarch-debuginfo
    anarch-debuginfo(x86-64)

anarch-debugsource:
    anarch-debugsource
    anarch-debugsource(x86-64)



Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/usr/bin/fedora-review -b 1977987
Buildroot used: fedora-rawhide-x86_64
Active plugins: C/C++, Shell-api, Generic
Disabled plugins: R, Python, Ocaml, Haskell, SugarActivity, Perl, Java, fonts, PHP
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 23 Artur Frenszek-Iwicki 2021-09-30 13:42:32 UTC
> typo on line 26: the description macro should be desc_text (currently is desc_test)
Thanks, fixed.

> You need to require hicolor-icon-theme which owns the icon directories.
Oh, oops. Fixed.

> Compilation warning worth looking at:
> main_sdl.c: In function 'SFG_sleepMs':
> main_sdl.c:172:3: warning: implicit declaration of function 'usleep'; did you mean 'sleep'? [-Wimplicit-function-declaration]
Fixed via compiler flags.

> anarch-CSFML.x86_64: E: summary-too-long
> anarch-SDL2.x86_64: E: summary-too-long
Shortened the summary and fixed the redefinition issue.

> You can use the forge macros to simplify the spec if you wish:
> You can use the %autosetup macro, it does the patching for you too: 
Maybe one day. Can't teach an old dog new tricks. ;)

Updated links:
spec: https://svgames.pl/fedora/anarch-1.02d-3.20210616gitf6a6a68a/anarch.spec
srpm: https://svgames.pl/fedora/anarch-1.02d-3.20210616gitf6a6a68a/anarch-1.02d-3.20210616gitf6a6a68a.fc34.src.rpm
koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=76516558

Comment 24 Ankur Sinha (FranciscoD) 2021-10-02 13:04:24 UTC
Thanks, that looks good! XXX APPROVED XXX

Comment 25 Gwyn Ciesla 2021-10-02 17:49:22 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/anarch

Comment 26 Fedora Update System 2021-10-10 20:01:21 UTC
FEDORA-2021-c50292f421 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c50292f421

Comment 27 Fedora Update System 2021-10-10 20:09:49 UTC
FEDORA-2021-a305b11c41 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a305b11c41

Comment 28 Fedora Update System 2021-10-10 20:21:01 UTC
FEDORA-2021-e7eabe3138 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-e7eabe3138

Comment 29 Fedora Update System 2021-10-10 23:34:11 UTC
FEDORA-2021-a305b11c41 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2021-a305b11c41 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a305b11c41

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

Comment 30 Fedora Update System 2021-10-10 23:52:24 UTC
FEDORA-2021-e7eabe3138 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2021-e7eabe3138 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e7eabe3138

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

Comment 31 Fedora Update System 2021-10-11 17:16:41 UTC
FEDORA-2021-c50292f421 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2021-c50292f421 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-c50292f421

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

Comment 32 Fedora Update System 2021-10-19 00:36:38 UTC
FEDORA-2021-a305b11c41 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 33 Fedora Update System 2021-10-19 01:03:39 UTC
FEDORA-2021-e7eabe3138 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 34 Fedora Update System 2021-10-29 23:02:49 UTC
FEDORA-2021-c50292f421 has been pushed to the Fedora 35 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.