Bug 1839553 - Review Request: abseil-cpp - C++ Common Libraries
Summary: Review Request: abseil-cpp - C++ Common Libraries
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1839555
TreeView+ depends on / blocked
 
Reported: 2020-05-24 17:18 UTC by Rich Mattes
Modified: 2020-08-27 02:40 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-08-27 02:40:57 UTC
Type: ---
Embargoed:
eclipseo: fedora-review+


Attachments (Terms of Use)

Description Rich Mattes 2020-05-24 17:18:30 UTC
Spec URL: https://rmattes.fedorapeople.org/RPMS/abseil-cpp/abseil-cpp.spec
SRPM URL: https://rmattes.fedorapeople.org/RPMS/abseil-cpp/abseil-cpp-20200225.2-1.fc32.src.rpm
Description:
Abseil is an open-source collection of C++ library code designed to augment
the C++ standard library. The Abseil library code is collected from
Google's own C++ code base, has been extensively tested and used in
production, and is the same code we depend on in our daily coding lives.

In some cases, Abseil provides pieces missing from the C++ standard; in
others, Abseil provides alternatives to the standard for special needs we've
found through usage in the Google code base. We denote those cases clearly
within the library code we provide you.

Abseil is not meant to be a competitor to the standard library; we've just
found that many of these utilities serve a purpose within our code base,
and we now want to provide those resources to the C++ community as a whole.

Fedora Account System Username: rmattes

rpmlint:
$ rpmlint abseil-cpp.spec ../RPMS/x86_64/abseil-cpp-* ../SRPMS/abseil-cpp-20200225.2-1.fc32.src.rpm 
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_bad_any_cast_impl.so libabsl_bad_any_cast_impl.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_bad_any_cast_impl.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_bad_optional_access.so libabsl_bad_optional_access.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_bad_optional_access.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_bad_variant_access.so libabsl_bad_variant_access.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_bad_variant_access.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_base.so libabsl_base.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_city.so libabsl_city.so
abseil-cpp.x86_64: E: shared-lib-without-dependency-information /usr/lib64/libabsl_city.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_civil_time.so libabsl_civil_time.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_cord.so libabsl_cord.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_debugging_internal.so libabsl_debugging_internal.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_demangle_internal.so libabsl_demangle_internal.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_dynamic_annotations.so libabsl_dynamic_annotations.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_examine_stack.so libabsl_examine_stack.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_exponential_biased.so libabsl_exponential_biased.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_exponential_biased.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_failure_signal_handler.so libabsl_failure_signal_handler.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_flags.so libabsl_flags.so
abseil-cpp.x86_64: E: shared-lib-without-dependency-information /usr/lib64/libabsl_flags.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_flags_config.so libabsl_flags_config.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_flags_internal.so libabsl_flags_internal.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_flags_marshalling.so libabsl_flags_marshalling.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_flags_parse.so libabsl_flags_parse.so
abseil-cpp.x86_64: W: shared-lib-calls-exit /usr/lib64/libabsl_flags_parse.so exit.5
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_flags_program_name.so libabsl_flags_program_name.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_flags_registry.so libabsl_flags_registry.so
abseil-cpp.x86_64: W: shared-lib-calls-exit /usr/lib64/libabsl_flags_registry.so exit.5
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_flags_usage.so libabsl_flags_usage.so
abseil-cpp.x86_64: W: shared-lib-calls-exit /usr/lib64/libabsl_flags_usage.so exit.5
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_flags_usage_internal.so libabsl_flags_usage_internal.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_graphcycles_internal.so libabsl_graphcycles_internal.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_hash.so libabsl_hash.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_hash.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_hashtablez_sampler.so libabsl_hashtablez_sampler.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_hashtablez_sampler.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_leak_check.so libabsl_leak_check.so
abseil-cpp.x86_64: E: shared-lib-without-dependency-information /usr/lib64/libabsl_leak_check.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_leak_check_disable.so libabsl_leak_check_disable.so
abseil-cpp.x86_64: E: shared-lib-without-dependency-information /usr/lib64/libabsl_leak_check_disable.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_log_severity.so libabsl_log_severity.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_log_severity.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_malloc_internal.so libabsl_malloc_internal.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_periodic_sampler.so libabsl_periodic_sampler.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_periodic_sampler.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_random_distributions.so libabsl_random_distributions.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_random_internal_distribution_test_util.so libabsl_random_internal_distribution_test_util.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_random_internal_pool_urbg.so libabsl_random_internal_pool_urbg.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_random_internal_randen.so libabsl_random_internal_randen.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_random_internal_randen.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_random_internal_randen_hwaes.so libabsl_random_internal_randen_hwaes.so
abseil-cpp.x86_64: E: shared-lib-without-dependency-information /usr/lib64/libabsl_random_internal_randen_hwaes.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_random_internal_randen_hwaes_impl.so libabsl_random_internal_randen_hwaes_impl.so
abseil-cpp.x86_64: E: shared-lib-without-dependency-information /usr/lib64/libabsl_random_internal_randen_hwaes_impl.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_random_internal_randen_slow.so libabsl_random_internal_randen_slow.so
abseil-cpp.x86_64: E: shared-lib-without-dependency-information /usr/lib64/libabsl_random_internal_randen_slow.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_random_internal_seed_material.so libabsl_random_internal_seed_material.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_random_seed_gen_exception.so libabsl_random_seed_gen_exception.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_random_seed_sequences.so libabsl_random_seed_sequences.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_raw_hash_set.so libabsl_raw_hash_set.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_raw_hash_set.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_raw_logging_internal.so libabsl_raw_logging_internal.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_scoped_set_env.so libabsl_scoped_set_env.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_spinlock_wait.so libabsl_spinlock_wait.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_stacktrace.so libabsl_stacktrace.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_stacktrace.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_status.so libabsl_status.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_str_format_internal.so libabsl_str_format_internal.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_strings.so libabsl_strings.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_strings_internal.so libabsl_strings_internal.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_symbolize.so libabsl_symbolize.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_synchronization.so libabsl_synchronization.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_throw_delegate.so libabsl_throw_delegate.so
abseil-cpp.x86_64: E: library-not-linked-against-libc /usr/lib64/libabsl_throw_delegate.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_time.so libabsl_time.so
abseil-cpp.x86_64: E: invalid-soname /usr/lib64/libabsl_time_zone.so libabsl_time_zone.so
abseil-cpp-devel.x86_64: W: only-non-binary-in-usr-lib
abseil-cpp-devel.x86_64: W: no-documentation
5 packages and 1 specfiles checked; 73 errors, 5 warnings.

The invalid-soname warnings are probably to be expected due to the upstream release management process[1]. Upstream explicitly doesn't version their library, preferring that projects bundle it into their build processes as a static lib.  I could hack in a version or soversion for Fedora, but I don't think upstream will accept it.  For Fedora, we can treat it as a static library and require all deps to be re-compiled when abseil-cpp is updated, and we can forbid upgrading the LTS branch within a fedora release.

I'm not sure where the "library-not-linked-against-libc" warnings are coming from: I see linkage to libc
$ ldd /usr/lib64/libabsl_stacktrace.so 
	linux-vdso.so.1 (0x00007ffe42103000)
	libabsl_debugging_internal.so => /lib64/libabsl_debugging_internal.so (0x00007f5f12962000)
	libabsl_dynamic_annotations.so => /lib64/libabsl_dynamic_annotations.so (0x00007f5f1295d000)
	libabsl_raw_logging_internal.so => /lib64/libabsl_raw_logging_internal.so (0x00007f5f12958000)
	libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f5f12768000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f5f1274d000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f5f12583000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f5f1243b000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f5f129c8000)

Finally, the "shared-lib-without-dependency-information" seems to be a result of -Wl,--as-needed.  Nothing looks suspicious about the build flags, I think those libs just really don't link against anything in libc or libstdc++
[ 17%] Linking CXX shared library libabsl_city.so
cd /home/rich/rpmbuild/BUILD/abseil-cpp-20200225.2/absl/hash && /usr/bin/cmake -E cmake_link_script CMakeFiles/city.dir/link.txt --verbose=1
/usr/lib64/ccache/c++ -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -DNDEBUG -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -shared -Wl,-soname,libabsl_city.so -o libabsl_city.so CMakeFiles/city.dir/internal/city.cc.o 

[1] https://abseil.io/about/releases

Comment 1 Rich Mattes 2020-05-27 01:16:24 UTC
Small update to not remove %{buildroot} in the %install section:

Spec URL: https://rmattes.fedorapeople.org/RPMS/abseil-cpp/abseil-cpp.spec
SRPM URL: https://rmattes.fedorapeople.org/RPMS/abseil-cpp/abseil-cpp-20200225.2-2.fc32.src.rpm

Same rpmlint issues as above.

Comment 2 Andy Mender 2020-05-29 20:00:10 UTC
I just wanted to say big thank you for taking on the job of submitting Abseil as a package to Fedora. I haven't used the library yet myself, but based on the README it looks like an extremely useful supplement to the C++ standard library and my colleagues who actually used it also complemented it for code quality.

Comment 3 Robert-André Mauchin 🐧 2020-06-26 10:46:33 UTC
> The invalid-soname warnings are probably to be expected due to the upstream release management process[1]. Upstream explicitly doesn't version their library, preferring that projects bundle it into their build processes as a static lib.  I could hack in a version or soversion for Fedora, but I don't think upstream will accept it.  For Fedora, we can treat it as a static library and require all deps to be re-compiled when abseil-cpp is updated, and we can forbid upgrading the LTS branch within a fedora release.


Meh.


Package approved.


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

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


Issues:
=======
- Development (unversioned) .so files in -devel subpackage, if present.
  Note: Unversioned so-files directly in %_libdir.
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/#_devel_packages


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

C/C++:
[x]: Package does not contain kernel modules.
[-]: 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]: 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 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", "Apache License 2.0", "*No copyright*
     Public domain". 651 files have unknown license. Detailed output of
     licensecheck in /home/bob/packaging/review/abseil-cpp/review-abseil-
     cpp/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[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.
[-]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 20480 bytes in 4 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 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 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).
[?]: 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.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[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]: Fully versioned dependency in subpackages if applicable.
[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 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]: Spec file according to URL is the same as in SRPM.

Comment 4 Rich Mattes 2020-06-27 12:20:57 UTC
Yeah, I'm not thrilled with the release model either.  Thanks for the review!

Comment 5 Gwyn Ciesla 2020-06-27 16:34:35 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/abseil-cpp

Comment 6 Rich Mattes 2020-08-27 02:40:57 UTC
Built and updates submitted to f31, f32


Note You need to log in before you can comment on or make changes to this bug.