Bug 2183400 - New: golang-github-containerd-btrfs-2 - Btrfs bindings for Go
Summary: New: golang-github-containerd-btrfs-2 - Btrfs bindings for Go
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Maxwell G
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-31 02:42 UTC by dghubble
Modified: 2023-04-05 02:39 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-04-05 02:39:06 UTC
Type: ---
Embargoed:
maxwell: fedora-review+


Attachments (Terms of Use)

Description dghubble 2023-03-31 02:42:59 UTC
Spec URL: https://dghubble.fedorapeople.org/golang-github-containerd-btrfs-2.spec
SRPM URL: https://dghubble.fedorapeople.org/golang-github-containerd-btrfs-2-2.0.0-1.fc39.src.rpm
Description: Btrfs bindings for Go
Fedora Account System Username: dghubble

We're working on creating packages to be able to build containerd v1.7.0. See https://src.fedoraproject.org/rpms/containerd/pull-request/13#comment-135159

Created this review request by following https://docs.fedoraproject.org/en-US/package-maintainers/New_Package_Process_for_Existing_Contributors/

Comment 1 Maxwell G 2023-03-31 03:37:25 UTC
I'll take this review :). Here are some initial comments:

> %gometa -f

Remove the `-f` flag and just use plain `%gometa`. The `-f` flag disables building/testing the
package on i386 which we don't want in this case. We're only using this
flag for new packages that don't have dependents. containerd is still
built for i386.

The package only contains a btrfs-test binary which isn't useful for end
users, so I wouldn't ship it. You'll have to add

```
%global debug_package %{nil}
```

to the beginning of the specfile (right above %bcond_without check is a
standard place, but it doesn't particularly matter) and make the changes
listed below.


> %build
> for cmd in cmd/* ; do
>   %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
> done

Remove the entire %build section. We don't want to ship the btrfs-test
binary.

> 
> %install
> %gopkginstall
> install -m 0755 -vd                     %{buildroot}%{_bindir}
> install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

Remove the two install invocations. We're not installing any binaries.

> %files
> %license LICENSE
> %doc README.md
> %{_bindir}/*

Remove this %files section.

Comment 2 dghubble 2023-03-31 04:17:30 UTC
Initial fixes should be there, and updated the links to use fedorapeople.org

Comment 3 Maxwell G 2023-03-31 04:25:29 UTC
[fedora-review-service-build]

Comment 4 Maxwell G 2023-03-31 04:36:12 UTC
Please rebuild the SRPM and upload it again

Comment 5 dghubble 2023-03-31 15:30:06 UTC
Local mockbuild works and I've uploaded the SRPM.

Comment 6 Maxwell G 2023-04-03 09:25:07 UTC
This package was generated using go2rpm, which simplifies the review. Normally, I'd go through the full template generated by the `fedora-review` tool.

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


- [x] The specfile is sane.
- [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] The latest version is packaged.
- [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 wildcards in %files. (go2rpm includes these by default)
- [x] The package complies with the Packaging Guidelines.

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

- [ ] Add the package to release-monitoring.org
- [ ] Give go-sig privileges on the package
- [ ] Close the review bug by referencing its ID in the rpm changelog and the Bodhi ticket.

I'll send you a separate email later with instructions since this is your first Package Review ticket.

Thanks!

Comment 7 Maxwell G 2023-04-03 10:04:37 UTC
> I'll send you a separate email later with instructions since this is your first Package Review ticket.

Sent!

Comment 8 Fedora Admin user for bugzilla script actions 2023-04-05 02:08:50 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/golang-github-containerd-btrfs-2

Comment 9 Fedora Update System 2023-04-05 02:38:03 UTC
FEDORA-2023-0416784055 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0416784055

Comment 10 Fedora Update System 2023-04-05 02:39:06 UTC
FEDORA-2023-0416784055 has been pushed to the Fedora 39 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.