Summary: | sysutils/smartmontools: error: use of undeclared identifier 'NVME_CMD_SET_OPC' | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | O. Hartmann <ohartmann> | ||||
Component: | Individual Port(s) | Assignee: | Fernando Apesteguía <fernape> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | KOT, fernape, ndowens04, samm, sbruno, swills | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(samm) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
O. Hartmann
2018-08-24 17:22:10 UTC
(In reply to O. Hartmann from comment #0) It builds fine in not so recent 12-CURRENT r332309. Responsible commit is most likely r338182 (https://svnweb.freebsd.org/base/head/sys/dev/nvme/nvme.h?r1=334200&r2=338182) Created attachment 196536 [details]
Fix for current
Trying to fix the build in 12-CURRENT.
Would you try this patch? I don't have a 12-CURRENT as updated as yours, but this builds in {10.4,11.2}{amd64,i386} and 12i386@332309 The most recent CURRENT has (again) opc and fuse as two separate fields so it should build. (In reply to Fernando ApesteguÃa from comment #3) The patch of yours builds the port on FreeBSD 12.0-ALPHA3 #458 r338317: Sat Aug 25 18:58:28 CEST 2018 amd64. Thank you very much. oh Confirming patch does work with 12.0-ALPHA3 FreeBSD 12.0-ALPHA3 #0 r338331 Thanks for the feedback. I'll commit it ASAP Patch works for me too (12.0-ALPHA3 r338342). Thanks you! A commit references this bug: Author: fernape Date: Fri Sep 7 15:45:15 UTC 2018 New revision: 479196 URL: https://svnweb.freebsd.org/changeset/ports/479196 Log: sysutils/smartmontools: unbreak in 12-CURRENT Between __FreeBSD_version 1200058 and 1200081 fields opc and fuse of struct nvme_command (sys/dev/nvme/nvme.h) where merged under opc_fuse, but in r338182 this change was undone and this port broke. Update patch to fix it so it works regardless of the revision we check out. PR: 230867 Submitted by: ohartmann@walstatt.org Approved by: tcberner (mentor), maintainer (timeout, 2 weeks) Differential Revision: https://reviews.freebsd.org/D16908 Changes: head/sysutils/smartmontools/files/patch-os__freebsd.cpp Committed, Thanks for reporting and testing. |