Bug 2276356

Summary: Review Request: elvish - Powerful scripting language & Versatile interactive shell
Product: [Fedora] Fedora Reporter: Felix Wang <topazus>
Component: Package ReviewAssignee: Mikel Olasagasti Uranga <mikel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mikel, package-review
Target Milestone: ---Flags: mikel: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-22 15:21:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Felix Wang 2024-04-22 08:14:32 UTC
Spec URL: https://topazus.fedorapeople.org/elvish.spec
SRPM URL: https://topazus.fedorapeople.org/elvish-0.20.1-1.fc39.src.rpm
Description: Powerful scripting language & Versatile interactive shell
Fedora Account System Username: topazus

Comment 1 Mikel Olasagasti Uranga 2024-04-22 08:38:38 UTC
There are few minor changes required.

> Provides:       golang-github-elves-elvish = %{version}-%{release}

I'm not sure if this is required with the obsolote in place should propose already the change to this new package.


Build reports this warning:

RPM build warnings:
    File listed twice: /usr/share/licenses/elvish/LICENSE
    File listed twice: /usr/share/licenses/elvish/LICENSE
    File listed twice: /usr/share/licenses/elvish/LICENSE
    File listed twice: /usr/share/licenses/elvish/LICENSE
    File listed twice: /usr/share/licenses/elvish/LICENSE


Check on https://download.copr.fedorainfracloud.org/results/mikelo2/elvish/fedora-rawhide-x86_64/07333485-elvish/elvish.spec how LICENSE files are renamed to be able to install all.

Comment 2 Felix Wang 2024-04-22 11:06:39 UTC
1. I see this in https://docs.fedoraproject.org/en-US/packaging-guidelines/#renaming-or-replacing-existing-packages

quote:
> If a package is being renamed without any functional changes, or is a compatible-enough replacement to an existing package (where "enough" means that it includes only > changes of magnitude that are commonly found in version upgrade changes), provide clean upgrade paths and compatibility with:
>
> Provides: oldpackagename = $provEVR
> Obsoletes: oldpackagename < $obsEVR

2.
> RPM build warnings:
>     File listed twice: /usr/share/licenses/elvish/LICENSE
>     File listed twice: /usr/share/licenses/elvish/LICENSE
>     File listed twice: /usr/share/licenses/elvish/LICENSE
>     File listed twice: /usr/share/licenses/elvish/LICENSE
>     File listed twice: /usr/share/licenses/elvish/LICENSE
>
>
> Check on https://download.copr.fedorainfracloud.org/results/mikelo2/elvish/fedora-rawhide-x86_64/07333485-elvish/elvish.spec how LICENSE files are renamed to be able to install all.

adopted the rename change to resolve this issue in the spec file.

---

Spec URL: https://topazus.fedorapeople.org/elvish.spec
SRPM URL: https://topazus.fedorapeople.org/elvish-0.20.1-1.fc39.src.rpm

Comment 3 Felix Wang 2024-04-22 12:04:32 UTC
The review.txt showed an error, https://download.copr.fedorainfracloud.org/results/topazus/test-review/fedora-rawhide-x86_64/07335299-elvish/fedora-review/review.txt

elvish.x86_64: E: readelf-failed /usr/bin/elvish 'utf-8' codec can't decode byte 0xc2 in position 7599: invalid continuation byte

The upstream maintainer said it may be related to specific setting of Fedora building, https://github.com/elves/elvish/issues/1793

Do you have thoughts on dealing with this?

Comment 4 Mikel Olasagasti Uranga 2024-04-22 14:40:05 UTC
> elvish.x86_64: E: readelf-failed /usr/bin/elvish 'utf-8' codec can't decode byte 0xc2 in position 7599: invalid continuation byte

I would say it's an issue on rpmlint. I would try to report it upstream rpmlint https://github.com/rpm-software-management/rpmlint/

Comment 5 Mikel Olasagasti Uranga 2024-04-22 14:40:59 UTC
Golang Package Review
==============

This package was generated using go2rpm, which simplifies the review.

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


- [x] The latest version is packaged or packaging an earlier version is justified.
- [x] The License tag reflects the package contents and uses the correct identifiers.
- [x] The package builds successfully in mock.
- [x] Package is installable (checked by fedora-review).
- [x] There are no relevant rpmlint errors.
- [x] The package runs tests in %check.
- [x] `%goipath` is set correctly.
- [x] The package's binaries don't conflict with binaries already in the distribution. (Some Go projects include utility binaries with very generic names)
- [x] There are no `%{_bindir}/*` wildcards in %files. (go2rpm includes these by default)
- [x] The package does not use `%gometa -f` if it has dependents that still build for %ix86.
- [x] The package complies with the Golang and general Packaging Guidelines.

Package approved! On import, don't forget to do the following:

- [ ] Add the package to release-monitoring.org
- [ ] Give go-sig privileges (at least commit) on the package
- [ ] Close the review bug by referencing its ID in the rpm changelog and the Bodhi ticket.
- [ ] Consider configuring Packit service to help with maintenance

Thanks!

Comment 6 Felix Wang 2024-04-22 14:44:17 UTC
Thanks for the reviewing.

Comment 7 Fedora Admin user for bugzilla script actions 2024-04-22 14:45:23 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/elvish

Comment 8 Fedora Update System 2024-04-22 15:07:10 UTC
FEDORA-2024-6a19ed65eb (elvish-0.20.1-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-6a19ed65eb

Comment 9 Fedora Update System 2024-04-22 15:21:11 UTC
FEDORA-2024-6a19ed65eb (elvish-0.20.1-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.