Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Sep 2018 15:45:14 +0000 (UTC)
From:      =?UTF-8?Q?Fernando_Apestegu=c3=ada?= <fernape@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r479196 - head/sysutils/smartmontools/files
Message-ID:  <201809071545.w87FjEBE098699@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fernape
Date: Fri Sep  7 15:45:14 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

Modified:
  head/sysutils/smartmontools/files/patch-os__freebsd.cpp

Modified: head/sysutils/smartmontools/files/patch-os__freebsd.cpp
==============================================================================
--- head/sysutils/smartmontools/files/patch-os__freebsd.cpp	Fri Sep  7 14:47:48 2018	(r479195)
+++ head/sysutils/smartmontools/files/patch-os__freebsd.cpp	Fri Sep  7 15:45:14 2018	(r479196)
@@ -22,7 +22,7 @@
    struct nvme_pt_command pt;
    memset(&pt, 0, sizeof(pt));
  
-+#if __FreeBSD_version >= 1200058
++#if __FreeBSD_version >= 1200058 && __FreeBSD_version < 1200081
 +  pt.cmd.opc_fuse = NVME_CMD_SET_OPC(in.opcode);
 +#else
    pt.cmd.opc = in.opcode;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809071545.w87FjEBE098699>