https://bugzilla.redhat.com/show_bug.cgi?id=2049689
Bug ID: 2049689 Summary: Review Request: python-awscrt - Python bindings for the AWS Common Runtime Product: Fedora Version: rawhide Hardware: All OS: Linux Status: NEW Component: Package Review Severity: medium Priority: medium Assignee: nobody@fedoraproject.org Reporter: davdunc@amazon.com QA Contact: extras-qa@fedoraproject.org CC: package-review@lists.fedoraproject.org Target Milestone: --- Classification: Fedora
Spec URL: https://davdunc.fedorapeople.org/awscli-2-rpms/python-awscrt.spec SRPM URL: https://davdunc.fedorapeople.org/awscli-2-rpms/python-awscrt-0.12.6-2.fc35.s... Description: Python bindings for the AWS Common Runtime Fedora Account System Username: davdunc
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
Michel Alexandre Salim michel@michel-slm.name changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |michel@michel-slm.name Doc Type|--- |If docs needed, set a value Blocks| |2049808
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2049808 [Bug 2049808] Review Request: awscli-2 - Universal Command Line Environment for AWS, Version 2
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
Michel Alexandre Salim michel@michel-slm.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |2049644
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2049644 [Bug 2049644] Review Request: aws-c-io - This is a module for the AWS SDK for C.
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
Michel Alexandre Salim michel@michel-slm.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |2049400
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2049400 [Bug 2049400] Review Request: aws-c-cal- Aws Crypto Abstraction Layer: Cross-Platform, C99 wrapper for cryptography primitives.
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
Gwyn Ciesla gwync@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |2078619 CC| |gwync@protonmail.com
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2078619 [Bug 2078619] awscli-1.23.0 is available
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
Nikola Forró nforro@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nforro@redhat.com
--- Comment #1 from Nikola Forró nforro@redhat.com --- Update for the current state of the upstream project.
Spec URL: https://download.copr.fedorainfracloud.org/results/nforro/python-awscrt/fedo... SRPM URL: https://download.copr.fedorainfracloud.org/results/nforro/python-awscrt/fedo...
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
--- Comment #2 from Major Hayden 🤠 mhayden@redhat.com --- Sweet. I'll get a look today.
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
--- Comment #3 from Nikola Forró nforro@redhat.com --- I've reworked the first patch to (hopefully) make it upstreamable. I'm still not sure I fully understand Fedora crypto policy and if it is really necessary, either way, linking with OpenSSL seems like a better idea than statically linking with AWS-LC.
Spec URL: https://download.copr.fedorainfracloud.org/results/nforro/python-awscrt/fedo... SRPM URL: https://download.copr.fedorainfracloud.org/results/nforro/python-awscrt/fedo...
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
--- Comment #4 from Nikola Forró nforro@redhat.com --- Two downstream patches have been merged upstream and included in a new 0.16.12 release. I've proposed the OpenSSL patch upstream, let's see if they'll accept it: https://github.com/awslabs/aws-crt-python/pull/454 I've also reported a buffer overflow in aws-c-http that is the cause of test suite crashes on ix86: https://github.com/awslabs/aws-c-http/issues/428
Spec URL: https://download.copr.fedorainfracloud.org/results/nforro/python-awscrt/fedo... SRPM URL: https://download.copr.fedorainfracloud.org/results/nforro/python-awscrt/fedo...
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
Jakub Kadlčík jkadlcik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jkadlcik@redhat.com
--- Comment #5 from Jakub Kadlčík jkadlcik@redhat.com --- Thank you for the package,
License: Apache-2.0
The licensecheck found also:
*No copyright* OpenSSL License ------------------------------ awscrt-0.16.12/crt/aws-lc/crypto/fipsmodule/bn/asm/x86_64-gcc.c
BSD 3-Clause License -------------------- awscrt-0.16.12/crt/aws-lc/crypto/x509v3/v3_pci.c awscrt-0.16.12/crt/aws-lc/crypto/x509v3/v3_pcia.c
BSD 3-Clause License Apache License 2.0 --------------------------------------- awscrt-0.16.12/crt/aws-c-common/source/posix/time.c
CMU License ----------- awscrt-0.16.12/crt/s2n/pq-crypto/kyber_r3/KeccakP-brg_endian_avx2.h
And many different files under many different licenses. Attaching the whole file, so you can see for yourself. Should we add them to the License field? If yes, please add a comment to the spec file, describing what license applies to what files.
# the code is not big endian friendly ExcludeArch: s390x
According to the packaging guidelines https://docs.fedoraproject.org/en-US/packaging-guidelines/#_architecture_bui...
Each architecture listed in ExcludeArch needs to have a bug filed in bugzilla, describing the reason that the package does not compile/build/work on that architecture. The bug number should then be placed in a comment, next to the corresponding ExcludeArch line. New packages will not have bugzilla entries during the review process, so they should put this description in the comment until the package is approved, then file the bugzilla entry, and replace the long explanation with the bug number.
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
Jakub Kadlčík jkadlcik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Comment #6 is|1 |0 private| |
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
--- Comment #7 from Nikola Forró nforro@redhat.com --- Thanks Jakub for the review.
I've updated the License field: - AWS-LC is not built, so I'm not taking the sources into consideration - the detected CMU license is actually BSD-3-Clause - crt/aws-c-common/source/posix/time.c is licensed under Apache-2.0, but there is BSD-3-Clause license inside #if defined(__ANDROID__) block, so I'm excluding that one
About ExcludeArch, do you mean the comment is too brief and should be more detailed? I can't file a bug until after the package is approved.
Spec URL: https://download.copr.fedorainfracloud.org/results/nforro/python-awscrt/fedo... SRPM URL: https://download.copr.fedorainfracloud.org/results/nforro/python-awscrt/fedo...
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
--- Comment #8 from Jakub Kadlčík jkadlcik@redhat.com --- Thank you for the updates,
About ExcludeArch, do you mean the comment is too brief and should be more detailed? I can't file a bug until after the package is approved.
Ah, you are right, I misread the documentation. The comment is fine. But please don't forget to create the ticket and update the spec comment once this package is accepted.
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]: 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. [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 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: "*No copyright* Apache License 2.0", "Unknown or generated", "Apache License 2.0", "OpenSSL License Apache License 2.0", "ISC License", "SSLeay", "ISC License [generated file]", "MIT License", "BSD 3-Clause License Apache License 2.0", "OpenSSL License Apache License 1.0", "OpenSSL License", "SSLeay [generated file]", "BSD 3-Clause License", "*No copyright* MIT License", "CMU License", "*No copyright* [generated file]", "OpenSSL License [generated file]", "Apache License 2.0 [generated file]", "*No copyright* Public domain", "ISC License Apache License 2.0", "*No copyright* OpenSSL License". 1511 files have unknown license. Detailed output of licensecheck in /var/lib/copr-rpmbuild/results/python-awscrt/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. [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]: 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 10240 bytes in 1 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 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
Python: [x]: Python eggs must not download any dependencies during the build process. [x]: A package which is used by another package via an egg interface should provide egg info. [x]: Package meets the Packaging Guidelines::Python [x]: Package contains BR: python2-devel or python3-devel [x]: Packages MUST NOT have dependencies (either build-time or runtime) on packages named with the unversioned python- prefix unless no properly versioned package exists. Dependencies on Python packages instead MUST use names beginning with python2- or python3- as appropriate. [x]: Python packages must not contain %{pythonX_site(lib|arch)}/* in %files [x]: Binary eggs must be removed in %prep
===== 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 python3-awscrt [?]: Package functions as described. [x]: Latest version is packaged. [x]: Package does not include license text files separate from upstream. [x]: 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. [?]: 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: [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: python3-awscrt-0.16.12-1.fc39.x86_64.rpm python-awscrt-debugsource-0.16.12-1.fc39.x86_64.rpm python-awscrt-0.16.12-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/tmpsx3im471')] checks: 31, packages: 3
python-awscrt-debugsource.x86_64: E: files-duplicated-waste 678167 3 packages and 0 specfiles checked; 1 errors, 0 warnings, 1 badness; has taken 1.3 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: 2
python-awscrt-debugsource.x86_64: E: files-duplicated-waste 678167 2 packages and 0 specfiles checked; 1 errors, 0 warnings, 1 badness; has taken 0.9 s
Unversioned so-files -------------------- python3-awscrt: /usr/lib64/python3.11/site-packages/_awscrt.cpython-311-x86_64-linux-gnu.so
Source checksums ---------------- https://files.pythonhosted.org/packages/source/a/awscrt/awscrt-0.16.12.tar.g... : CHECKSUM(SHA256) this package : 3986a456b7b7a00ce602e50ddfaa7218ceb2794ea4961d46286c43b5b358cc10 CHECKSUM(SHA256) upstream package : 3986a456b7b7a00ce602e50ddfaa7218ceb2794ea4961d46286c43b5b358cc10
Requires -------- python3-awscrt (rpmlib, GLIBC filtered): glibc ld-linux-x86-64.so.2()(64bit) libc.so.6()(64bit) libcrypto.so.3()(64bit) libcrypto.so.3(OPENSSL_3.0.0)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) python(abi) rtld(GNU_HASH)
python-awscrt-debugsource (rpmlib, GLIBC filtered):
Provides -------- python3-awscrt: python-awscrt python3-awscrt python3-awscrt(x86-64) python3.11-awscrt python3.11dist(awscrt) python3dist(awscrt)
python-awscrt-debugsource: python-awscrt-debugsource python-awscrt-debugsource(x86-64)
Generated by fedora-review 0.9.0 (6761b6c) last change: 2022-08-23 Command line :/usr/bin/fedora-review --no-colors --prebuilt --rpm-spec --name python-awscrt --mock-config /var/lib/copr-rpmbuild/results/configs/child.cfg Buildroot used: fedora-rawhide-x86_64 Active plugins: Generic, C/C++, Python, Shell-api Disabled plugins: PHP, Java, Perl, Ocaml, SugarActivity, fonts, R, Haskell Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
Jakub Kadlčík jkadlcik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|fedora-review? |fedora-review+
https://bugzilla.redhat.com/show_bug.cgi?id=2049689
Jakub Kadlčík jkadlcik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|ASSIGNED |CLOSED Last Closed| |2023-03-20 12:14:50
--- Comment #9 from Jakub Kadlčík jkadlcik@redhat.com ---
*** This bug has been marked as a duplicate of bug 2179888 ***
https://bugzilla.redhat.com/show_bug.cgi?id=2049689 Bug 2049689 depends on bug 2049400, which changed state.
Bug 2049400 Summary: Review Request: aws-c-cal - Aws Crypto Abstraction Layer: Cross-Platform, C99 wrapper for cryptography primitives. https://bugzilla.redhat.com/show_bug.cgi?id=2049400
What |Removed |Added ---------------------------------------------------------------------------- Status|POST |CLOSED Resolution|--- |NEXTRELEASE
package-review@lists.fedoraproject.org