From owner-svn-ports-head@freebsd.org Thu Jun 16 03:50:07 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9151CA47A56; Thu, 16 Jun 2016 03:50:07 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 491571719; Thu, 16 Jun 2016 03:50:07 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u5G3o6Mu062480; Thu, 16 Jun 2016 03:50:06 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u5G3o6VF062477; Thu, 16 Jun 2016 03:50:06 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201606160350.u5G3o6VF062477@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Thu, 16 Jun 2016 03:50:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r416949 - in head/sysutils/smartmontools: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jun 2016 03:50:07 -0000 Author: cy Date: Thu Jun 16 03:50:06 2016 New Revision: 416949 URL: https://svnweb.freebsd.org/changeset/ports/416949 Log: Fix build under HEAD with __FreeBSD_version >= 1100110. Added: head/sysutils/smartmontools/files/patch-atacmds.h (contents, props changed) head/sysutils/smartmontools/files/patch-freebsd_nvme_ioctl.h (contents, props changed) Modified: head/sysutils/smartmontools/Makefile Modified: head/sysutils/smartmontools/Makefile ============================================================================== --- head/sysutils/smartmontools/Makefile Thu Jun 16 01:41:32 2016 (r416948) +++ head/sysutils/smartmontools/Makefile Thu Jun 16 03:50:06 2016 (r416949) @@ -3,6 +3,7 @@ PORTNAME= smartmontools PORTVERSION= 6.5 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= SF @@ -21,6 +22,7 @@ SHEBANG_FILES= examplescripts/Example5 GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-dependency-tracking \ --enable-sample \ + --with-nvme-devicescan=yes \ --with-initscriptdir=${PREFIX}/etc/rc.d SUB_FILES= pkg-message smart Added: head/sysutils/smartmontools/files/patch-atacmds.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/smartmontools/files/patch-atacmds.h Thu Jun 16 03:50:06 2016 (r416949) @@ -0,0 +1,12 @@ +--- atacmds.h.orig 2015-10-31 09:36:16.000000000 -0700 ++++ atacmds.h 2016-06-15 19:39:43.425233000 -0700 +@@ -74,7 +74,9 @@ + #define ATA_IDLE 0xe3 + #define ATA_SMART_CMD 0xb0 + #define ATA_SECURITY_FREEZE_LOCK 0xf5 ++#ifndef ATA_SET_FEATURES + #define ATA_SET_FEATURES 0xef ++#endif + #define ATA_STANDBY_IMMEDIATE 0xe0 + + // SET_FEATURES subcommands Added: head/sysutils/smartmontools/files/patch-freebsd_nvme_ioctl.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/smartmontools/files/patch-freebsd_nvme_ioctl.h Thu Jun 16 03:50:06 2016 (r416949) @@ -0,0 +1,18 @@ +--- freebsd_nvme_ioctl.h.orig 2016-03-28 09:25:56.000000000 -0700 ++++ freebsd_nvme_ioctl.h 2016-06-15 20:43:22.389493000 -0700 +@@ -31,6 +31,7 @@ + + #define NVME_PASSTHROUGH_CMD _IOWR('n', 0, struct nvme_pt_command) + ++#if __FreeBSD_version < 1100110 + struct nvme_command + { + /* dword 0 */ +@@ -143,6 +144,7 @@ + */ + struct mtx * driver_lock; + }; ++#endif + + #define nvme_completion_is_error(cpl) \ + ((cpl)->status.sc != 0 || (cpl)->status.sct != 0)