git: 51cb57c4fee5 - main - sysutils/bsdisks: Fix build on latest 16-CURRENT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Dec 2025 13:39:05 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=51cb57c4fee5d393d155be22b56eab07e20d1ce5
commit 51cb57c4fee5d393d155be22b56eab07e20d1ce5
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-12-05 13:36:31 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-12-05 13:36:31 +0000
sysutils/bsdisks: Fix build on latest 16-CURRENT
src 8c35de4982d8 added power condition support. That commit broke this
port by adding an argument to scsi_start_stop().
---
sysutils/bsdisks/files/patch-camcontrol.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/sysutils/bsdisks/files/patch-camcontrol.c b/sysutils/bsdisks/files/patch-camcontrol.c
new file mode 100644
index 000000000000..b40057506332
--- /dev/null
+++ b/sysutils/bsdisks/files/patch-camcontrol.c
@@ -0,0 +1,12 @@
+--- camcontrol.c.orig 2025-07-31 07:59:58 UTC
++++ camcontrol.c
+@@ -266,6 +266,9 @@ static void stopUnit(struct cam_device *cam_dev)
+ /* start/stop */ 0,
+ /* load_eject */ 0,
+ /* immediate */ 0,
++#if __FreeBSD_version >= 1600004
++ /* power_condition */ SSS_PC_START_VALID,
++#endif
+ /* sense_len */ SSD_FULL_SIZE,
+ /* timeout */ 30000);
+