Bug 1935379 - Review Request: openconnect-gateway - Connect to a VPN without routing everything through the VPN
Summary: Review Request: openconnect-gateway - Connect to a VPN without routing everyt...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Robert Scheck
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-04 18:41 UTC by Raphael Groner
Modified: 2022-07-15 02:06 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-07-15 01:47:26 UTC
Type: ---
Embargoed:
redhat: fedora-review+


Attachments (Terms of Use)
Diff between spec files (1.69 KB, patch)
2022-06-27 17:22 UTC, Robert Scheck
no flags Details | Diff

Description Raphael Groner 2021-03-04 18:41:56 UTC
Spec URL: https://raphgro.fedorapeople.org/review/net/oc/openconnect-gateway.spec
SRPM URL: https://raphgro.fedorapeople.org/review/net/oc/openconnect-gateway-0-0.1.627468bgit20170903.el7.src.rpm
Description: Connect to a VPN without routing everything through the VPN

Fedora Account System Username: raphgro

Comment 1 Robert-André Mauchin 🐧 2021-03-15 17:39:05 UTC
 - Why don't youu define the full commit like this:

%global commit0 627468b537befb16c0d04e426450b2fe7eb85c9f
%global shortcommit0 %(c=%{commit}; echo ${c:0:7})
%global date0   20170903

 - This is the opposite: date first, then short commit:

Release:        0.1.%{date0}git%{shortcommit0}%{?dist}

[…]

%changelog
* Thu Mar 04 2021 Raphael Groner <raphgro> - 0-0.1.20170903git627468b
- Initial package

 - Use then

%prep
%autosetup -n %{name}-%{commit0}

 - Use a better name for the archive:

Source0:        %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz

 - date should be the date you took the snapshot not the date of the commit

Comment 2 Raphael Groner 2021-03-16 16:19:53 UTC
Thanks for your interest in this review and the proposed hints done due to my obvious laziness. 
But I fail to see why those trivial fixes should prevent an official approval, changes easily doable while importing, without any blocker mentioned.

Comment 3 Robert-André Mauchin 🐧 2021-03-16 16:29:16 UTC
I haven't run fedora-review yet, please update the SPEC and I'll continue the review.

Comment 4 Raphael Groner 2021-06-09 15:10:18 UTC
> date should be the date you took the snapshot not the date of the commit

In another review I was told to use date of commit is better. But agreed, a snapshot from 2017 obviously is very old.

Comment 6 Raphael Groner 2022-03-09 08:49:51 UTC
(In reply to Robert-André Mauchin 🐧 from comment #3)
> I haven't run fedora-review yet, please update the SPEC and I'll continue
> the review.

Are you still interested in this review and can continue?

Comment 7 Robert Scheck 2022-05-12 22:47:37 UTC
I guess Robert-André is currently busy (or not interested), so I'm stepping in here.



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

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



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

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: "MIT License", "Unknown or generated". 7 files have unknown
     license. 

MIT License
-----------
openconnect-gateway-627468b537befb16c0d04e426450b2fe7eb85c9f/LICENSE

Unknown or generated
--------------------
openconnect-gateway-627468b537befb16c0d04e426450b2fe7eb85c9f/Vagrantfile
openconnect-gateway-627468b537befb16c0d04e426450b2fe7eb85c9f/connect.sh
openconnect-gateway-627468b537befb16c0d04e426450b2fe7eb85c9f/csd-wrapper.sh
openconnect-gateway-627468b537befb16c0d04e426450b2fe7eb85c9f/get-os.sh
openconnect-gateway-627468b537befb16c0d04e426450b2fe7eb85c9f/networking-config.sh
openconnect-gateway-627468b537befb16c0d04e426450b2fe7eb85c9f/readme.md
openconnect-gateway-627468b537befb16c0d04e426450b2fe7eb85c9f/vpn.sh

[-]: %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.
[!]: 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 10240 bytes in 2 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 below).
[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

===== 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.
[-]: Final provides and requires are sane (see below).
[!]: 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.
[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]: 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 below).
[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
-------
openconnect-gateway.x86_64: E: non-executable-script /usr/libexec/openconnect-gateway/get-os.sh 644 /bin/bash
openconnect-gateway.x86_64: W: no-manual-page-for-binary openconnect-gateway
openconnect-gateway.x86_64: E: no-binary
openconnect-gateway.x86_64: W: dangling-symlink /usr/bin/openconnect-gateway /usr/libexec/%{_name}/connect.sh


Rpmlint (installed packages)
----------------------------
openconnect-gateway.x86_64: E: non-executable-script /usr/libexec/openconnect-gateway/get-os.sh 644 /bin/bash
openconnect-gateway.x86_64: W: no-manual-page-for-binary openconnect-gateway
openconnect-gateway.x86_64: E: no-binary
openconnect-gateway.x86_64: W: dangling-symlink /usr/bin/openconnect-gateway /usr/libexec/%{_name}/connect.sh


Source checksums
----------------
https://github.com/millermatt/openconnect-gateway/archive/627468b537befb16c0d04e426450b2fe7eb85c9f/openconnect-gateway-627468b.tar.gz :
  CHECKSUM(SHA256) this package     : 3b45890fb3e3c2a1bdebb089d42897a9fd6d2ac18ceedafe77c1b1327244bb1f
  CHECKSUM(SHA256) upstream package : 3b45890fb3e3c2a1bdebb089d42897a9fd6d2ac18ceedafe77c1b1327244bb1f


Requires
--------
openconnect-gateway (rpmlib, GLIBC filtered):
    /usr/bin/bash
    /usr/bin/sh
    bash
    ca-certificates
    openconnect
    wget



Provides
--------
openconnect-gateway:
    openconnect-gateway
    openconnect-gateway(x86-64)



Generated by fedora-review 0.8.0 (e988316) last change: 2022-04-07
Command line :/usr/bin/fedora-review -v -b 1935379
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, Generic
Disabled plugins: R, Perl, Python, Java, C/C++, fonts, Haskell, Ocaml, PHP, SugarActivity
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH




Issues/Questions
----------------

- Why is /usr/libexec/openconnect-gateway/vpn.sh packaged? It only seems to be useful for vagrant, which is in %doc.
- Why is /usr/libexec/openconnect-gateway/get-os.sh packaged? Nothing seems to use it.
- Is it really necessary to require bash manually, when /usr/bin/bash is auto-generated?
- Minor suggestion: "%{buildroot}/%{_libexecdir}/%{name}" causes "/…//…/…", thus "%{buildroot}%{_libexecdir}/%{name}"
- /usr/bin/openconnect-gateway is a dangling and absolute symlink, please correct this (not dangling and relative)
- Why do you use "%global debug_package %{nil}" rather "BuildArch: noarch"? Can't this be a noarch package?

Comment 9 Raphael Groner 2022-06-16 12:28:38 UTC
Hotfix additionally done for %description .

Comment 10 Robert Scheck 2022-06-27 17:22:26 UTC
Created attachment 1892996 [details]
Diff between spec files

Comment 11 Robert Scheck 2022-06-27 17:23:48 UTC
Package approved.

Comment 13 Gwyn Ciesla 2022-06-29 00:03:49 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/openconnect-gateway

Comment 14 Fedora Update System 2022-07-06 11:55:34 UTC
FEDORA-EPEL-2022-235578cbd8 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-235578cbd8

Comment 15 Fedora Update System 2022-07-06 11:55:35 UTC
FEDORA-EPEL-2022-af998c447f has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-af998c447f

Comment 16 Fedora Update System 2022-07-07 01:49:10 UTC
FEDORA-EPEL-2022-235578cbd8 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-235578cbd8

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

Comment 17 Fedora Update System 2022-07-07 01:54:54 UTC
FEDORA-EPEL-2022-af998c447f has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-af998c447f

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

Comment 18 Fedora Update System 2022-07-15 01:47:26 UTC
FEDORA-EPEL-2022-235578cbd8 has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2022-07-15 02:06:14 UTC
FEDORA-EPEL-2022-af998c447f has been pushed to the Fedora EPEL 8 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.