Bug 2163472 - Review Request: ghc-base64 - A modern RFC 4648-compliant Base64 library
Summary: Review Request: ghc-base64 - A modern RFC 4648-compliant Base64 library
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
Assignee: Michel Lind
QA Contact: Fedora Extras Quality Assurance
URL: https://hackage.haskell.org/package/%...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-23 15:31 UTC by Jens Petersen
Modified: 2024-03-31 01:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-03-31 01:54:06 UTC
Type: ---
Embargoed:
michel: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 5285358 to 5913563 (695 bytes, patch)
2023-05-12 06:28 UTC, Fedora Review Service
no flags Details | Diff

Description Jens Petersen 2023-01-23 15:31:09 UTC
Spec URL: https://petersen.fedorapeople.org/reviews/ghc-base64/ghc-base64.spec
SRPM URL: https://petersen.fedorapeople.org/reviews/ghc-base64/ghc-base64-0.4.2.4-1.fc38.src.rpm

Description:
RFC 4648-compliant Base64 with an eye towards performance and modernity
(additional support for RFC 7049 standards).


Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=96568648

Comment 1 Jakub Kadlčík 2023-01-23 15:43:14 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5285358
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2163472-ghc-base64/fedora-rawhide-x86_64/05285358-ghc-base64/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-01-23 18:04:38 UTC
Mock build on Rawhide failed for me with the error below.  The copr builds on f37 and f36 also failed with the same error.

src/Data/ByteString/Base64/Internal.hs:19:8: error:
    Could not find module ‘Prelude’
    Perhaps you haven't installed the profiling libraries for package ‘base-4.14
.3.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
19 | module Data.ByteString.Base64.Internal
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Data/ByteString/Base64/Internal.hs:26:1: error:
    Could not find module ‘Data.ByteString’
    Perhaps you haven't installed the profiling libraries for package ‘bytestrin
g-0.10.12.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
26 | import qualified Data.ByteString as BS
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Data/ByteString/Base64/Internal.hs:27:1: error:
    Could not find module ‘Data.ByteString.Internal’
    Perhaps you haven't installed the profiling libraries for package ‘bytestrin
g-0.10.12.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
27 | import Data.ByteString.Internal
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Data/ByteString/Base64/Internal.hs:28:1: error:
    Could not find module ‘Data.Text’
    Perhaps you haven't installed the profiling libraries for package ‘text-1.2.
4.1’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
28 | import Data.Text (Text)
   | ^^^^^^^^^^^^^^^^^^^^^^^
src/Data/ByteString/Base64/Internal.hs:30:1: error:
    Could not find module ‘Foreign.ForeignPtr’
    Perhaps you haven't installed the profiling libraries for package ‘base-4.14
.3.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
30 | import Foreign.ForeignPtr
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
src/Data/ByteString/Base64/Internal.hs:31:1: error:
    Could not find module ‘Foreign.Ptr’
    Perhaps you haven't installed the profiling libraries for package ‘base-4.14
.3.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
31 | import Foreign.Ptr
   | ^^^^^^^^^^^^^^^^^^
src/Data/ByteString/Base64/Internal.hs:32:1: error:
    Could not find module ‘Foreign.Storable’
    Perhaps you haven't installed the profiling libraries for package ‘base-4.14
.3.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
32 | import Foreign.Storable
   | ^^^^^^^^^^^^^^^^^^^^^^^
src/Data/ByteString/Base64/Internal.hs:34:1: error:
    Could not find module ‘System.IO.Unsafe’
    Perhaps you haven't installed the profiling libraries for package ‘base-4.14
.3.0’?
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
34 | import System.IO.Unsafe
   | ^^^^^^^^^^^^^^^^^^^^^^^
error: Bad exit status from /var/tmp/rpm-tmp.fclDVD (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.fclDVD (%build)
Child return code was: 1

Comment 3 Jens Petersen 2023-01-24 16:24:33 UTC
Thank you for looking

I think rawhide is okay: please see the original scratch build and copr rawhide build in comment 1.

This needs a backport of ghc-srpm-macros for F37 and earlier, but in the first instance this package is only needed for Rawhide/F38.
Particularly by pandoc and hledger and it is urgent since it is blocking the Haskell building for F38.

Comment 4 Benson Muite 2023-01-24 18:02:44 UTC
Ok, build completed. Got same undefined-non-weak-symbol errors as listed in the Review template.

Comment 5 Jens Petersen 2023-01-25 05:29:32 UTC
Okay thanks - unfortunately there is no way to fix those warnings.
I have reported it to ghc upstream previously.

Comment 7 Fedora Review Service 2023-05-12 06:28:51 UTC
Created attachment 1964159 [details]
The .spec file difference from Copr build 5285358 to 5913563

Comment 8 Fedora Review Service 2023-05-12 06:28:53 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5913563
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2163472-ghc-base64/fedora-rawhide-x86_64/05913563-ghc-base64/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 Michel Lind 2024-02-22 03:49:47 UTC
LGTM, APPROVED. Note that 1.0 is now out: https://hackage.haskell.org/package/base64 and 0.4.2.4 has revised metadata, you might want to either update to 1.0 or refresh the .cabal file when importing

Package Review
==============

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


Issues:
=======
- If your application is a C or C++ application you must list a
  BuildRequires against gcc, gcc-c++ or clang.
  Note: No gcc, gcc-c++ or clang found in BuildRequires
  See: https://docs.fedoraproject.org/en-US/packaging-guidelines/C_and_C++/
- Sources used to build the package match the upstream source, as provided
  in the spec URL.
  Note: Upstream MD5sum check error, diff is in /var/lib/copr-
  rpmbuild/results/ghc-base64/diff.txt
  See: https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/
  => the cabal metadata appears to have been updated, you want to refresh before
     importing this. Looks like nothing major, only bumping up the upper bound on
     versions

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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[-]: Development (unversioned) .so files in -devel subpackage, if present.
     Note: Unversioned so-files in private %_libdir subdirectory (see
     attachment). Verify they are not in ld path.
     => false positive, Haskell .so files are named differently
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

Generic:
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
     Note: Using prebuilt packages
[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", "BSD 3-Clause License". 28 files have
     unknown license. Detailed output of licensecheck in /var/lib/copr-
     rpmbuild/results/ghc-base64/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/lib64/ghc-9.2.6/lib
     => false positive, owned by ghc-base that ghc-base64 depends on via one of its libraries
[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.
[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.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 10240 bytes in 2 files.
[x]: Package complies to the Packaging Guidelines
[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]: 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]: 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]: Reviewer should test that the package builds in mock.
[-]: 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 ghc-
     base64-prof
[?]: Package functions as described.
[!]: Latest version is packaged.
     => 1.0 is out, consider importing that or whichever pandoc needs
[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.
[x]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[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:
[!]: Spec file according to URL is the same as in SRPM.
     Note: Bad spec filename: /var/lib/copr-rpmbuild/results/ghc-
     base64/srpm-unpacked/ghc-base64.spec
     See: (this test has no URL)
[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: ghc-base64-0.4.2.4-2.fc39.x86_64.rpm
          ghc-base64-devel-0.4.2.4-2.fc39.x86_64.rpm
          ghc-base64-prof-0.4.2.4-2.fc39.x86_64.rpm
          ghc-base64-0.4.2.4-2.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/tmpbi7dsre_')]
checks: 31, packages: 4

ghc-base64-devel.x86_64: E: static-library-without-debuginfo /usr/lib64/ghc-9.2.6/lib/base64-0.4.2.4/libHSbase64-0.4.2.4-FWa9Np7lp9A3sTkZiRSo5V.a
ghc-base64-prof.x86_64: E: static-library-without-debuginfo /usr/lib64/ghc-9.2.6/lib/base64-0.4.2.4/libHSbase64-0.4.2.4-FWa9Np7lp9A3sTkZiRSo5V_p.a
ghc-base64.x86_64: W: no-documentation
ghc-base64-prof.x86_64: W: no-documentation
ghc-base64-prof.x86_64: W: devel-file-in-non-devel-package /usr/lib64/ghc-9.2.6/lib/base64-0.4.2.4/libHSbase64-0.4.2.4-FWa9Np7lp9A3sTkZiRSo5V_p.a
 4 packages and 0 specfiles checked; 2 errors, 3 warnings, 2 badness; has taken 0.4 s

Comment 10 Jens Petersen 2024-02-22 05:26:00 UTC
Thank you for the review, Michel!

Comment 11 Fedora Admin user for bugzilla script actions 2024-02-22 05:26:25 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/ghc-base64

Comment 12 Jens Petersen 2024-02-22 05:41:44 UTC
(In reply to Michel Lind from comment #9)
> LGTM, APPROVED. Note that 1.0 is now out:
> https://hackage.haskell.org/package/base64 and 0.4.2.4 has revised metadata,
> you might want to either update to 1.0 or refresh the .cabal file when
> importing

Right thank you - I think 1.0 is still too new (also not in stackage lts-22).

Comment 13 Jens Petersen 2024-02-22 05:46:43 UTC
I will this together with the next pandoc push (since I need to decouple it from pandoc), thanks again.

Comment 14 Jens Petersen 2024-02-28 10:01:19 UTC
Built for F41 Rawhide

Comment 15 Fedora Update System 2024-03-20 17:41:06 UTC
FEDORA-2024-7d83cbccb6 (ghc-base64-0.4.2.4-28.fc40, ghc-hakyll-4.16.2.0-4.fc40, and 6 more) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-7d83cbccb6

Comment 16 Fedora Update System 2024-03-21 01:35:41 UTC
FEDORA-2024-7d83cbccb6 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-7d83cbccb6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-7d83cbccb6

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

Comment 17 Fedora Update System 2024-03-21 11:14:50 UTC
FEDORA-2024-b458482d48 (ghc-base64-0.4.2.4-28.fc39, ghc-hakyll-4.16.2.0-4.fc39, and 6 more) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b458482d48

Comment 19 Fedora Update System 2024-03-22 02:34:59 UTC
FEDORA-2024-b458482d48 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-b458482d48`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-b458482d48

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

Comment 20 Fedora Update System 2024-03-22 06:40:34 UTC
FEDORA-2024-6ad6b9f417 (ghc-base64-0.4.2.4-28.fc38, ghc-hakyll-4.16.2.0-1.fc38, and 3 more) has been submitted as an update to Fedora 38.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-6ad6b9f417

Comment 21 Fedora Update System 2024-03-23 03:11:58 UTC
FEDORA-2024-6ad6b9f417 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-6ad6b9f417`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-6ad6b9f417

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

Comment 22 Fedora Update System 2024-03-29 00:17:23 UTC
FEDORA-2024-7d83cbccb6 (ghc-base64-0.4.2.4-28.fc40, ghc-hakyll-4.16.2.0-4.fc40, and 6 more) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Fedora Update System 2024-03-30 01:08:44 UTC
FEDORA-2024-b458482d48 (ghc-base64-0.4.2.4-28.fc39, ghc-hakyll-4.16.2.0-4.fc39, and 6 more) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 24 Fedora Update System 2024-03-31 01:54:06 UTC
FEDORA-2024-6ad6b9f417 (ghc-base64-0.4.2.4-28.fc38, ghc-hakyll-4.16.2.0-1.fc38, and 3 more) has been pushed to the Fedora 38 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.