Bug 2165381 - Review Request: ancient - Modern decompressor for old data compression formats
Summary: Review Request: ancient - Modern decompressor for old data compression formats
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Benson Muite
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/temisu/ancient
Whiteboard:
Depends On:
Blocks: 2163583
TreeView+ depends on / blocked
 
Reported: 2023-01-29 16:42 UTC by Charles R. Anderson
Modified: 2023-03-18 05:01 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-09 04:42:58 UTC
Type: ---
Embargoed:
benson_muite: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 5355028 to 5575504 (1.41 KB, patch)
2023-02-28 02:15 UTC, Jakub Kadlčík
no flags Details | Diff

Description Charles R. Anderson 2023-01-29 16:42:14 UTC
Spec URL: https://cra.fedorapeople.org/ancient/ancient.spec
SRPM URL: https://cra.fedorapeople.org/ancient/ancient-2.0.0-1.fc37.src.rpm
Description: This is a collection of decompression routines for old formats popular in the Amiga, Atari computers and some other systems from 80's and 90's as well as some that are currently used which were used in a some specific way in these old systems.
Fedora Account System Username: cra

Comment 1 Jakub Kadlčík 2023-01-29 16:52:33 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5355028
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2165381-ancient/fedora-rawhide-x86_64/05355028-ancient/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

Comment 2 Benson Muite 2023-02-27 08:16:13 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]: ldconfig not called in %post and %postun for Fedora 28 and later.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.
[x]: Development (unversioned) .so files in -devel subpackage, if present.

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: "BSD 2-Clause License", "Unknown or generated", "bzip2 and
     libbzip2 License v1.0.6". 171 files have unknown license. Detailed
     output of licensecheck in
     /home/FedoraPackaging/reviews/ancient/2165381-ancient/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[ ]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[x]: 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 10240 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 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]: 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).
[x]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in ancient-
     devel , ancient-libs
[ ]: 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.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[-]: %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]: The placement of pkgconfig(.pc) files are correct.
[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.
[x]: Package should not use obsolete m4 macros
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: ancient-2.0.0-1.fc39.x86_64.rpm
          ancient-devel-2.0.0-1.fc39.x86_64.rpm
          ancient-libs-2.0.0-1.fc39.x86_64.rpm
          ancient-debuginfo-2.0.0-1.fc39.x86_64.rpm
          ancient-debugsource-2.0.0-1.fc39.x86_64.rpm
          ancient-2.0.0-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/tmp47kod104')]
checks: 31, packages: 6

ancient.x86_64: W: no-manual-page-for-binary ancient
ancient-devel.x86_64: W: no-documentation
 6 packages and 0 specfiles checked; 0 errors, 2 warnings, 0 badness; has taken 3.8 s 




Rpmlint (debuginfo)
-------------------
Checking: ancient-libs-debuginfo-2.0.0-1.fc39.x86_64.rpm
          ancient-debuginfo-2.0.0-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/tmpeawo8nra')]
checks: 31, packages: 2

 2 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 badness; has taken 2.2 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: 6

ancient-libs.x86_64: E: unused-direct-shlib-dependency /usr/lib64/libancient.so.2.0.0 /lib64/libm.so.6
ancient.x86_64: W: no-manual-page-for-binary ancient
ancient-devel.x86_64: W: no-documentation
 6 packages and 0 specfiles checked; 1 errors, 2 warnings, 1 badness; has taken 4.5 s 



Source checksums
----------------
https://github.com/temisu/ancient/archive/v2.0.0/ancient-2.0.0.tar.gz :
  CHECKSUM(SHA256) this package     : 9c6b31e4d968ec3adb25596a0b30405d1080d3de0546f1485ecb0ac2eca6261d
  CHECKSUM(SHA256) upstream package : 9c6b31e4d968ec3adb25596a0b30405d1080d3de0546f1485ecb0ac2eca6261d


Requires
--------
ancient (rpmlib, GLIBC filtered):
    libancient.so.2()(64bit)
    libc.so.6()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3.1)(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    rtld(GNU_HASH)

ancient-devel (rpmlib, GLIBC filtered):
    /usr/bin/pkg-config
    ancient-libs(x86-64)
    libancient.so.2()(64bit)

ancient-libs (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3.1)(64bit)
    libm.so.6()(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    rtld(GNU_HASH)

ancient-debuginfo (rpmlib, GLIBC filtered):

ancient-debugsource (rpmlib, GLIBC filtered):



Provides
--------
ancient:
    ancient
    ancient(x86-64)

ancient-devel:
    ancient-devel
    ancient-devel(x86-64)
    pkgconfig(libancient)

ancient-libs:
    ancient-libs
    ancient-libs(x86-64)
    libancient.so.2()(64bit)

ancient-debuginfo:
    ancient-debuginfo
    ancient-debuginfo(x86-64)
    debuginfo(build-id)

ancient-debugsource:
    ancient-debugsource
    ancient-debugsource(x86-64)



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

Comments:
a) There is a test script, but upstream has not included any test data. Maybe this could be added to the repo?
b) Assume none of the algorithms are under a patent?
c) Is it possible to add a smoke test, for example 
ancient --help
d) devel package does not need a license file as it will be pulled in from libs package
e) Builds on all architectures https://copr.fedorainfracloud.org/coprs/fed500/ancient/build/5569005/

Comment 3 Ben Beasley 2023-02-27 15:31:06 UTC
Please don’t glob over a shared directory; see https://docs.fedoraproject.org/en-US/packaging-guidelines/#_explicit_lists.

You can change

  %{_bindir}/*

to

  %{_bindir}/ancient

in the %files list.

----

> a) There is a test script, but upstream has not included any test data. Maybe this could be added to the repo?

Considering that this tool is intended for files from the 1980’s-1990’s, I strongly suspect that the test data is not included because it is all non-free.

Comment 4 Charles R. Anderson 2023-02-28 02:03:38 UTC
Thank you for the review.  I have updated the package:

Spec URL: https://cra.fedorapeople.org/ancient/ancient.spec
SRPM URL: https://cra.fedorapeople.org/ancient/ancient-2.0.0-2.fc37.src.rpm

(In reply to Benson Muite from comment #2)
> a) There is a test script, but upstream has not included any test data.
> Maybe this could be added to the repo?
> c) Is it possible to add a smoke test, for example 
> ancient --help

I added a test that verifies ancient decompressing Source0's gzip compression.

> b) Assume none of the algorithms are under a patent?

I'm not a patent attorney, but I assume so--these are either ancient file formats or formats that are already implemented in other parts of Fedora.  Nothing here is called out as explicitly prohibited on https://docs.fedoraproject.org/en-US/packaging-guidelines/what-can-be-packaged/ or the linked documents therein.  I'm not sure what else is expected of a packager on this point, especially considering that doing a patent review could actually increase legal exposure.

> d) devel package does not need a license file as it will be pulled in from
> libs package

Removed.

(In reply to Ben Beasley from comment #3)
> Please don’t glob over a shared directory; see
> https://docs.fedoraproject.org/en-US/packaging-guidelines/#_explicit_lists.
>   %{_bindir}/ancient

Done.

> > a) There is a test script, but upstream has not included any test data. Maybe this could be added to the repo?
> 
> Considering that this tool is intended for files from the 1980’s-1990’s, I
> strongly suspect that the test data is not included because it is all
> non-free.

Agreed.  Hopefully the gzip test I implemented is sufficient.

Comment 5 Jakub Kadlčík 2023-02-28 02:15:47 UTC
Created attachment 1946834 [details]
The .spec file difference from Copr build 5355028 to 5575504

Comment 6 Jakub Kadlčík 2023-02-28 02:15:49 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5575504
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2165381-ancient/fedora-rawhide-x86_64/05575504-ancient/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 7 Benson Muite 2023-03-01 07:23:35 UTC
Guidelines are not clear on this.  Full patent search seems difficult. Given their age, expect not or if they had they are expired,
but for compression typically good to check. Raised an issue:
https://github.com/temisu/ancient/issues/41

Comment 8 Benson Muite 2023-03-01 13:33:32 UTC
Upstream indicates no knowledge of algorithms being covered by patents. Quick search does not show anything either. Is this sufficient?

Comment 9 Richard Fontana 2023-03-07 03:13:20 UTC
Lifting FE-Legal,

Comment 10 Benson Muite 2023-03-07 08:04:59 UTC
Thanks. Approved.

Comment 11 Fedora Admin user for bugzilla script actions 2023-03-08 15:44:29 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/ancient

Comment 13 Fedora Update System 2023-03-09 04:44:07 UTC
FEDORA-2023-2bf1e6c40c has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2bf1e6c40c

Comment 14 Fedora Update System 2023-03-09 04:44:49 UTC
FEDORA-2023-89c62dc3f4 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-89c62dc3f4

Comment 15 Fedora Update System 2023-03-09 04:45:39 UTC
FEDORA-2023-c15f9d4a7d has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c15f9d4a7d

Comment 16 Fedora Update System 2023-03-10 01:47:56 UTC
FEDORA-2023-2bf1e6c40c has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-2bf1e6c40c

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

Comment 17 Fedora Update System 2023-03-10 02:06:22 UTC
FEDORA-2023-89c62dc3f4 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-89c62dc3f4 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-89c62dc3f4

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

Comment 18 Fedora Update System 2023-03-10 02:39:23 UTC
FEDORA-2023-c15f9d4a7d has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-c15f9d4a7d \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-c15f9d4a7d

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

Comment 19 Fedora Update System 2023-03-14 00:17:14 UTC
FEDORA-2023-2bf1e6c40c has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 Fedora Update System 2023-03-18 04:58:24 UTC
FEDORA-2023-89c62dc3f4 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Fedora Update System 2023-03-18 05:01:53 UTC
FEDORA-2023-c15f9d4a7d has been pushed to the Fedora 36 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.