| Summary: | /etc/devd/hyperv.conf belongs into FreeBSD-hyperv-tools | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Mina Galić <freebsd> | ||||||
| Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||||
| Status: | Closed FIXED | ||||||||
| Severity: | Affects Only Me | CC: | emaste, lwhsu, pkgbase | ||||||
| Priority: | --- | ||||||||
| Version: | 13.1-RELEASE | ||||||||
| Hardware: | Any | ||||||||
| OS: | Any | ||||||||
| Attachments: |
|
||||||||
|
Description
Mina Galić
2022-04-30 21:07:41 UTC
correction: s/FreeBSD-utilities/FreeBSD-runtime/g Created attachment 233660 [details]
move devd's hyperv.conf to hyperv-tools
following the example in share/examples/Makefile, i believe that this patch would solve the problem:
```
diff --git a/sbin/devd/Makefile b/sbin/devd/Makefile
index ffc0a9a65a27..7bbf3ed2c059 100644
--- a/sbin/devd/Makefile
+++ b/sbin/devd/Makefile
@@ -14,6 +14,7 @@ DEVD+= asus.conf
.if ${MK_HYPERV} != "no"
DEVD+= hyperv.conf
+PACKAGE_hyperv.conf= hyperv-tools
.endif
.if ${MK_USB} != "no"
```
i can submit this to phabricator, too.
turns out, share/examples/Makefile is entirely wrong! the correct way to do this is probably best shown in libexec/rc/rc.d/Makefile i'm going to submit a fix for devd+hyperv-tools, and then look how to do the same for share/examples Created attachment 233702 [details]
move devd's hyperv.conf to hyperv-tools
new, actual patch. built the packages, and this is the result:
```
meena@meena /p/d/i/1/F/latest> pkg list -l -F ./FreeBSD-run* | grep devd
/etc/devd.conf
/etc/devd/asus.conf
/etc/devd/devmatch.conf
/etc/devd/uath.conf
/etc/devd/ulpt.conf
/etc/devd/zfs.conf
/sbin/devd
/usr/share/man/man5/devd.conf.5.gz
/usr/share/man/man8/devd.8.gz
meena@meena /p/d/i/1/F/latest> pkg list -l -F ./FreeBSD-hyperv* | grep devd
/etc/devd/hyperv.conf
meena@meena /p/d/i/1/F/latest>
```
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=7ac164dc8e2ec3e6d3cda1d9ca13d461a534a6e8 commit 7ac164dc8e2ec3e6d3cda1d9ca13d461a534a6e8 Author: Mina Galić <me+freebsd@igalic.co> AuthorDate: 2022-05-02 14:49:43 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-05-03 16:15:54 +0000 pkgbase: move devd's hyperv.conf to hyperv-tools package This devd config file is useless without hyperv-tools, so we're moving it into the hyperv-tools package. pr#263691 PR: 263691 MFC after: 3 days sbin/devd/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=c3c44de5f08220c1b5d0a0bb06455ae7f4d0799a commit c3c44de5f08220c1b5d0a0bb06455ae7f4d0799a Author: Mina Galić <me+freebsd@igalic.co> AuthorDate: 2022-05-02 14:49:43 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-05-16 15:25:23 +0000 pkgbase: move devd's hyperv.conf to hyperv-tools package This devd config file is useless without hyperv-tools, so we're moving it into the hyperv-tools package. pr#263691 PR: 263691 MFC after: 3 days (cherry picked from commit 7ac164dc8e2ec3e6d3cda1d9ca13d461a534a6e8) sbin/devd/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) |