https://bugzilla.redhat.com/show_bug.cgi?id=1835934
Bug ID: 1835934 Summary: Review Request: chirp - A tool for programming two-way radio equipment Product: Fedora Version: rawhide Hardware: All OS: Linux Status: NEW Component: Package Review Severity: medium Priority: medium Assignee: nobody@fedoraproject.org Reporter: jskarvad@redhat.com QA Contact: extras-qa@fedoraproject.org CC: package-review@lists.fedoraproject.org Target Milestone: --- Classification: Fedora
Spec URL: https://jskarvad.fedorapeople.org/chirp/chirp.spec SRPM URL: https://jskarvad.fedorapeople.org/chirp/chirp-0.3.0-0.1.20200514hg3351.fc33.... Description: Chirp is a tool for programming two-way radio equipment It provides a generic user interface to the programming data and process that can drive many radio models under the hood. Fedora Account System Username: jskarvad
Script for snapshot preparation which will be added to the dist-git: https://jskarvad.fedorapeople.org/chirp/get_snapshot
This is an request for re-review of the retired package. The package has been retired because it wasn't python3 compatible. But upstream did some progress and now the experimental py3 branch with some additional downstream patching - patch was sent upstream - works with python3.
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #1 from Jaroslav Škarvada jskarvad@redhat.com --- Upstream ticket for the included patch: https://chirp.danplanet.com/issues/7877
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
Richard Shaw hobbes1069@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |hobbes1069@gmail.com Assignee|nobody@fedoraproject.org |hobbes1069@gmail.com Flags| |fedora-review?
--- Comment #2 from Richard Shaw hobbes1069@gmail.com --- Overall looks good! Just two things...
Package Review ==============
Legend: [x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated [ ] = Manual review needed
Issues: ======= - Need to document how the source is generated with comments above Source0: - Let's paste a link to the upstream issue in a comment above Patch1:...
===== 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: "Unknown or generated", "GPL (v3 or later)", "GNU Lesser General Public License (v3 or later)", "GPL (v2 or later)". 229 files have unknown license. Detailed output of licensecheck in /home/build/fedora-review/1835934-chirp/licensecheck.txt [x]: Package contains no bundled libraries without FPC exception. [x]: Changelog in prescribed format. [x]: Sources contain only permissible code or content. [-]: 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]: Package is not known to require an ExcludeArch tag. [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 contains desktop file if it is a GUI application. [x]: Package installs a %{name}.desktop using desktop-file-install or desktop-file-validate if there is such a file. [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 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]: Large documentation must go in a -doc subpackage. Large could be size (~1MB) or number of files. Note: Documentation size is 0 bytes in 0 files. [x]: Packages must not store files under /srv, /opt or /usr/local
Python: [x]: Python eggs must not download any dependencies during the build process. [-]: A package which is used by another package via an egg interface should provide egg info. [x]: Package meets the Packaging Guidelines::Python [x]: Package contains BR: python2-devel or python3-devel [x]: Packages MUST NOT have dependencies (either build-time or runtime) on packages named with the unversioned python- prefix unless no properly versioned package exists. Dependencies on Python packages instead MUST use names beginning with python2- or python3- as appropriate. [x]: Python packages must not contain %{pythonX_site(lib|arch)}/* in %files [x]: Binary eggs must be removed in %prep
===== SHOULD items =====
Generic: [x]: 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. [!]: Patches link to upstream bugs/comments/lists or are otherwise justified. [!]: SourceX tarball generation or download is documented. Note: Package contains tarball without URL, check comments [-]: Sources are verified with gpgverify first in %prep if upstream publishes signatures. Note: gpgverify is not used. [x]: 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]: Packager, Vendor, PreReq, Copyright tags should not be in spec file [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 attachment). [x]: Spec file according to URL is the same as in SRPM.
Rpmlint ------- Checking: chirp-0.3.0-0.1.20200514hg3351.fc33.noarch.rpm chirp-0.3.0-0.1.20200514hg3351.fc33.src.rpm chirp.noarch: W: no-manual-page-for-binary chirpwx.py chirp.noarch: W: no-manual-page-for-binary rpttool chirp.src: W: invalid-url Source0: chirp-20200514hg3351.tar.xz 2 packages and 0 specfiles checked; 0 errors, 3 warnings.
Rpmlint (installed packages) ---------------------------- warning: Found bdb Packages database while attempting sqlite backend: using bdb backend. warning: Found bdb Packages database while attempting sqlite backend: using bdb backend. chirp.noarch: W: invalid-url URL: http://chirp.danplanet.com/ <urlopen error [Errno -2] Name or service not known> chirp.noarch: W: no-manual-page-for-binary chirpwx.py chirp.noarch: W: no-manual-page-for-binary rpttool 1 packages and 0 specfiles checked; 0 errors, 3 warnings.
Requires -------- chirp (rpmlib, GLIBC filtered): /usr/bin/python3 python(abi) python3-future python3-gobject python3-pyserial python3-six python3-wxpython4
Provides -------- chirp: application() application(chirp.desktop) chirp python3.8dist(chirp) python3dist(chirp)
Generated by fedora-review 0.7.5 (5fa5b7e) last change: 2020-02-16 Command line :/usr/bin/fedora-review -b 1835934 -m fedora-rawhide-x86_64 Buildroot used: fedora-rawhide-x86_64 Active plugins: Python, Generic, Shell-api Disabled plugins: C/C++, SugarActivity, fonts, Ocaml, Haskell, R, PHP, Java, Perl Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #3 from Jaroslav Škarvada jskarvad@redhat.com --- Upstream rejected the patch and wrote that the syntax error is there on purpose meaning the drivers weren't hand converted and tested and may not work. The syntax error is there to prevent the drivers from loading (more in [1]). It's strange approach, but I am unable to test all the drivers, because I don't own all the radios - from the list I own just the UV3R, so I will test it and fix possible runtime errors I will encounter. I will probably also try to propose this UV3R patch upstream. Regarding the rest of the problematic drivers I will probably remove them from the package and left it on the upstream to finish the conversion in their own pace. It's the following drivers:
a/chirp/drivers/alinco.py a/chirp/drivers/anytone.py a/chirp/drivers/anytone_ht.py a/chirp/drivers/ap510.py a/chirp/drivers/baofeng_common.py a/chirp/drivers/baofeng_uv3r.py a/chirp/drivers/bf-t1.py a/chirp/drivers/bj9900.py a/chirp/drivers/bjuv55.py a/chirp/drivers/fd268.py a/chirp/drivers/ft1d.py a/chirp/drivers/ft2800.py a/chirp/drivers/ft2900.py a/chirp/drivers/ft450d.py a/chirp/drivers/ft50.py a/chirp/drivers/ft60.py a/chirp/drivers/ft70.py a/chirp/drivers/ft7100.py a/chirp/drivers/ft8100.py a/chirp/drivers/ft90.py a/chirp/drivers/ftm350.py a/chirp/drivers/kguv8d.py a/chirp/drivers/kguv8dplus.py a/chirp/drivers/kguv8e.py a/chirp/drivers/kguv9dplus.py a/chirp/drivers/kyd.py a/chirp/drivers/kyd_IP620.py a/chirp/drivers/leixen.py a/chirp/drivers/lt725uv.py a/chirp/drivers/puxing.py a/chirp/drivers/radioddity_r2.py a/chirp/drivers/radtel_t18.py a/chirp/drivers/retevis_rt1.py a/chirp/drivers/retevis_rt21.py a/chirp/drivers/retevis_rt22.py a/chirp/drivers/retevis_rt23.py a/chirp/drivers/retevis_rt26.py a/chirp/drivers/rfinder.py a/chirp/drivers/rh5r_v2.py a/chirp/drivers/tdxone_tdq8a.py a/chirp/drivers/th7800.py a/chirp/drivers/th9000.py a/chirp/drivers/th9800.py a/chirp/drivers/th_uv8000.py a/chirp/drivers/thd72.py a/chirp/drivers/thuv1f.py a/chirp/drivers/tk760g.py a/chirp/drivers/ts2000.py a/chirp/drivers/ts480.py a/chirp/drivers/ts590.py a/chirp/drivers/vgc.py a/chirp/drivers/vx6.py a/chirp/drivers/vxa700.py a/chirp/drivers/wouxun.py
Upstream also wrote that he appreciate that we don't package anything from the py3 branch at this point, because it's in such a half-working state. Personally, I think it's OK for the rawhide. It's one of the core open source principles to release often and release quickly even in a half-working state. It seems there is startup notification that it's experimental. Moreover I was able to successfully program my UV5R with it. So for me to choose whether I will be able to program my UV5R in rawhide or not, the choice is clear.
[1] https://chirp.danplanet.com/issues/7877
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #4 from Richard Shaw hobbes1069@gmail.com --- Maybe I'm missing something obvious, but the unit testing includes cloning. I know it's not the same as talking to a radio but I would think you could compare image output between python2 and python3. I would try to test this but he makes it hard to find where to clone the repository.
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #5 from Jaroslav Škarvada jskarvad@redhat.com --- (In reply to Richard Shaw from comment #4)
Maybe I'm missing something obvious, but the unit testing includes cloning. I know it's not the same as talking to a radio but I would think you could compare image output between python2 and python3. I would try to test this but he makes it hard to find where to clone the repository.
Personally, I think the conversion could be done semi-automatically, as we successfully did for several and more complex projects and while still keeping python27 backward compatibility. This upstream attitude to the python 3 switch isn't optimal - he was rejecting python3 related patches and bugzillas for a while stating that it's python2 only project.
Regarding the repository, did you mean the py3 branch in the Mercurial repository? If yes I posted it in the script in the comment 0, i.e.: https://jskarvad.fedorapeople.org/chirp/get_snapshot
Literally it's: http://d-rats.com/hg/chirp.hg py3 branch
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
Jaroslav Škarvada jskarvad@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(hobbes1069@gmail. | |com) |
--- Comment #7 from Jaroslav Škarvada jskarvad@redhat.com --- I am still interested in the package, but it seems upstream didn't progress much. My plan is the following: refresh the snapshot (there are only few new commits), add 3rd party patches (mostly for baofeng), fix drivers for radios I am interested in (ICOM handhelds) and re-introduce it to Fedora. I think it's better to have something than nothing.
Product: Fedora Version: rawhide Component: Package Review
Jaroslav Škarvada jskarvad@redhat.com has canceled Package Review package-review@lists.fedoraproject.org's request for Richard Shaw hobbes1069@gmail.com's needinfo: Bug 1835934: Review Request: chirp - A tool for programming two-way radio equipment https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #7 from Jaroslav Škarvada jskarvad@redhat.com --- I am still interested in the package, but it seems upstream didn't progress much. My plan is the following: refresh the snapshot (there are only few new commits), add 3rd party patches (mostly for baofeng), fix drivers for radios I am interested in (ICOM handhelds) and re-introduce it to Fedora. I think it's better to have something than nothing.
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #9 from Jaroslav Škarvada jskarvad@redhat.com --- I will try to refresh the srpm during this week.
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
Richard Shaw hobbes1069@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(hobbes1069@gmail. | |com) |
--- Comment #10 from Richard Shaw hobbes1069@gmail.com --- I'll try to take a look as soon as I can once available.
Product: Fedora Version: rawhide Component: Package Review
Richard Shaw hobbes1069@gmail.com has canceled Package Review package-review@lists.fedoraproject.org's request for Richard Shaw hobbes1069@gmail.com's needinfo: Bug 1835934: Review Request: chirp - A tool for programming two-way radio equipment https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #10 from Richard Shaw hobbes1069@gmail.com --- I'll try to take a look as soon as I can once available.
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #11 from Jaroslav Škarvada jskarvad@redhat.com --- Spec URL: https://jskarvad.fedorapeople.org/chirp/chirp.spec SRPM URL: https://jskarvad.fedorapeople.org/chirp/chirp-0.3.0%5e20220828hg3608-1.fc35....
Refreshed package. There may be problems. I tested UV-3R and UV-5R and it works OK. I am also going to check/fix support for my Icoms. It's better to have something than nothing.
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #12 from Jaroslav Škarvada jskarvad@redhat.com --- The HG archive is generated by: https://jskarvad.fedorapeople.org/chirp/get_snapshot
which is mentioned in the spec comment.
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #13 from Jaroslav Škarvada jskarvad@redhat.com --- (In reply to Jaroslav Škarvada from comment #12)
The HG archive is generated by: https://jskarvad.fedorapeople.org/chirp/get_snapshot
which is mentioned in the spec comment.
It will be included in the dist-git.
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #14 from Jaroslav Škarvada jskarvad@redhat.com --- Regarding the patch: https://chirp.danplanet.com/issues/7877#change-24761
Unfortunately, it was rejected by upstream. I cannot satisfy the upstream by testing all the supported HW, but I believe that at least some of the HW should work with the patch. I am sending to upstream parts of the patch for HW I own and tested to satisfy upstream.
https://bugzilla.redhat.com/show_bug.cgi?id=1835934
--- Comment #15 from Jaroslav Škarvada jskarvad@redhat.com --- Spec URL: https://jskarvad.fedorapeople.org/chirp/chirp.spec SRPM URL: https://jskarvad.fedorapeople.org/chirp/chirp-0.3.0%5E20220905git8bc8553c-1....
Switched to the github repository which is also official upstream repository and should be auto-synced with the upstream Mercurial. Currently, due to some auto-sync upstream problems (reported in the upstream mailing list) the github repository seems to be ahead of the Mercurial. Moreover, the previously mentioned get_snapshot script is no longer needed and will not be included in the dist-git.
package-review@lists.fedoraproject.org