Bug 1749094 - Review Request: polybar - A fast and easy-to-use status bar for tiling WM
Summary: Review Request: polybar - A fast and easy-to-use status bar for tiling WM
Keywords:
Status: CLOSED DUPLICATE of bug 1785874
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elliott Sales de Andrade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-04 21:09 UTC by Franco Comida
Modified: 2019-12-27 21:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-27 21:23:36 UTC
Type: ---
Embargoed:
quantum.analyst: fedora-review?


Attachments (Terms of Use)

Description Franco Comida 2019-09-04 21:09:26 UTC
Spec URL: https://copr-be.cloud.fedoraproject.org/results/fcomida/polybar/fedora-30-x86_64/01028301-polybar/polybar.spec
RPM URL: https://copr-be.cloud.fedoraproject.org/results/fcomida/polybar/fedora-30-x86_64/01028301-polybar/polybar-3.4.0-1.fc30.src.rpm
Description: Polybar aims to help users build beautiful and highly customizable status bars for their desktop environment, without the need of having a black belt in shell scripting.
Fedora Account System Username: fcomida

Comment 1 Elliott Sales de Andrade 2019-09-05 04:53:47 UTC
- Summary should not start with "A".
- License is MIT and BSD. Also, the file should be tagged as %license.
- Group is not used in Fedora.
- Why are URL and Source pointing to different GitHub owners?
- Source URL can be written as
  Source0: https://github.com/polybar/polybar/archive/%{version}/%{name}-%{version}.tar.gz
  for better portability. (Also, can replace the beginning with %{url} if those
  are changed to match.)
- Why do you need python2? This is going away soon and is deprecated. Can it
  run with python3?
- You should pass . as directory to the %cmake macro.
- Use %make_build instead of make %{?_smp_mflags}
- %{_datadir}/bash-completion/ and %{_datadir}/bash-completion/completions are
  owned by filesystem, so you don't need to own them.
- There's a bundled copy of jsoncpp. If possible, please delete it in %prep to
  ensure that you aren't accidentally building against it (you aren't right
  now, but still.)

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

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


Issues:
=======
- Package must not depend on deprecated() packages.
  Note: python27 is deprecated, you must not depend on it.
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/deprecating-packages/
- Sources used to build the package match the upstream source, as provided
  in the spec URL.
  Note: Upstream MD5sum check error, diff is in 1749094-polybar/diff.txt
  See: https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/


===== 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]: 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.
[!]: 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.
[!]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "Expat License", "BSD 2-clause
     "Simplified" License", "*No copyright* Expat License". 542 files have
     unknown license. Detailed output of licensecheck in
     1749094-polybar/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[!]: Package does not own files or directories owned by other packages.
     Note: Dirs in package are owned also by:
     /usr/share/bash-completion(filesystem),
     /usr/share/bash-completion/completions(filesystem)
[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.
[?]: 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.
[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 1 files.
[!]: 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]: 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 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]: 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.
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: 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]: Uses parallel make %{?_smp_mflags} macro.
[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:
[!]: Spec file according to URL is the same as in SRPM.
     Note: Bad spec filename:
     /home/elliott/rpmbuild/review/1749094-polybar/srpm-
     unpacked/polybar.spec
     See: (this test has no URL)
[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.


Rpmlint
-------
Checking: polybar-3.4.0-1.fc32.x86_64.rpm
          polybar-debuginfo-3.4.0-1.fc32.x86_64.rpm
          polybar-debugsource-3.4.0-1.fc32.x86_64.rpm
          polybar-3.4.0-1.fc32.src.rpm
polybar.x86_64: W: no-manual-page-for-binary polybar
polybar.x86_64: W: no-manual-page-for-binary polybar-msg
4 packages and 0 specfiles checked; 0 errors, 2 warnings.




Rpmlint (debuginfo)
-------------------
Checking: polybar-debuginfo-3.4.0-1.fc32.x86_64.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.





Rpmlint (installed packages)
----------------------------
polybar.x86_64: W: no-manual-page-for-binary polybar
polybar.x86_64: W: no-manual-page-for-binary polybar-msg
3 packages and 0 specfiles checked; 0 errors, 2 warnings.



Source checksums
----------------
https://github.com/polybar/polybar/archive/3.4.0.tar.gz :
  CHECKSUM(SHA256) this package     : 6cecfd875b3821321f2c88621ee76aaeec9a28224a6e2d87284388be219a0310
  CHECKSUM(SHA256) upstream package : b8bd84b5154c4723181ec1ef74c0f278583fd80c81ca0aa9bcbce4c537f9ec45
diff -r also reports differences


Requires
--------
polybar (rpmlib, GLIBC filtered):
    libasound.so.2()(64bit)
    libasound.so.2(ALSA_0.9)(64bit)
    libc.so.6()(64bit)
    libcairo.so.2()(64bit)
    libcurl.so.4()(64bit)
    libfontconfig.so.1()(64bit)
    libfreetype.so.6()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libiw.so.29()(64bit)
    libjsoncpp.so.21()(64bit)
    libm.so.6()(64bit)
    libmpdclient.so.2()(64bit)
    libmpdclient.so.2(libmpdclient2)(64bit)
    libpthread.so.0()(64bit)
    libpulse.so.0()(64bit)
    libpulse.so.0(PULSE_0)(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.2)(64bit)
    libstdc++.so.6(CXXABI_1.3.5)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    libxcb-composite.so.0()(64bit)
    libxcb-cursor.so.0()(64bit)
    libxcb-ewmh.so.2()(64bit)
    libxcb-icccm.so.4()(64bit)
    libxcb-randr.so.0()(64bit)
    libxcb-xkb.so.1()(64bit)
    libxcb-xrm.so.0()(64bit)
    libxcb.so.1()(64bit)
    rtld(GNU_HASH)

polybar-debuginfo (rpmlib, GLIBC filtered):

polybar-debugsource (rpmlib, GLIBC filtered):



Provides
--------
polybar:
    polybar
    polybar(x86-64)

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

polybar-debugsource:
    polybar-debugsource
    polybar-debugsource(x86-64)



Generated by fedora-review 0.7.2 (65d36bb) last change: 2019-04-09
Command line :/usr/bin/fedora-review -b 1749094 -m fedora-rawhide-x86_64
Buildroot used: fedora-rawhide-x86_64
Active plugins: C/C++, Generic, Shell-api
Disabled plugins: Perl, Ocaml, R, Python, fonts, SugarActivity, Java, PHP, Haskell
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 2 Franco Comida 2019-09-05 11:07:27 UTC
Thanks for helping me.
I think I addressed all issues, I patched "lib/xpp/CMakeLists.txt" for requiring Python 3 and it does now build with it, fixed urls, summary and description. Still need to delete bundled jsoncpp.

You can find all this changes on my COPR as before.

Comment 3 Elliott Sales de Andrade 2019-09-05 20:51:24 UTC
Please post direct links; the ones in the original post are 404.

Comment 6 Elliott Sales de Andrade 2019-09-07 03:17:30 UTC
- Add a comment explaining the License breakdown.
  https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/#_multiple_licensing_scenarios
- Add a comment explaining the reason for the patch (and upstream status if applicable.)
  https://docs.fedoraproject.org/en-US/packaging-guidelines/#_all_patches_should_have_an_upstream_bug_link_or_comment
- Don't gzip man pages manually; that'll be done for you. Also, list it as %{name}.1*
  https://docs.fedoraproject.org/en-US/packaging-guidelines/#_manpages
- Also, preserve timestamps when copying the manpage (cp -p or install -p):
  https://docs.fedoraproject.org/en-US/packaging-guidelines/#_timestamps
- %dir %{_datadir}/zsh/ and %dir %{_datadir}/zsh/site-functions must be owned
  by this package; they are not owned by filesystem.
- You seem to have dropped %dir %{_datadir}/doc/%{name} which still needs to be
  owned.
- The sources in the upstream tarball and the one used to make the srpm do not
  match; why is that?

Also, I meant to ask before; there seems to be a tests directory, but they
aren't run in %check. Can this not be added?


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

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


Issues:
=======
- Sources used to build the package match the upstream source, as provided
  in the spec URL.
  Note: Upstream MD5sum check error, diff is in 1749094-polybar/diff.txt
  See: https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/


===== 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]: 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", "Expat License", "BSD 2-clause
     "Simplified" License", "*No copyright* Expat License". 542 files have
     unknown license. Detailed output of licensecheck in
     1749094-polybar/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[!]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[!]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/doc/polybar
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/zsh,
     /usr/share/doc/polybar, /usr/share/zsh/site-functions
[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.
[?]: 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.
[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 1 files.
[!]: 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 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]: 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 polybar
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[!]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[-]: 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: 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.


Rpmlint
-------
Checking: polybar-3.4.0-1.fc32.x86_64.rpm
          polybar-debuginfo-3.4.0-1.fc32.x86_64.rpm
          polybar-debugsource-3.4.0-1.fc32.x86_64.rpm
          polybar-3.4.0-1.fc32.src.rpm
polybar.x86_64: W: no-manual-page-for-binary polybar-msg
4 packages and 0 specfiles checked; 0 errors, 1 warnings.




Rpmlint (debuginfo)
-------------------
Checking: polybar-debuginfo-3.4.0-1.fc32.x86_64.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.





Rpmlint (installed packages)
----------------------------
polybar.x86_64: W: no-manual-page-for-binary polybar-msg
3 packages and 0 specfiles checked; 0 errors, 1 warnings.



Source checksums
----------------
https://github.com/polybar/polybar/archive/3.4.0/polybar-3.4.0.tar.gz :
  CHECKSUM(SHA256) this package     : 6cecfd875b3821321f2c88621ee76aaeec9a28224a6e2d87284388be219a0310
  CHECKSUM(SHA256) upstream package : b8bd84b5154c4723181ec1ef74c0f278583fd80c81ca0aa9bcbce4c537f9ec45
diff -r also reports differences


Requires
--------
polybar (rpmlib, GLIBC filtered):
    libasound.so.2()(64bit)
    libasound.so.2(ALSA_0.9)(64bit)
    libc.so.6()(64bit)
    libcairo.so.2()(64bit)
    libcurl.so.4()(64bit)
    libfontconfig.so.1()(64bit)
    libfreetype.so.6()(64bit)
    libgcc_s.so.1()(64bit)
    libgcc_s.so.1(GCC_3.0)(64bit)
    libiw.so.29()(64bit)
    libjsoncpp.so.21()(64bit)
    libm.so.6()(64bit)
    libmpdclient.so.2()(64bit)
    libmpdclient.so.2(libmpdclient2)(64bit)
    libpthread.so.0()(64bit)
    libpulse.so.0()(64bit)
    libpulse.so.0(PULSE_0)(64bit)
    libstdc++.so.6()(64bit)
    libstdc++.so.6(CXXABI_1.3)(64bit)
    libstdc++.so.6(CXXABI_1.3.2)(64bit)
    libstdc++.so.6(CXXABI_1.3.5)(64bit)
    libstdc++.so.6(CXXABI_1.3.9)(64bit)
    libxcb-composite.so.0()(64bit)
    libxcb-cursor.so.0()(64bit)
    libxcb-ewmh.so.2()(64bit)
    libxcb-icccm.so.4()(64bit)
    libxcb-randr.so.0()(64bit)
    libxcb-xkb.so.1()(64bit)
    libxcb-xrm.so.0()(64bit)
    libxcb.so.1()(64bit)
    rtld(GNU_HASH)

polybar-debuginfo (rpmlib, GLIBC filtered):

polybar-debugsource (rpmlib, GLIBC filtered):



Provides
--------
polybar:
    polybar
    polybar(x86-64)

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

polybar-debugsource:
    polybar-debugsource
    polybar-debugsource(x86-64)



Generated by fedora-review 0.7.2 (65d36bb) last change: 2019-04-09
Command line :/usr/bin/fedora-review -b 1749094 -m fedora-rawhide-x86_64
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, Generic, C/C++
Disabled plugins: fonts, SugarActivity, Java, Haskell, Ocaml, Python, PHP, R, Perl
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 7 Artem 2019-12-21 18:33:48 UTC
Seems like this review got stuck. User often ask about this package so:

1. Thanks a lot Franco Comida for porting it to Python 3.
2. May i open new one RR fix and help with packaging and after package will be approved i'll add Franco Comida with full permissions? Just wan't to help a little bit and push this to repos. That's all.

Comment 8 Artem 2019-12-27 21:23:36 UTC
Policy for stalled reviews
https://fedoraproject.org/wiki/Policy_for_stalled_package_reviews#Submitter_not_responding

Packaged https://src.fedoraproject.org/rpms/polybar

@fcomida, added you with full permission.

@qulogic, thank you for help and review.

*** This bug has been marked as a duplicate of bug 1785874 ***


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