Bug 1988840 - Review Request: boost-http-server - Improvements on top of the Boost Asio HTTP server example
Summary: Review Request: boost-http-server - Improvements on top of the Boost Asio HTT...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christopher Crouse
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1988781
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-01 15:27 UTC by Davide Cavalca
Modified: 2022-01-25 01:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-01-16 06:15:24 UTC
Type: ---
Embargoed:
mail: fedora-review+


Attachments (Terms of Use)

Description Davide Cavalca 2021-08-01 15:27:53 UTC
Spec URL: https://dcavalca.fedorapeople.org/review/BoostHttpServer/BoostHttpServer.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/BoostHttpServer/BoostHttpServer-0-1.20210801git4bc3623.fc35.src.rpm

Description:

This is a simple C++ embeddable web server build from the Boost.Asio
multithreaded HTTP 1.0 Server Example.

Fedora Account System Username: dcavalca

Comment 1 Christopher Crouse 2022-01-07 06:56:55 UTC
I'll be taking a preliminary package review.

Comment 2 Christopher Crouse 2022-01-08 08:57:40 UTC
Hi Davide,

I have a few suggestions:

===

[1] I would update the package name to match the parent `boost` package, in the format: boost-%{child}, since it depends on boost.
    For example: `boost-http-server`.

[2] I would recommend adding the upstream PR URL link in the spec's `Patch0` comment,
    since I noticed the difference between the PR and actual patch being applied.

[3] The doc sub package contains one file with the MIT license.

    ...

    MIT License
    -----------
    BoostHttpServer-4bc36235fb60a0db20ff4b722ff1136acde4651d/docs/jquery.js
    ...

[4] Personal preference, adding a newline to the *BuildRequires* section, 
    separating the `*-devel` from the other build dependencies, for example:

    ...

    BuildRequires:  doxygen
    BuildRequires:  gcc-c++
    BuildRequires:  make
    BuildRequires:  sed

    BuildRequires:  boost-devel
    BuildRequires:  CTML-devel

    ...
===

Comment 3 Christopher Crouse 2022-01-08 11:27:03 UTC
Koji Rawhide Mock Build URL: https://koji.fedoraproject.org/koji/taskinfo?taskID=80945723

Only issue I could find:

- Package name should be updated, it does not comply with the addon package format, `%{parent}-%{child}`. (https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/#_addon_packages)

Otherwise, looks good:

+ Valid license (Boost)
+ License is specified correctly
+ Builds & installs correctly
+ No segfaults when running
+ fedora-review found no issues
+ rpmlint only false positives


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]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[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", "*No copyright* Boost Software License
     1.0", "Boost Software License", "Boost Software License 1.0", "MIT
     License". 616 files have unknown license.
[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).
[!]: Package is named according to the Package Naming Guidelines.
     Note: Does not comply with the addon package format, %{parent}-%{child}.
     https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/#_addon_packages
[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 20480 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: 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]: 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

===== 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).
[x]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in
     BoostHttpServer-devel
[x]: Package functions as described.
[-]: Latest version is packaged.
     Reviewer's note: No official release from upstream.
[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.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[-]: 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]: 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: There are rpmlint messages (see attachment).
[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.


Rpmlint
-------
Cannot parse rpmlint output:


Rpmlint (debuginfo)
-------------------
Cannot parse rpmlint output:


Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:


Rpmlint (manually)
----------------------------

BoostHttpServer-0-1.20210801git4bc3623.fc36.src.rpm 
=============== rpmlint session starts ===============
rpmlint: 2.2.0

BoostHttpServer.spec: W: patch-not-applied Patch0: BoostHttpServer-ctml.patch

===== 1 packages and 0 specfiles checked; 0 errors, 1 warnings, 0 badness =====



BoostHttpServer-0-1.20210801git4bc3623.fc36.x86_64.rpm 
===============================================================================
rpmlint: 2.2.0

BoostHttpServer.x86_64: W: no-manual-page-for-binary http_server_dynamic
BoostHttpServer.x86_64: W: no-manual-page-for-binary http_server_static

===== 1 packages and 0 specfiles checked; 0 errors, 2 warnings, 0 badness =====



BoostHttpServer-debuginfo-0-1.20210801git4bc3623.fc36.x86_64.rpm
===============================================================================
rpmlint: 2.2.0

BoostHttpServer-debuginfo.x86_64: W: unstripped-binary-or-object /usr/lib/debug/.dwz/BoostHttpServer-0-1.20210801git4bc3623.fc36.x86_64
BoostHttpServer-debuginfo.x86_64: W: unstripped-binary-or-object /usr/lib/debug/usr/bin/http_server_dynamic-0-1.20210801git4bc3623.fc36.x86_64.debug
BoostHttpServer-debuginfo.x86_64: W: unstripped-binary-or-object /usr/lib/debug/usr/bin/http_server_static-0-1.20210801git4bc3623.fc36.x86_64.debug
BoostHttpServer-debuginfo.x86_64: E: statically-linked-binary /usr/lib/debug/.dwz/BoostHttpServer-0-1.20210801git4bc3623.fc36.x86_64
BoostHttpServer-debuginfo.x86_64: E: shared-library-without-dependency-information /usr/lib/debug/usr/bin/http_server_dynamic-0-1.20210801git4bc3623.fc36.x86_64.debug
BoostHttpServer-debuginfo.x86_64: E: shared-library-without-dependency-information /usr/lib/debug/usr/bin/http_server_static-0-1.20210801git4bc3623.fc36.x86_64.debug
BoostHttpServer-debuginfo.x86_64: W: no-documentation
BoostHttpServer-debuginfo.x86_64: E: missing-PT_GNU_STACK-section /usr/lib/debug/.dwz/BoostHttpServer-0-1.20210801git4bc3623.fc36.x86_64
BoostHttpServer-debuginfo.x86_64: W: hidden-file-or-dir /usr/lib/debug/.dwz
BoostHttpServer-debuginfo.x86_64: W: hidden-file-or-dir /usr/lib/debug/.dwz
BoostHttpServer-debuginfo.x86_64: W: dangling-relative-symlink /usr/lib/debug/.build-id/01/58c46f94d0953f6b911406669ca09cae171b17 ../../../.build-id/01/58c46f94d0953f6b911406669ca09cae171b17
BoostHttpServer-debuginfo.x86_64: W: dangling-relative-symlink /usr/lib/debug/.build-id/9e/07d1f90ccedc294ed17fdd8770ad5bb28987a9 ../../../.build-id/9e/07d1f90ccedc294ed17fdd8770ad5bb28987a9

===== 1 packages and 0 specfiles checked; 4 errors, 8 warnings, 4 badness =====



BoostHttpServer-debugsource-0-1.20210801git4bc3623.fc36.x86_64.rpm
===============================================================================
rpmlint: 2.2.0

BoostHttpServer-debugsource.x86_64: W: no-documentation

===== 1 packages and 0 specfiles checked; 0 errors, 1 warnings, 0 badness =====



BoostHttpServer-devel-0-1.20210801git4bc3623.fc36.x86_64.rpm
===============================================================================
rpmlint: 2.2.0

===== 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 badness =====



BoostHttpServer-doc-0-1.20210801git4bc3623.fc36.noarch.rpm
===============================================================================
rpmlint: 2.2.0

===== 1 packages and 0 specfiles checked; 0 errors, 0 warnings, 0 badness =====


Source checksums
----------------
https://github.com/SRombauts/BoostHttpServer/archive/4bc36235fb60a0db20ff4b722ff1136acde4651d/BoostHttpServer-4bc36235fb60a0db20ff4b722ff1136acde4651d.tar.gz :
  CHECKSUM(SHA256) this package     : 655f92154a10c416b8f94673fc3e73364ba36c523ea29d6dca8f659b77a8f3c0
  CHECKSUM(SHA256) upstream package : 655f92154a10c416b8f94673fc3e73364ba36c523ea29d6dca8f659b77a8f3c0


Requires
--------
BoostHttpServer (rpmlib, GLIBC filtered):
    libboost_filesystem.so.1.76.0()(64bit)
    libboost_thread.so.1.76.0()(64bit)
    libc.so.6()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libgcc_s.so.1(GCC_3.3.1)(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.11)(64bit)
    libstdc++.so.6(CXXABI_1.3.13)(64bit)
    libstdc++.so.6(CXXABI_1.3.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.5)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    rtld(GNU_HASH)

BoostHttpServer-devel (rpmlib, GLIBC filtered):

BoostHttpServer-doc (rpmlib, GLIBC filtered):

BoostHttpServer-debuginfo (rpmlib, GLIBC filtered):

BoostHttpServer-debugsource (rpmlib, GLIBC filtered):



Provides
--------
BoostHttpServer:
    BoostHttpServer
    BoostHttpServer(x86-64)

BoostHttpServer-devel:
    BoostHttpServer-devel
    BoostHttpServer-devel(x86-64)
    BoostHttpServer-static

BoostHttpServer-doc:
    BoostHttpServer-doc

BoostHttpServer-debuginfo:
    BoostHttpServer-debuginfo
    BoostHttpServer-debuginfo(x86-64)
    debuginfo(build-id)

BoostHttpServer-debugsource:
    BoostHttpServer-debugsource
    BoostHttpServer-debugsource(x86-64)



Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/bin/fedora-review -b 1988840
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, C/C++, Generic
Disabled plugins: PHP, SugarActivity, Java, Python, Haskell, R, Ocaml, Perl, fonts
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 4 Davide Cavalca 2022-01-09 05:02:52 UTC
Thanks!

Spec URL: https://dcavalca.fedorapeople.org/review/boost-http-server/boost-http-server.spec
SRPM URL: https://dcavalca.fedorapeople.org/review/boost-http-server/boost-http-server-0-1.20220109gitcd5245f.fc36.src.rpm

Changelog:
- Rename to boost-http-server
- Update to commit cd5245f and drop patch
- Remove bundled copy of jquery

Comment 5 Christopher Crouse 2022-01-09 09:19:11 UTC
Hi Davide,

Thank you for for the updates, looks good:

===

+ Valid package name
+ Valid package version
+ Valid license (Boost)
+ License is specified correctly
+ Builds latest version & installs correctly
+ No segfaults when running
+ fedora-review found no issues (except missing dist tag, but spec is making use of rpmautospec)
+ rpmlint only false positives

===

Please do make note of the following upcoming change: https://pagure.io/releng/issue/10482

I would approve package, however I'm not a package maintainer (yet), hopefully soon!

Comment 6 Christopher Crouse 2022-01-13 19:34:06 UTC
Hi Davide,

Package approved!

Comment 7 Davide Cavalca 2022-01-15 02:49:28 UTC
Thanks!

$ fedpkg request-repo boost-http-server 1988840
https://pagure.io/releng/fedora-scm-requests/issue/40975

Comment 8 Jens Petersen 2022-01-16 05:53:51 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/boost-http-server

Comment 9 Fedora Update System 2022-01-16 06:12:04 UTC
FEDORA-2022-3f2f90c74e has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-3f2f90c74e

Comment 10 Fedora Update System 2022-01-16 06:15:24 UTC
FEDORA-2022-3f2f90c74e has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2022-01-17 00:53:19 UTC
FEDORA-2022-e0caf27c3c has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-e0caf27c3c

Comment 12 Fedora Update System 2022-01-17 02:01:13 UTC
FEDORA-2022-e0caf27c3c has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2022-e0caf27c3c \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-e0caf27c3c

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

Comment 13 Fedora Update System 2022-01-25 01:11:12 UTC
FEDORA-2022-e0caf27c3c has been pushed to the Fedora 35 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.