[Bug 2165536] Review Request: bee2 - Cryptographic library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2165536

Petr Pisar <ppisar@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Review Request: libbee2 -   |Review Request: bee2 -
                   |Cryptographic library       |Cryptographic library



--- Comment #4 from Petr Pisar <ppisar@xxxxxxxxxx> ---
TODO: bsum description ends with "see apmi.bsu.by/resources/std.html". Could
you spell it as a proper URL and with a full stop at the end of the sentence
like "see <https://apmi.bsu.by/resources/std.html>."?

TODO: Delete the static library in %install section (rm
%{buildroot}%{_libdir}/libbee2_static.a), rather then using %exclude in %files
libs. Unpackaged files can trigger side effects like bug #878863.

FIX: A license for bsum package should be "GPL-3.0-only". The executable does
not contain the GPL-3.0-or-later file. Add an explicit "License: GPL-3.0-only"
to bsum package section.

> From build log, build flags are:
> + CFLAGS='-O2 -flto=thin -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config /usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong   -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer'
> + LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now   -flto=thin -fno-openmp-implicit-rpath -Wl,--build-id=sha1 '

I think the PIE flags are stored in
/usr/lib/rpm/redhat/redhat-hardened-clang.cfg which is passed with a --config
option.

$ rpmlint bee2.spec ../SRPMS/bee2-2.1.0-3.fc39.src.rpm
../RPMS/x86_64/bee2-libs-* ../RPMS/x86_64/bsum-*
======================================== 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

bsum.x86_64: W: no-manual-page-for-binary bsum
bsum.x86_64: W: no-documentation
========= 5 packages and 1 specfiles checked; 0 errors, 2 warnings, 0 badness;
has taken 0.4 s ========
rpmlint is Ok.

$ rpm -q -lv -p ../RPMS/x86_64/bee2-libs-2.1.0-3.fc39.x86_64.rpm 
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/lib/.build-id
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/lib/.build-id/ff
lrwxrwxrwx    1 root     root                       38 Feb 13 01:00
/usr/lib/.build-id/ff/8a303b1b587ef56e8df35cadd0893f26948f12 ->
../../../../usr/lib64/libbee2.so.2.1.0
lrwxrwxrwx    1 root     root                       16 Feb 13 01:00
/usr/lib64/libbee2.so.2.0 -> libbee2.so.2.1.0
-rwxr-xr-x    1 root     root                   765744 Feb 13 01:00
/usr/lib64/libbee2.so.2.1.0
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/share/doc/bee2-libs
-rw-r--r--    1 root     root                      905 Jun 30  2021
/usr/share/doc/bee2-libs/AUTHORS.md
-rw-r--r--    1 root     root                     3242 Jun 30  2021
/usr/share/doc/bee2-libs/README.md
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/share/licenses/bee2-libs
-rw-r--r--    1 root     root                    35142 Jun 30  2021
/usr/share/licenses/bee2-libs/LICENSE
$ rpm -q -lv -p ../RPMS/x86_64/bee2-libs-2.1.0-3.fc39.x86_64.rpm
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/lib/.build-id
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/lib/.build-id/ff
lrwxrwxrwx    1 root     root                       38 Feb 13 01:00
/usr/lib/.build-id/ff/8a303b1b587ef56e8df35cadd0893f26948f12 ->
../../../../usr/lib64/libbee2.so.2.1.0
lrwxrwxrwx    1 root     root                       16 Feb 13 01:00
/usr/lib64/libbee2.so.2.0 -> libbee2.so.2.1.0
-rwxr-xr-x    1 root     root                   765744 Feb 13 01:00
/usr/lib64/libbee2.so.2.1.0
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/share/doc/bee2-libs
-rw-r--r--    1 root     root                      905 Jun 30  2021
/usr/share/doc/bee2-libs/AUTHORS.md
-rw-r--r--    1 root     root                     3242 Jun 30  2021
/usr/share/doc/bee2-libs/README.md
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/share/licenses/bee2-libs
-rw-r--r--    1 root     root                    35142 Jun 30  2021
/usr/share/licenses/bee2-libs/LICENSE
test@fedora-39:~/rpmbuild/SPECS $ rpm -q -lv -p
../RPMS/x86_64/bee2-devel-2.1.0-3.fc39.x86_64.rpm
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/include/bee2
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/include/bee2/core
-rw-r--r--    1 root     root                     5452 Jun 30  2021
/usr/include/bee2/core/b64.h
-rw-r--r--    1 root     root                     6421 Jun 30  2021
/usr/include/bee2/core/blob.h
-rw-r--r--    1 root     root                     7277 Jun 30  2021
/usr/include/bee2/core/dec.h
-rw-r--r--    1 root     root                    23828 Jun 30  2021
/usr/include/bee2/core/der.h
-rw-r--r--    1 root     root                     8253 Jun 30  2021
/usr/include/bee2/core/err.h
-rw-r--r--    1 root     root                     7620 Jun 30  2021
/usr/include/bee2/core/hex.h
-rw-r--r--    1 root     root                    17205 Jun 30  2021
/usr/include/bee2/core/mem.h
-rw-r--r--    1 root     root                     8929 Jun 30  2021
/usr/include/bee2/core/mt.h
-rw-r--r--    1 root     root                     6297 Jun 30  2021
/usr/include/bee2/core/obj.h
-rw-r--r--    1 root     root                     4584 Jun 30  2021
/usr/include/bee2/core/oid.h
-rw-r--r--    1 root     root                     7453 Jun 30  2021
/usr/include/bee2/core/prng.h
-rw-r--r--    1 root     root                    15568 Jun 30  2021
/usr/include/bee2/core/rng.h
-rw-r--r--    1 root     root                     4911 Jun 30  2021
/usr/include/bee2/core/safe.h
-rw-r--r--    1 root     root                     6143 Jun 30  2021
/usr/include/bee2/core/stack.h
-rw-r--r--    1 root     root                     4979 Jun 30  2021
/usr/include/bee2/core/str.h
-rw-r--r--    1 root     root                     5923 Jun 30  2021
/usr/include/bee2/core/tm.h
-rw-r--r--    1 root     root                     5602 Jun 30  2021
/usr/include/bee2/core/u16.h
-rw-r--r--    1 root     root                     5610 Jun 30  2021
/usr/include/bee2/core/u32.h
-rw-r--r--    1 root     root                     5957 Jun 30  2021
/usr/include/bee2/core/u64.h
-rw-r--r--    1 root     root                    10459 Jun 30  2021
/usr/include/bee2/core/util.h
-rw-r--r--    1 root     root                     7654 Jun 30  2021
/usr/include/bee2/core/word.h
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/include/bee2/crypto
-rw-r--r--    1 root     root                    38070 Jun 30  2021
/usr/include/bee2/crypto/bake.h
-rw-r--r--    1 root     root                    21129 Jun 30  2021
/usr/include/bee2/crypto/bash.h
-rw-r--r--    1 root     root                    19295 Jun 30  2021
/usr/include/bee2/crypto/bels.h
-rw-r--r--    1 root     root                    89383 Jun 30  2021
/usr/include/bee2/crypto/belt.h
-rw-r--r--    1 root     root                    29707 Jun 30  2021
/usr/include/bee2/crypto/bign.h
-rw-r--r--    1 root     root                    27544 Jun 30  2021
/usr/include/bee2/crypto/botp.h
-rw-r--r--    1 root     root                     9308 Jun 30  2021
/usr/include/bee2/crypto/bpki.h
-rw-r--r--    1 root     root                    15510 Jun 30  2021
/usr/include/bee2/crypto/brng.h
-rw-r--r--    1 root     root                    14895 Jun 30  2021
/usr/include/bee2/crypto/dstu.h
-rw-r--r--    1 root     root                    12092 Jun 30  2021
/usr/include/bee2/crypto/g12s.h
-rw-r--r--    1 root     root                    16418 Jun 30  2021
/usr/include/bee2/crypto/pfok.h
-rw-r--r--    1 root     root                    23223 Jun 30  2021
/usr/include/bee2/defs.h
-rw-r--r--    1 root     root                     7237 Jun 30  2021
/usr/include/bee2/info.h
drwxr-xr-x    2 root     root                        0 Feb 13 01:00
/usr/include/bee2/math
-rw-r--r--    1 root     root                    32259 Jun 30  2021
/usr/include/bee2/math/ec.h
-rw-r--r--    1 root     root                     9418 Jun 30  2021
/usr/include/bee2/math/ec2.h
-rw-r--r--    1 root     root                    10605 Jun 30  2021
/usr/include/bee2/math/ecp.h
-rw-r--r--    1 root     root                     9833 Jun 30  2021
/usr/include/bee2/math/gf2.h
-rw-r--r--    1 root     root                     3966 Jun 30  2021
/usr/include/bee2/math/gfp.h
-rw-r--r--    1 root     root                    23799 Jun 30  2021
/usr/include/bee2/math/pp.h
-rw-r--r--    1 root     root                    13648 Jun 30  2021
/usr/include/bee2/math/pri.h
-rw-r--r--    1 root     root                    21969 Jun 30  2021
/usr/include/bee2/math/qr.h
-rw-r--r--    1 root     root                    24548 Jun 30  2021
/usr/include/bee2/math/ww.h
-rw-r--r--    1 root     root                    11723 Jun 30  2021
/usr/include/bee2/math/zm.h
-rw-r--r--    1 root     root                    48871 Jun 30  2021
/usr/include/bee2/math/zz.h
lrwxrwxrwx    1 root     root                       14 Feb 13 01:00
/usr/lib64/libbee2.so -> libbee2.so.2.0
-rw-r--r--    1 root     root                     1889 Feb 13 01:00
/usr/share/man/man3/b64.h.3.gz
-rw-r--r--    1 root     root                     5688 Feb 13 01:00
/usr/share/man/man3/bake.h.3.gz
-rw-r--r--    1 root     root                      452 Feb 13 01:00
/usr/share/man/man3/bake_cert.3.gz
-rw-r--r--    1 root     root                      612 Feb 13 01:00
/usr/share/man/man3/bake_settings.3.gz
-rw-r--r--    1 root     root                     4442 Feb 13 01:00
/usr/share/man/man3/bash.h.3.gz
-rw-r--r--    1 root     root                     3741 Feb 13 01:00
/usr/share/man/man3/bels.h.3.gz
-rw-r--r--    1 root     root                    10826 Feb 13 01:00
/usr/share/man/man3/belt.h.3.gz
-rw-r--r--    1 root     root                     4461 Feb 13 01:00
/usr/share/man/man3/bign.h.3.gz
-rw-r--r--    1 root     root                      560 Feb 13 01:00
/usr/share/man/man3/bign_params.3.gz
-rw-r--r--    1 root     root                     2018 Feb 13 01:00
/usr/share/man/man3/blob.h.3.gz
-rw-r--r--    1 root     root                     5354 Feb 13 01:00
/usr/share/man/man3/botp.h.3.gz
-rw-r--r--    1 root     root                     3496 Feb 13 01:00
/usr/share/man/man3/brng.h.3.gz
-rw-r--r--    1 root     root                     4649 Feb 13 01:00
/usr/share/man/man3/defs.h.3.gz
-rw-r--r--    1 root     root                     5099 Feb 13 01:00
/usr/share/man/man3/der.h.3.gz
-rw-r--r--    1 root     root                      440 Feb 13 01:00
/usr/share/man/man3/der_anchor.3.gz
-rw-r--r--    1 root     root                     3552 Feb 13 01:00
/usr/share/man/man3/dstu.h.3.gz
-rw-r--r--    1 root     root                      560 Feb 13 01:00
/usr/share/man/man3/dstu_params.3.gz
-rw-r--r--    1 root     root                     5680 Feb 13 01:00
/usr/share/man/man3/ec.h.3.gz
-rw-r--r--    1 root     root                     2349 Feb 13 01:00
/usr/share/man/man3/ec2.h.3.gz
-rw-r--r--    1 root     root                     1194 Feb 13 01:00
/usr/share/man/man3/ec_o.3.gz
-rw-r--r--    1 root     root                     2674 Feb 13 01:00
/usr/share/man/man3/ecp.h.3.gz
-rw-r--r--    1 root     root                      997 Feb 13 01:00
/usr/share/man/man3/err.h.3.gz
-rw-r--r--    1 root     root                     3039 Feb 13 01:00
/usr/share/man/man3/g12s.h.3.gz
-rw-r--r--    1 root     root                      599 Feb 13 01:00
/usr/share/man/man3/g12s_params.3.gz
-rw-r--r--    1 root     root                     2826 Feb 13 01:00
/usr/share/man/man3/gf2.h.3.gz
-rw-r--r--    1 root     root                     1306 Feb 13 01:00
/usr/share/man/man3/gfp.h.3.gz
-rw-r--r--    1 root     root                     1869 Feb 13 01:00
/usr/share/man/man3/hex.h.3.gz
-rw-r--r--    1 root     root                      274 Feb 13 01:00
/usr/share/man/man3/info.h.3.gz
-rw-r--r--    1 root     root                     3868 Feb 13 01:00
/usr/share/man/man3/mem.h.3.gz
-rw-r--r--    1 root     root                     2750 Feb 13 01:00
/usr/share/man/man3/mt.h.3.gz
-rw-r--r--    1 root     root                     1813 Feb 13 01:00
/usr/share/man/man3/obj.h.3.gz
-rw-r--r--    1 root     root                      440 Feb 13 01:00
/usr/share/man/man3/obj_hdr_t.3.gz
-rw-r--r--    1 root     root                     1551 Feb 13 01:00
/usr/share/man/man3/oid.h.3.gz
-rw-r--r--    1 root     root                     3144 Feb 13 01:00
/usr/share/man/man3/pfok.h.3.gz
-rw-r--r--    1 root     root                      493 Feb 13 01:00
/usr/share/man/man3/pfok_params.3.gz
-rw-r--r--    1 root     root                      415 Feb 13 01:00
/usr/share/man/man3/pfok_seed.3.gz
-rw-r--r--    1 root     root                     4965 Feb 13 01:00
/usr/share/man/man3/pp.h.3.gz
-rw-r--r--    1 root     root                      452 Feb 13 01:00
/usr/share/man/man3/pp_pentanom_st.3.gz
-rw-r--r--    1 root     root                      411 Feb 13 01:00
/usr/share/man/man3/pp_trinom_st.3.gz
-rw-r--r--    1 root     root                     3076 Feb 13 01:00
/usr/share/man/man3/pri.h.3.gz
-rw-r--r--    1 root     root                     1981 Feb 13 01:00
/usr/share/man/man3/prng.h.3.gz
-rw-r--r--    1 root     root                     4537 Feb 13 01:00
/usr/share/man/man3/qr.h.3.gz
-rw-r--r--    1 root     root                     1072 Feb 13 01:00
/usr/share/man/man3/qr_o.3.gz
-rw-r--r--    1 root     root                     4041 Feb 13 01:00
/usr/share/man/man3/rng.h.3.gz
-rw-r--r--    1 root     root                     1562 Feb 13 01:00
/usr/share/man/man3/safe.h.3.gz
-rw-r--r--    1 root     root                     1882 Feb 13 01:00
/usr/share/man/man3/stack.h.3.gz
-rw-r--r--    1 root     root                     1641 Feb 13 01:00
/usr/share/man/man3/str.h.3.gz
-rw-r--r--    1 root     root                     1956 Feb 13 01:00
/usr/share/man/man3/tm.h.3.gz
-rw-r--r--    1 root     root                     1761 Feb 13 01:00
/usr/share/man/man3/u16.h.3.gz
-rw-r--r--    1 root     root                     1758 Feb 13 01:00
/usr/share/man/man3/u32.h.3.gz
-rw-r--r--    1 root     root                     1756 Feb 13 01:00
/usr/share/man/man3/u64.h.3.gz
-rw-r--r--    1 root     root                     3062 Feb 13 01:00
/usr/share/man/man3/util.h.3.gz
-rw-r--r--    1 root     root                     1443 Feb 13 01:00
/usr/share/man/man3/word.h.3.gz
-rw-r--r--    1 root     root                     4783 Feb 13 01:00
/usr/share/man/man3/ww.h.3.gz
-rw-r--r--    1 root     root                     2452 Feb 13 01:00
/usr/share/man/man3/zm.h.3.gz
-rw-r--r--    1 root     root                     7262 Feb 13 01:00
/usr/share/man/man3/zz.h.3.gz
File layout and permissions are Ok.

$ rpm -q --requires -p ../RPMS/x86_64/bee2-devel-2.1.0-3.fc39.x86_64.rpm | sort
-f | uniq -c
      1 bee2-libs(x86-64) = 2.1.0-3.fc39
      1 libbee2.so.2.0()(64bit)
      1 rpmlib(CompressedFileNames) <= 3.0.4-1
      1 rpmlib(FileDigests) <= 4.6.0-1
      1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
      1 rpmlib(PayloadIsZstd) <= 5.4.18-1
$ rpm -q --requires -p ../RPMS/x86_64/bsum-2.1.0-3.fc39.x86_64.rpm | sort -f |
uniq -c
      1 bee2-libs(x86-64) = 2.1.0-3.fc39
      1 libbee2.so.2.0()(64bit)
      1 libc.so.6()(64bit)
      1 libc.so.6(GLIBC_2.2.5)(64bit)
      1 libc.so.6(GLIBC_2.3.4)(64bit)
      1 libc.so.6(GLIBC_2.34)(64bit)
      1 libc.so.6(GLIBC_2.4)(64bit)
      1 rpmlib(CompressedFileNames) <= 3.0.4-1
      1 rpmlib(FileDigests) <= 4.6.0-1
      1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
      1 rpmlib(PayloadIsZstd) <= 5.4.18-1
      1 rtld(GNU_HASH)
Binary require are Ok.

$ resolvedeps rawhide ../RPMS/x86_64/bsum-2.1.0-3.fc39.x86_64.rpm
../RPMS/x86_64/bee2-{devel,libs}-2.1.0-3.fc39.x86_64.rpm
Binary dependencies are resolvable. Ok.

The package builds in F39
(https://koji.fedoraproject.org/koji/taskinfo?taskID=97482670). Ok.

The package is almos perfect.
Please correct the FIX item, consider fixing the TODO items and provide a new
spec file.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2165536
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux