pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/smartmontools



Module Name:    pkgsrc
Committed By:   maya
Date:           Fri Nov  4 17:55:38 UTC 2016

Modified Files:
        pkgsrc/sysutils/smartmontools: distinfo
Added Files:
        pkgsrc/sysutils/smartmontools/patches: patch-atacmds.h
            patch-freebsd_nvme_ioctl.h

Log Message:
smartmontools: build fix for FreeBSD-11 and newer.

don't redefine now existing things, nvme_command and ATA_SET_FEATURES


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/sysutils/smartmontools/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/smartmontools/patches/patch-atacmds.h \
    pkgsrc/sysutils/smartmontools/patches/patch-freebsd_nvme_ioctl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/smartmontools/distinfo
diff -u pkgsrc/sysutils/smartmontools/distinfo:1.27 pkgsrc/sysutils/smartmontools/distinfo:1.28
--- pkgsrc/sysutils/smartmontools/distinfo:1.27 Sun May  8 11:23:15 2016
+++ pkgsrc/sysutils/smartmontools/distinfo      Fri Nov  4 17:55:37 2016
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.27 2016/05/08 11:23:15 nonaka Exp $
+$NetBSD: distinfo,v 1.28 2016/11/04 17:55:37 maya Exp $
 
 SHA1 (smartmontools-6.5.tar.gz) = 7e788b429534a4ae627858fbcc826b93402cee7e
 RMD160 (smartmontools-6.5.tar.gz) = e62d15d406a92b75fa239603180c6b587f9d2aa8
@@ -6,4 +6,6 @@ SHA512 (smartmontools-6.5.tar.gz) = dca7
 Size (smartmontools-6.5.tar.gz) = 855642 bytes
 SHA1 (patch-aa) = bd08aff267f0e9e9307ebc57858e61e35144bf16
 SHA1 (patch-ag) = 01b0b35d89d6d6a11b13b3c05a141c46a0c1590b
+SHA1 (patch-atacmds.h) = be9973be0245de7ac526b0018e7bbca28c6fa529
+SHA1 (patch-freebsd_nvme_ioctl.h) = 2cb97cb4000624d8d121f8406b79d481751a5b77
 SHA1 (patch-os__netbsd.cpp) = 28f78c08d7c7287165cfa38f8ee3467b3b03cb44

Added files:

Index: pkgsrc/sysutils/smartmontools/patches/patch-atacmds.h
diff -u /dev/null pkgsrc/sysutils/smartmontools/patches/patch-atacmds.h:1.1
--- /dev/null   Fri Nov  4 17:55:38 2016
+++ pkgsrc/sysutils/smartmontools/patches/patch-atacmds.h       Fri Nov  4 17:55:37 2016
@@ -0,0 +1,17 @@
+$NetBSD: patch-atacmds.h,v 1.1 2016/11/04 17:55:37 maya Exp $
+
+don't redefine ATA_SET_FEATURES if it's already defined
+build fix for FreeBSD-11
+
+--- 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
Index: pkgsrc/sysutils/smartmontools/patches/patch-freebsd_nvme_ioctl.h
diff -u /dev/null pkgsrc/sysutils/smartmontools/patches/patch-freebsd_nvme_ioctl.h:1.1
--- /dev/null   Fri Nov  4 17:55:38 2016
+++ pkgsrc/sysutils/smartmontools/patches/patch-freebsd_nvme_ioctl.h    Fri Nov  4 17:55:37 2016
@@ -0,0 +1,22 @@
+$NetBSD: patch-freebsd_nvme_ioctl.h,v 1.1 2016/11/04 17:55:37 maya Exp $
+
+Don't redefine nvme_command on newer FreeBSD
+
+--- 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)



Home | Main Index | Thread Index | Old Index