[Bug 1773718] Review Request: golang-github-haproxytech-config-parser - HAProxy configuration parser

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

 



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



--- Comment #6 from Brandon Perkins <bperkins@xxxxxxxxxx> ---
Trying to get ahead of any issues, I went through the fedora-review report for
all five packages as they exist now and provided comments where needed:

> ===== MUST items =====
> 
> Generic:
> [ ]: Package is licensed with an open-source compatible license and meets
>      other legal requirements as defined in the legal section of Packaging
>      Guidelines.

$ rpm -q --queryformat="%{NAME}: %{LICENSE}\n"
RPMS/golang-github-haproxytech-config-parser-devel-1.2.0-1.fc31.noarch.rpm
SRPMS/golang-github-haproxytech-config-parser-1.2.0-1.fc31.src.rpm
golang-github-haproxytech-config-parser-devel: ASL 2.0
golang-github-haproxytech-config-parser: ASL 2.0


> [ ]: License field in the package spec file matches the actual license.
>      Note: There is no build directory. Running licensecheck on vanilla
>      upstream sources. Licenses found: "Unknown or generated". 1 files have
>      unknown license. Detailed output of licensecheck in
>      ~/git/haproxytech/1773718-golang-github-haproxytech-
>      config-parser/licensecheck.txt


Unknown or generated
--------------------
~/git/haproxytech/1773718-golang-github-haproxytech-config-parser/upstream-unpacked/Source0/config-parser-1.2.0.tar.gz

$ rpm -qpL
RPMS/golang-github-haproxytech-config-parser-devel-1.2.0-1.fc31.noarch.rpm 
/usr/share/licenses/golang-github-haproxytech-config-parser-devel/LICENSE
$ tar -tf
1773718-golang-github-haproxytech-config-parser/upstream-unpacked/Source0/config-parser-1.2.0.tar.gz
| grep /LICENSE$
config-parser-1.2.0/LICENSE
$ tar -xvzf
1773718-golang-github-haproxytech-config-parser/upstream-unpacked/Source0/config-parser-1.2.0.tar.gz
config-parser-1.2.0/LICENSE
config-parser-1.2.0/LICENSE
$ rpm -qp --queryformat="%{NAME}: %{LICENSE}\n"
RPMS/golang-github-haproxytech-config-parser-devel-1.2.0-1.fc31.noarch.rpm
golang-github-haproxytech-config-parser-devel: ASL 2.0
$ licensecheck config-parser-1.2.0/LICENSE
config-parser-1.2.0/LICENSE: *No copyright* Apache License (v2.0)
$ grep '^# Upstream license specification: '
1773718-golang-github-haproxytech-config-parser/srpm-unpacked/golang-github-haproxytech-config-parser.spec 
# Upstream license specification: Apache-2.0


> [ ]: Package does not own files or directories owned by other packages.
>      Note: Dirs in package are owned also by:

<snip/>

This is an issue across all 'golang-github' packages.  In reality, the
'/usr/share/gocode/src/github.com' directory should only be owned by the
'golang' package itself:

$ rpm -qf /usr/share/gocode/src/github.com
golang-1.13.6-1.fc31.x86_64


> [ ]: %build honors applicable compiler flags or justifies otherwise.

Not Applicable as there is no %build section:

$ grep -A7 ^%build SPECS/golang-github-haproxytech-config-parser.spec


> [ ]: Package contains no bundled libraries without FPC exception.

None:

$ rpm -qp --provides
RPMS/golang-github-haproxytech-config-parser-devel-1.2.0-1.fc31.noarch.rpm |
grep bundled


> [ ]: Changelog in prescribed format.

Should all be fixed now.

> [ ]: Sources contain only permissible code or content.

Yes.

> [ ]: Package contains desktop file if it is a GUI application.

Not Applicable.

> [ ]: Development files must be in a -devel package

RPMS/golang-github-haproxytech-config-parser-devel-1.2.0-1.fc31.noarch.rpm


> [ ]: Package uses nothing in %doc for runtime.

None:

golang-github-haproxytech-config-parser-devel:
/usr/share/doc/golang-github-haproxytech-config-parser-devel/README.md
/usr/share/gocode/src/github.com/haproxytech/config-parser/README.md



> [ ]: Package consistently uses macros (instead of hard-coded directory
>      names).

Yes.

> [ ]: Package is named according to the Package Naming Guidelines.

Yes.

> [ ]: Package does not generate any conflict.

None.

> [ ]: Package obeys FHS, except libexecdir and /usr/target.

Yes.

> [ ]: If the package is a rename of another package, proper Obsoletes and
>      Provides are present.

Not Applicable.

> [ ]: Requires correct, justified where necessary.

Yes:

golang-github-haproxytech-config-parser-devel:
go-filesystem



> [ ]: Spec file is legible and written in American English.

Yes.

> [ ]: Package contains systemd file(s) if in need.

Not Applicable.

> [ ]: Package is not known to require an ExcludeArch tag.

ExcludeArch tag not required.

> [ ]: 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.

Not needed as 10240 bytes is less than 1MB.

> [ ]: Package complies to the Packaging Guidelines

Yes.

> [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 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
> 
> ===== 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.

Good.

> [ ]: Final provides and requires are sane (see attachments).

Good.

> [ ]: Package functions as described.

Yes.

> [ ]: Latest version is packaged.

Yes.

> [ ]: Package does not include license text files separate from upstream.

No additional license text files.

> [ ]: Sources are verified with gpgverify first in %prep if upstream
>      publishes signatures.
>      Note: gpgverify is not used.

Not available.

> [ ]: Description and summary sections in the package spec file contains
>      translations for supported Non-English languages, if available.

Not available.

> [ ]: %check is present and all tests pass.

Yes:

$ grep -B1 -A3 -E "(^%check| check$)"
SPECS/golang-github-haproxytech-config-parser.spec
%bcond_without check

# https://github.com/haproxytech/config-parser
%global goipath         github.com/haproxytech/config-parser
--
%if %{with check}
%check
%gocheck
%endif



> [ ]: Packages should try to preserve timestamps of original installed
>      files.

Good:

$ date ; LANG=C.utf8 mock -q -r fedora-rawhide-x86_64 --no-bootstrap-chroot
--no-cleanup-after --no-clean --enable-network --chroot -- "ls -ld \$(rpm -qL
golang-github-haproxytech-config-parser-devel)"
Wed 04 Mar 2020 02:50:24 PM EST
-rw-r--r--. 1 root root 10173 Dec 17 04:34
/usr/share/licenses/golang-github-haproxytech-config-parser-devel/LICENSE


> [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]: Package should compile and build into binary rpms on all supported
>      architectures.
> [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]: Spec file according to URL is the same as in SRPM.
> 
> 
> Rpmlint
> -------
> Checking: golang-github-haproxytech-config-parser-devel-1.2.0-1.fc33.noarch.rpm
>           golang-github-haproxytech-config-parser-1.2.0-1.fc33.src.rpm
> golang-github-haproxytech-config-parser-devel.noarch: W: hidden-file-or-dir /usr/share/gocode/src/github.com/haproxytech/config-parser/.goipath

Expected.

> golang-github-haproxytech-config-parser.src: W: no-%build-section

%build section not needed for '-devel' packages.

> 2 packages and 0 specfiles checked; 0 errors, 2 warnings.
> 
> 
> 
> 
> Rpmlint (installed packages)
> ----------------------------
> golang-github-haproxytech-config-parser-devel.noarch: W: invalid-url URL: https://github.com/haproxytech/config-parser <urlopen error [Errno -2] Name or service not known>
> golang-github-haproxytech-config-parser-devel.noarch: W: hidden-file-or-dir /usr/share/gocode/src/github.com/haproxytech/config-parser/.goipath
> 1 packages and 0 specfiles checked; 0 errors, 2 warnings.
>

$ sudo mkdir -p /var/lib/mock/fedora-rawhide-x86_64/root/root/.config
$ echo "addFilter(r\"hidden-file-or-dir
/usr/share/gocode/src/github\.com/.*/.*/.goipath$\")" > /tmp/rpmlint.config
$ sudo cp /tmp/rpmlint.config
/var/lib/mock/fedora-rawhide-x86_64/root/root/.config/rpmlint
$ LANG=C.utf8 mock -q -r fedora-rawhide-x86_64 --no-bootstrap-chroot
--no-cleanup-after --no-clean --enable-network --chroot -- rpmlint -f
/root/.config/rpmlint golang-github-haproxytech-config-parser-devel
1 packages and 0 specfiles checked; 0 errors, 0 warnings.


> 
> 
> Source checksums
> ----------------
> https://github.com/haproxytech/config-parser/archive/v1.2.0/config-parser-1.2.0.tar.gz :
>   CHECKSUM(SHA256) this package     : 85dfc91e8a5666a7ebe124ff63a524c03030f42e14fae1edd4bde59b4fa06f21
>   CHECKSUM(SHA256) upstream package : 85dfc91e8a5666a7ebe124ff63a524c03030f42e14fae1edd4bde59b4fa06f21
> 
> 
> Requires
> --------
> golang-github-haproxytech-config-parser-devel (rpmlib, GLIBC filtered):
>     go-filesystem
> 
> 
> 
> Provides
> --------
> golang-github-haproxytech-config-parser-devel:
>     golang(github.com/haproxytech/config-parser)
>     golang(github.com/haproxytech/config-parser/common)
>     golang(github.com/haproxytech/config-parser/errors)
>     golang(github.com/haproxytech/config-parser/params)
>     golang(github.com/haproxytech/config-parser/parsers)
>     golang(github.com/haproxytech/config-parser/parsers/extra)
>     golang(github.com/haproxytech/config-parser/parsers/filters)
>     golang(github.com/haproxytech/config-parser/parsers/http)
>     golang(github.com/haproxytech/config-parser/parsers/http/actions)
>     golang(github.com/haproxytech/config-parser/parsers/simple)
>     golang(github.com/haproxytech/config-parser/parsers/tcp)
>     golang(github.com/haproxytech/config-parser/parsers/tcp/actions)
>     golang(github.com/haproxytech/config-parser/tests)
>     golang(github.com/haproxytech/config-parser/types)
>     golang-github-haproxytech-config-parser-devel
>     golang-ipath(github.com/haproxytech/config-parser)
> 
> 
> 
> Generated by fedora-review 0.7.5 (5fa5b7e) last change: 2020-02-16
> Command line :/usr/bin/fedora-review -b 1773718 -L ~/git/haproxytech/RPMS -v
> Buildroot used: fedora-rawhide-x86_64
> Active plugins: Generic, Shell-api
> Disabled plugins: PHP, Perl, R, fonts, C/C++, Haskell, SugarActivity, Java, Python, Ocaml
> Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH
> 
> Built with local dependencies:
>     ~/git/haproxytech/RPMS/golang-github-gehirninc-crypt-devel-0-0.2.20200214git6c0105a.fc31.noarch.rpm
>     ~/git/haproxytech/RPMS/golang-github-haproxytech-client-native-devel-1.2.6-2.fc31.noarch.rpm
>     ~/git/haproxytech/RPMS/golang-github-haproxytech-config-parser-devel-1.2.0-1.fc31.noarch.rpm
>     ~/git/haproxytech/RPMS/golang-github-haproxytech-dataplaneapi-1.2.4-5.fc31.x86_64.rpm
>     ~/git/haproxytech/RPMS/golang-github-haproxytech-dataplaneapi-debuginfo-1.2.4-5.fc31.x86_64.rpm
>     ~/git/haproxytech/RPMS/golang-github-haproxytech-dataplaneapi-debugsource-1.2.4-5.fc31.x86_64.rpm
>     ~/git/haproxytech/RPMS/golang-github-haproxytech-dataplaneapi-devel-1.2.4-5.fc31.noarch.rpm
>     ~/git/haproxytech/RPMS/golang-github-haproxytech-models-devel-1.2.4-2.fc31.noarch.rpm

-- 
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
_______________________________________________
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




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

  Powered by Linux