Bug 2323149 - Review Request: nwg-dock-hyprland - A GTK3-based Dock for Hyprland
Summary: Review Request: nwg-dock-hyprland - A GTK3-based Dock for Hyprland
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Mikel Olasagasti Uranga
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/nwg-piotr/nwg-dock...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-01 13:39 UTC by Jannik Müller
Modified: 2024-11-04 13:38 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-11-04 13:38:39 UTC
Type: ---
Embargoed:
mikel: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 8199061 to 8204005 (4.04 KB, patch)
2024-11-03 01:21 UTC, Fedora Review Service
no flags Details | Diff
The .spec file difference from Copr build 8204005 to 8205931 (506 bytes, patch)
2024-11-03 17:12 UTC, Fedora Review Service
no flags Details | Diff

Description Jannik Müller 2024-11-01 13:39:38 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/nightishaman/nwg-shell/srpm-builds/08198963/nwg-dock-hyprland.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/nightishaman/nwg-shell/srpm-builds/08198963/nwg-dock-hyprland-0.3.1-1.fc40.src.rpm
Description: A GTK3-based Dock for the Hyprland window manager. This package is part of the
nwg-shell project (https://nwg-piotr.github.io/nwg-shell/).

For a better experience, install nwg-drawer alongside this package.

Fedora Account System Username: nightishaman

Source and further explanation: https://github.com/nwg-piotr/nwg-dock-hyprland

This is my first ticket and I'd appreciate a sponsor for this.
Here is a successful build from Koji using scratch-build: https://koji.fedoraproject.org/koji/taskinfo?taskID=125421458
Here is the copr build: https://copr.fedorainfracloud.org/coprs/nightishaman/nwg-shell/build/8198963/

Note: I'm using Go 1.23.2 as a build tool in the package, because the package requires it to build. Will find out whether I can drop this later anyhow.
Note: I got permission from the author to package this app up for Fedora.

Thanks for reading!

Comment 1 Fedora Review Service 2024-11-01 13:39:59 UTC
Cannot find any valid SRPM URL for this ticket. Common causes are:

- You didn't specify `SRPM URL: ...` in the ticket description
  or any of your comments
- The URL schema isn't HTTP or HTTPS
- The SRPM package linked in your URL doesn't match the package name specified
  in the ticket summary


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Jannik Müller 2024-11-01 13:54:19 UTC
[fedora-review-service-build]

Comment 3 Fedora Review Service 2024-11-01 14:22:00 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8199061
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2323149-nwg-dock-hyprland/fedora-rawhide-x86_64/08199061-nwg-dock-hyprland/fedora-review/review.txt

Found issues:

- Upstream MD5sum check error, diff is in /var/lib/copr-rpmbuild/results/nwg-dock-hyprland/diff.txt
  Read more: https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/

Please know that there can be false-positives.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 4 Jannik Müller 2024-11-01 14:33:48 UTC
The diff the Review Service mentions is the vendor directory I needed to add because mockbuild didn't have internet access. It contains the downloaded dependencies and can be fetched on your local system with "go mod download" and "go mod vendor".

Comment 5 Mikel Olasagasti Uranga 2024-11-01 15:05:49 UTC
As with `nwg-drawer` or `nwg-dock` I would advise to use go2rpm to generate the spec.

You can use the following command:

go2rpm -q --name nwg-dock-hyprland -f https://github.com/nwg-piotr/nwg-dock-hyprland nwg-dock-hyprland

You can check https://src.fedoraproject.org/rpms/nwg-drawer/blob/rawhide/f/nwg-drawer.spec and https://src.fedoraproject.org/rpms/nwg-dock/blob/rawhide/f/nwg-dock.spec as examples in case you need to modify the resulting spec.

About this module, I'm confused on why it's named `nwg-dock-hyprland` and not like `github.com/nwg-piotr/nwg-drawer` or `github.com/nwg-piotr/nwg-dock`. Can you suggest upstream to change the module name and adapt the go2rpm so it sets the correct goipath? I'm referring to this: https://github.com/nwg-piotr/nwg-dock-hyprland/blob/master/go.mod#L1

I would also recommend joining "Fedora Miracle" channel in Matrix to discuss more about this if you want.

Comment 6 Mikel Olasagasti Uranga 2024-11-01 15:46:37 UTC
The unmodified spec generated by the go2rpm example fails to build with:

/usr/lib/golang/pkg/tool/linux_amd64/link: -X flag requires argument of the form importpath.name=value

This is because of the goipath and I guess a limitation in our tooling.

With this it works fine:

go2rpm -q --name nwg-dock-hyprland -f https://github.com/nwg-piotr/nwg-dock-hyprland github.com/nwg-piotr/nwg-dock-hyprland

So if upstream can change from nwg-dock-hyprland to github.com/nwg-piotr/nwg-dock-hyprland it would be great.

Comment 8 Fedora Review Service 2024-11-03 01:21:46 UTC
Created attachment 2055238 [details]
The .spec file difference from Copr build 8199061 to 8204005

Comment 9 Fedora Review Service 2024-11-03 01:21:49 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8204005
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2323149-nwg-dock-hyprland/fedora-rawhide-x86_64/08204005-nwg-dock-hyprland/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 10 Mikel Olasagasti Uranga 2024-11-03 12:14:50 UTC
> %gopkginstall
> (...)
> %gopkgfiles

These create the `golang-github-nwg-piotr-dock-hyprland-devel` package, that is required in case some other package has them as dependency. IIUC this is a binary only package, so they can be removed.

Once we clarify that spec would be approved as it's correct.

Comment 12 Fedora Review Service 2024-11-03 17:12:38 UTC
Created attachment 2055375 [details]
The .spec file difference from Copr build 8204005 to 8205931

Comment 13 Fedora Review Service 2024-11-03 17:12:41 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8205931
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2323149-nwg-dock-hyprland/fedora-rawhide-x86_64/08205931-nwg-dock-hyprland/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 14 Mikel Olasagasti Uranga 2024-11-03 21:09:42 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.
- [-] The package's binaries don't conflict with binaries already in the distribution. (Some Go projects include utility binaries with very generic names)
- [-] 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. It can be done with a commit message like "Initial commit - Closes rhbz#2323149".
- [ ] Consider configuring Packit service to help with maintenance.

Feel free to ask if you have any doubt with these actions.

Thanks!

Comment 15 Fedora Review Service 2024-11-03 21:10:02 UTC
Hello @nightishaman,
since this is your first Fedora package, you need to get sponsored by a package
sponsor before it can be accepted.

A sponsor is an experienced package maintainer who will guide you through
the processes that you will follow and the tools that you will use as a future
maintainer. A sponsor will also be there to answer your questions related to
packaging.

You can find all active sponsors here:
https://docs.pagure.org/fedora-sponsors/

I created a sponsorship request for you:
https://pagure.io/packager-sponsors/issue/691
Please take a look and make sure the information is correct.

Thank you, and best of luck on your packaging journey.

---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

Comment 16 Fedora Admin user for bugzilla script actions 2024-11-04 12:42:49 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/nwg-dock-hyprland

Comment 17 Fedora Update System 2024-11-04 13:35:55 UTC
FEDORA-2024-4d23d3e22e (nwg-dock-hyprland-0.3.2-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-4d23d3e22e

Comment 18 Fedora Update System 2024-11-04 13:38:39 UTC
FEDORA-2024-4d23d3e22e (nwg-dock-hyprland-0.3.2-2.fc42) has been pushed to the Fedora 42 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.