Bug 2356940

Summary: Review Request: bootmac - Configures the MAC addresses of WLAN and Bluetooth interfaces at boot
Product: [Fedora] Fedora Reporter: Sam Day <me>
Component: Package ReviewAssignee: Nobody's working on this, feel free to take it <nobody>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: alex, package-review
Target Milestone: ---Keywords: AutomationTriaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://gitlab.postmarketos.org/postmarketOS/bootmac/
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Sam Day 2025-04-02 16:25:07 UTC
Spec URL: https://samcday.fedorapeople.org/bootmac.spec
SRPM URL: https://samcday.fedorapeople.org/bootmac-0.6.0-1.fc43.src.rpm

Description:
Configures the MAC addresses of WLAN and Bluetooth interfaces at boot.

Fedora Account System Username: samcday

Comment 1 Sam Day 2025-04-02 16:25:10 UTC
This package built on koji:  https://koji.fedoraproject.org/koji/taskinfo?taskID=131021522

Comment 2 Fedora Review Service 2025-04-02 16:36:09 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8853223
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2356940-bootmac/fedora-rawhide-x86_64/08853223-bootmac/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 3 Alex Haydock 2025-04-19 13:11:26 UTC
Hi!

I tried taking a look at this package as a non-binding review. I am not a Fedora Packager yet, but as part of the pre-requisites to become one I am trying to review existing packages in the queue to get familiar with the basics and some of the philosophy behind various design decisions.

I spotted a few things so far in the current SPEC:

The line:
```
%global debug_package %{nil}
```

Should not be needed as the package is a `noarch` package without any ELF objects with debuginfo, so there can be no debuginfo.

The `-p` flag should be used for `install` arguments to preserve timestamps, e.g.:

```
install -Dpm755 bootmac -t %{buildroot}%{_bindir}/
```

At a package level, I'm not too familiar with the codebase here but I'm wondering if there's a particular reason why the `bootmac-wifi.rules` from upstream have been included, but the `bootmac-bluetooth.rules` equivalent for Bluetooth has not?