Bug 2239462 - Review Request: perl-File-KDBX - Encrypted database to store secret text and files
Summary: Review Request: perl-File-KDBX - Encrypted database to store secret text and ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Xavier Bachelot
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2118421
TreeView+ depends on / blocked
 
Reported: 2023-09-18 13:50 UTC by Charles R. Anderson
Modified: 2023-11-03 18:30 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-10-14 01:26:40 UTC
Type: ---
Embargoed:
xavier: fedora-review+


Attachments (Terms of Use)

Description Charles R. Anderson 2023-09-18 13:50:21 UTC
Spec URL: https://cra.fedorapeople.org/perl-File-KDBX/perl-File-KDBX.spec
SRPM URL: https://cra.fedorapeople.org/perl-File-KDBX/perl-File-KDBX-0.906-4.fc40.src.rpm
Description: File::KDBX provides everything you need to work with KDBX databases. A KDBX database is a hierarchical object database which is commonly used to store secret information securely. It was developed for the KeePass password safe. See "Introduction to KDBX" for more information about KDBX.
Fedora Account System Username: cra

Comment 1 Xavier Bachelot 2023-09-26 11:37:38 UTC
Hi Charles,

Drive-by review, sorry if it's a bit terse:

- Use cpan.metacpan.org as the Source0 URL
- Drop __perl macro in favor of straight perl
- Add NO_PACKLIST=1 NO_PERLLOCAL=1 to 'perl MakeFile.PL ...' and drop the 2 find's in %install
- 'make pure_install ...' can be replaced by %make_install
- You can use %make_build in %check
- The wildcards are too wide in %files, be more specific

Regards,
Xavier

Comment 2 Charles R. Anderson 2023-09-27 01:49:09 UTC
Thank you, all updated:

Spec URL: https://cra.fedorapeople.org/perl-File-KDBX/perl-File-KDBX.spec
SRPM URL: https://cra.fedorapeople.org/perl-File-KDBX/perl-File-KDBX-0.906-5.fc40.src.rpm

(In reply to Xavier Bachelot from comment #1)
> - Use cpan.metacpan.org as the Source0 URL
> - Drop __perl macro in favor of straight perl
> - Add NO_PACKLIST=1 NO_PERLLOCAL=1 to 'perl MakeFile.PL ...' and drop the 2
> find's in %install
> - 'make pure_install ...' can be replaced by %make_install
> - You can use %make_build in %check
> - The wildcards are too wide in %files, be more specific

Comment 3 Xavier Bachelot 2023-09-27 07:36:54 UTC
You took my comment for the %files section a little too strongly, the following would be enough:
%{perl_vendorlib}/File/
%{_mandir}/man3/File::KDBX*3pm*

On my way for a proper review, stay tuned.

Comment 4 Xavier Bachelot 2023-09-27 08:48:14 UTC
- rpmlint complains about :
perl-File-KDBX.src: W: strange-permission File-KDBX-0.906.tar.gz 640

- I'm not sure the %{?perl_default_filter} is required ?

- I'd drop the last sentence of %description.

- It would be nice to at least try to make the optional packages for test available in Fedora.

- According to tangerine, missing BRs:
B::COW
        RUNTIME lib/File/KDBX/Util.pm:231
Config
        COMPILE t/yubikey.t:9
        RUNTIME lib/File/KDBX.pm:133
        RUNTIME lib/File/KDBX/Util.pm:142
        RUNTIME lib/File/KDBX/Util.pm:411
        RUNTIME lib/File/KDBX/Util.pm:422
        RUNTIME lib/File/KDBX/Util.pm:458
        RUNTIME lib/File/KDBX/Util.pm:469
Errno
        COMPILE lib/File/KDBX/IO/Crypt.pm:7
        COMPILE lib/File/KDBX/IO/HashBlock.pm:8
        COMPILE lib/File/KDBX/IO/HmacBlock.pm:9
TestCommon
        PACKAGE t/lib/TestCommon.pm:1
        COMPILE t/crypt.t:7
        COMPILE t/database.t:9
        COMPILE t/entry.t:7
        COMPILE t/erase.t:7
        COMPILE t/error.t:9
        COMPILE t/group.t:7
        COMPILE t/hash-block.t:7
        COMPILE t/hmac-block.t:7
        COMPILE t/iterator.t:7
        COMPILE t/kdb.t:7
        COMPILE t/kdbx2.t:7
        COMPILE t/kdbx3.t:8
        COMPILE t/kdbx4.t:8
        COMPILE t/kdf-aes-pp.t:9
        COMPILE t/kdf.t:7
        COMPILE t/keys.t:7
        COMPILE t/memory-protection.t:7
        COMPILE t/object.t:7
        COMPILE t/otp.t:7
        COMPILE t/placeholders.t:7
        COMPILE t/query.t:7
        COMPILE t/references.t:7
        COMPILE t/safe.t:8
        COMPILE t/util.t:7
        COMPILE t/yubikey.t:7

Comment 5 Charles R. Anderson 2023-10-03 17:12:14 UTC
Spec URL: https://cra.fedorapeople.org/perl-File-KDBX/perl-File-KDBX.spec
SRPM URL: https://cra.fedorapeople.org/perl-File-KDBX/perl-File-KDBX-0.906-6.fc40.src.rpm

(In reply to Xavier Bachelot from comment #4)
> - rpmlint complains about :
> perl-File-KDBX.src: W: strange-permission File-KDBX-0.906.tar.gz 640

Fixed.

> - I'm not sure the %{?perl_default_filter} is required ?

It seems good practice to prevent accidental Provides: from %_docdir.

> - I'd drop the last sentence of %description.

OK.

> - It would be nice to at least try to make the optional packages for test
> available in Fedora.

Yes, they are in the queue.  I'll be submitting all optional deps soon.

> - According to tangerine, missing BRs:
> B::COW
> Config
> Errno

Added, thanks.

> TestCommon

This is provided by the package itself:

$ tangerine --mode=package . | tail -2
TestCommon
        PACKAGE t/lib/TestCommon.pm:1

Comment 6 Xavier Bachelot 2023-10-04 13:28:06 UTC
Package Review
==============

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



===== 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.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. No licenses
     found. Please check the source files for licenses manually.
[-]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[x]: Package does not own files or directories owned by other packages.
     Note: Dirs in package are owned also by:
     /usr/share/perl5/vendor_perl/File(perl-File-ChangeNotify, perl-File-
     Remove, perl-File-Comments, perl-File-ConfigDir, perl-File-Slurp-Tiny,
     perl-File-Find-Iterator, perl-File-FindLib, perl-File-Flat, perl-File-
     Find-Object, perl-File-TreeCreate, perl-File-DirCompare, perl-File-
     chdir, perl-File-BaseDir, perl-File-Touch, perl-File-Type-WebImages,
     perl-File-CheckTree, perl-File-KeePass, perl-File-Find-Rule-PPI, perl-
     File-NCopy, perl-File-Find-Rule-Perl, perl-File-Slurp, perl-File-Pid,
     perl-File-NFSLock, perl-File-ReadBackwards, perl-File-Temp, perl-File-
     Tee, perl-File-Find-utf8, perl-File-UserDirs, perl-File-Find-Rule-VCS,
     perl-File-Share, perl-File-Tempdir, perl-File-PathList, perl-File-
     ShareDir, perl-Image-ExifTool, perl-File-DesktopEntry, perl-File-
     HomeDir, perl-File-Path-Tiny, perl-File-Find-Rule, perl-File-Fetch,
     perl-File-Spec-Native, perl-File-Listing, perl-File-SearchPath, perl-
     File-ShareDir-Install, perl-File-Type, perl-File-MimeInfo, perl-File-
     ShareDir-ProjectDistDir, perl-File-Modified, perl-File-Rsync, perl-
     File-Copy-Recursive-Reduced, perl-File-Slurper, perl-File-chmod, perl-
     File-Read, perl-File-Zglob, perl-File-BOM, perl-File-Copy-Recursive,
     perl-File-Edit-Portable, perl-File-Next, perl-File-Flock, perl-File-
     LoadLines, perl-File-DirList, perl-File-MMagic, perl-File-Which, perl-
     File-Find-Object-Rule, perl-File-Path, perl-File-Tail, perl-File-
     pushd)
[-]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[-]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[x]: 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 63297 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: No rpmlint messages.
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: The License field must be a valid SPDX expression.
[x]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[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

Perl:
[x]: Package contains the mandatory BuildRequires and Requires:.
[x]: CPAN urls should be non-versioned.

===== 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.
[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 all installed packages.
     Note: No rpmlint messages.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: perl-File-KDBX-0.906-6.fc40.noarch.rpm
          perl-File-KDBX-0.906-6.fc40.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/tmpm1vl9sok')]
checks: 31, packages: 2

=========================================================== 2 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 badness; has taken 0.2 s ===========================================================




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.12/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: 1

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



Source checksums
----------------
https://cpan.metacpan.org/authors/id/C/CC/CCM/File-KDBX-0.906.tar.gz :
  CHECKSUM(SHA256) this package     : b47b7f9333abb491eaaec6345a14e7f93956d143944c14b8164a7fd1b224bd6f
  CHECKSUM(SHA256) upstream package : b47b7f9333abb491eaaec6345a14e7f93956d143944c14b8164a7fd1b224bd6f


Requires
--------
perl-File-KDBX (rpmlib, GLIBC filtered):
    perl(:VERSION)
    perl(Carp)
    perl(Compress::Raw::Zlib)
    perl(Config)
    perl(Crypt::Argon2)
    perl(Crypt::Cipher)
    perl(Crypt::Cipher::AES)
    perl(Crypt::Digest)
    perl(Crypt::Mac::HMAC)
    perl(Crypt::Misc)
    perl(Crypt::Mode::CBC)
    perl(Crypt::PRNG)
    perl(Crypt::Stream::ChaCha)
    perl(Crypt::Stream::Salsa20)
    perl(Data::Dumper)
    perl(Devel::GlobalDestruction)
    perl(Encode)
    perl(Errno)
    perl(Exporter)
    perl(File::KDBX)
    perl(File::KDBX::Constants)
    perl(File::KDBX::Error)
    perl(File::KDBX::IO::Crypt)
    perl(File::KDBX::IO::HashBlock)
    perl(File::KDBX::IO::HmacBlock)
    perl(File::KDBX::Iterator)
    perl(File::KDBX::Loader::KDB)
    perl(File::KDBX::Safe)
    perl(File::KDBX::Util)
    perl(File::Temp)
    perl(Hash::Util::FieldHash)
    perl(IO::Compress::Gzip)
    perl(IO::Handle)
    perl(IO::Uncompress::Gunzip)
    perl(IPC::Cmd)
    perl(Iterator::Simple)
    perl(List::Util)
    perl(Module::Load)
    perl(Module::Loaded)
    perl(Ref::Util)
    perl(Scalar::Util)
    perl(Scope::Guard)
    perl(Storable)
    perl(Symbol)
    perl(Text::ParseWords)
    perl(Time::Piece)
    perl(XML::LibXML)
    perl(XML::LibXML::Reader)
    perl(boolean)
    perl(namespace::clean)
    perl(overload)
    perl(strict)
    perl(warnings)
    perl-libs



Provides
--------
perl-File-KDBX:
    perl(File::KDBX)
    perl(File::KDBX::Cipher)
    perl(File::KDBX::Cipher::CBC)
    perl(File::KDBX::Cipher::Stream)
    perl(File::KDBX::Constants)
    perl(File::KDBX::Dumper)
    perl(File::KDBX::Dumper::KDB)
    perl(File::KDBX::Dumper::Raw)
    perl(File::KDBX::Dumper::V3)
    perl(File::KDBX::Dumper::V4)
    perl(File::KDBX::Dumper::XML)
    perl(File::KDBX::Entry)
    perl(File::KDBX::Error)
    perl(File::KDBX::Group)
    perl(File::KDBX::IO)
    perl(File::KDBX::IO::Crypt)
    perl(File::KDBX::IO::HashBlock)
    perl(File::KDBX::IO::HmacBlock)
    perl(File::KDBX::Iterator)
    perl(File::KDBX::KDF)
    perl(File::KDBX::KDF::AES)
    perl(File::KDBX::KDF::Argon2)
    perl(File::KDBX::Key)
    perl(File::KDBX::Key::ChallengeResponse)
    perl(File::KDBX::Key::Composite)
    perl(File::KDBX::Key::File)
    perl(File::KDBX::Key::Password)
    perl(File::KDBX::Key::YubiKey)
    perl(File::KDBX::Loader)
    perl(File::KDBX::Loader::KDB)
    perl(File::KDBX::Loader::Raw)
    perl(File::KDBX::Loader::V3)
    perl(File::KDBX::Loader::V4)
    perl(File::KDBX::Loader::XML)
    perl(File::KDBX::Object)
    perl(File::KDBX::Safe)
    perl(File::KDBX::Transaction)
    perl(File::KDBX::Util)
    perl-File-KDBX



Generated by fedora-review 0.10.0 (e79b66b) last change: 2023-07-24
Command line :/usr/bin/fedora-review -b 2239462
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, Perl, Shell-api
Disabled plugins: R, C/C++, Java, Ocaml, Python, Haskell, fonts, SugarActivity, PHP
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH

Comment 7 Xavier Bachelot 2023-10-04 13:28:35 UTC
Package is APPROVED.

Comment 8 Fedora Admin user for bugzilla script actions 2023-10-04 22:21:58 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/perl-File-KDBX

Comment 9 Fedora Update System 2023-10-05 04:34:43 UTC
FEDORA-2023-5501aa2e08 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-5501aa2e08

Comment 10 Fedora Update System 2023-10-05 04:35:22 UTC
FEDORA-2023-e5abbdd6f2 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-e5abbdd6f2

Comment 11 Fedora Update System 2023-10-05 04:35:44 UTC
FEDORA-2023-bddd3dc4cb has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-bddd3dc4cb

Comment 12 Fedora Update System 2023-10-05 20:10:24 UTC
FEDORA-2023-5501aa2e08 has been pushed to the Fedora 39 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-5501aa2e08 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-5501aa2e08

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

Comment 13 Fedora Update System 2023-10-06 02:03:27 UTC
FEDORA-2023-bddd3dc4cb 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-bddd3dc4cb \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-bddd3dc4cb

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

Comment 14 Fedora Update System 2023-10-06 02:53:53 UTC
FEDORA-2023-e5abbdd6f2 has been pushed to the Fedora 38 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-e5abbdd6f2 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-e5abbdd6f2

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

Comment 15 Fedora Update System 2023-10-14 01:26:40 UTC
FEDORA-2023-bddd3dc4cb has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2023-10-14 01:31:14 UTC
FEDORA-2023-e5abbdd6f2 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2023-11-03 18:30:00 UTC
FEDORA-2023-5501aa2e08 has been pushed to the Fedora 39 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.