From owner-svn-ports-head@freebsd.org Mon Dec 31 23:03:36 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AAB58141F043; Mon, 31 Dec 2018 23:03:36 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4854F891FA; Mon, 31 Dec 2018 23:03:36 +0000 (UTC) (envelope-from delphij@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 36F2E1958E; Mon, 31 Dec 2018 23:03:36 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBVN3aei063476; Mon, 31 Dec 2018 23:03:36 GMT (envelope-from delphij@FreeBSD.org) Received: (from delphij@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBVN3ZLn063471; Mon, 31 Dec 2018 23:03:35 GMT (envelope-from delphij@FreeBSD.org) Message-Id: <201812312303.wBVN3ZLn063471@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: delphij set sender to delphij@FreeBSD.org using -f From: Xin LI Date: Mon, 31 Dec 2018 23:03:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r488844 - in head/sysutils/sg3_utils: . files X-SVN-Group: ports-head X-SVN-Commit-Author: delphij X-SVN-Commit-Paths: in head/sysutils/sg3_utils: . files X-SVN-Commit-Revision: 488844 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4854F891FA X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.98)[-0.978,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.998,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 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: Mon, 31 Dec 2018 23:03:36 -0000 Author: delphij Date: Mon Dec 31 23:03:34 2018 New Revision: 488844 URL: https://svnweb.freebsd.org/changeset/ports/488844 Log: Update to 1.44. Added: head/sysutils/sg3_utils/files/ head/sysutils/sg3_utils/files/patch-include_freebsd__nvme__ioctl.h (contents, props changed) head/sysutils/sg3_utils/files/patch-lib_sg__pt__freebsd.c (contents, props changed) Modified: head/sysutils/sg3_utils/Makefile head/sysutils/sg3_utils/distinfo head/sysutils/sg3_utils/pkg-plist Modified: head/sysutils/sg3_utils/Makefile ============================================================================== --- head/sysutils/sg3_utils/Makefile Mon Dec 31 22:36:14 2018 (r488843) +++ head/sysutils/sg3_utils/Makefile Mon Dec 31 23:03:34 2018 (r488844) @@ -2,15 +2,18 @@ # $FreeBSD$ PORTNAME= sg3_utils -PORTVERSION= 1.42 +PORTVERSION= 1.44 CATEGORIES= sysutils MASTER_SITES= http://sg.danny.cz/sg/p/ MAINTAINER= delphij@FreeBSD.org COMMENT= Set of utilities that send SCSI commands to devices +LICENSE= BSD2CLAUSE + USES= gmake libtool shebangfix tar:tgz -SHEBANG_FILES= scripts/scsi_* + +SHEBANG_FILES= scripts/* post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsgutils2.so.2 Modified: head/sysutils/sg3_utils/distinfo ============================================================================== --- head/sysutils/sg3_utils/distinfo Mon Dec 31 22:36:14 2018 (r488843) +++ head/sysutils/sg3_utils/distinfo Mon Dec 31 23:03:34 2018 (r488844) @@ -1,3 +1,3 @@ -TIMESTAMP = 1466970460 -SHA256 (sg3_utils-1.42.tgz) = 1dcb7a0309bd0ba3d4a83acb526973b80106ee26cd9f7398186cd3f0633c9ef3 -SIZE (sg3_utils-1.42.tgz) = 1219231 +TIMESTAMP = 1546295044 +SHA256 (sg3_utils-1.44.tgz) = 8dae684d22e71b11353a48b16c95597af90f0cbe9bbd57f98d7f5544da5cae7b +SIZE (sg3_utils-1.44.tgz) = 1469744 Added: head/sysutils/sg3_utils/files/patch-include_freebsd__nvme__ioctl.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/sg3_utils/files/patch-include_freebsd__nvme__ioctl.h Mon Dec 31 23:03:34 2018 (r488844) @@ -0,0 +1,18 @@ +--- include/freebsd_nvme_ioctl.h.orig 2018-02-28 03:48:11 UTC ++++ include/freebsd_nvme_ioctl.h +@@ -151,12 +151,12 @@ struct nvme_pt_command { + */ + struct mtx * driver_lock; + }; +-#else +-#include +-#endif + + #define nvme_completion_is_error(cpl) \ + ((cpl)->status.sc != 0 || (cpl)->status.sct != 0) ++#else ++#include ++#endif + + #define NVME_CTRLR_PREFIX "/dev/nvme" + #define NVME_NS_PREFIX "ns" Added: head/sysutils/sg3_utils/files/patch-lib_sg__pt__freebsd.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/sg3_utils/files/patch-lib_sg__pt__freebsd.c Mon Dec 31 23:03:34 2018 (r488844) @@ -0,0 +1,14 @@ +--- lib/sg_pt_freebsd.c.orig 2018-06-29 09:46:13 UTC ++++ lib/sg_pt_freebsd.c +@@ -1115,7 +1115,11 @@ nvme_pt_low(struct freebsd_dev_channel *fdc_p, void * + err = ioctl(fdc_p->dev_fd, NVME_PASSTHROUGH_CMD, npcp); + if (err < 0) + return -errno; /* Assume Unix error in normal place */ ++#if __FreeBSD_version <= 1200058 + sct_sc = ((npcp->cpl.status.sct << 8) | npcp->cpl.status.sc); ++#else ++ sct_sc = (NVME_STATUS_GET_SCT(npcp->cpl.status) << 8 | NVME_STATUS_GET_SC(npcp->cpl.status)); ++#endif + fdc_p->nvme_result = npcp->cpl.cdw0; + sg_put_unaligned_le32(npcp->cpl.cdw0, + fdc_p->cq_dw0_3 + SG_NVME_PT_CQ_RESULT); Modified: head/sysutils/sg3_utils/pkg-plist ============================================================================== --- head/sysutils/sg3_utils/pkg-plist Mon Dec 31 22:36:14 2018 (r488843) +++ head/sysutils/sg3_utils/pkg-plist Mon Dec 31 23:03:34 2018 (r488844) @@ -1,3 +1,4 @@ +bin/rescan-scsi-bus.sh bin/scsi_logging_level bin/scsi_mandat bin/scsi_readcap @@ -6,6 +7,7 @@ bin/scsi_satl bin/scsi_start bin/scsi_stop bin/scsi_temperature +bin/sg_bg_ctl bin/sg_compare_and_write bin/sg_decode_sense bin/sg_format @@ -39,11 +41,13 @@ bin/sg_sat_identify bin/sg_sat_phy_event bin/sg_sat_read_gplog bin/sg_sat_set_features +bin/sg_seek bin/sg_senddiag bin/sg_ses bin/sg_ses_microcode bin/sg_start bin/sg_stpg +bin/sg_stream_ctl bin/sg_sync bin/sg_timestamp bin/sg_turs @@ -55,14 +59,18 @@ bin/sg_write_buffer bin/sg_write_long bin/sg_write_same bin/sg_write_verify +bin/sg_write_x bin/sg_zone +include/scsi/sg_cmds.h include/scsi/sg_cmds_basic.h include/scsi/sg_cmds_extra.h include/scsi/sg_cmds_mmc.h -include/scsi/sg_cmds.h -include/scsi/sg_lib_data.h include/scsi/sg_lib.h +include/scsi/sg_lib_data.h +include/scsi/sg_pr2serr.h include/scsi/sg_pt.h +include/scsi/sg_pt_nvme.h +include/scsi/sg_unaligned.h lib/libsgutils2.a lib/libsgutils2.so lib/libsgutils2.so.2 @@ -74,6 +82,8 @@ man/man8/scsi_satl.8.gz man/man8/scsi_start.8.gz man/man8/scsi_stop.8.gz man/man8/scsi_temperature.8.gz +man/man8/sg3_utils.8.gz +man/man8/sg_bg_ctl.8.gz man/man8/sg_compare_and_write.8.gz man/man8/sg_decode_sense.8.gz man/man8/sg_format.8.gz @@ -107,11 +117,13 @@ man/man8/sg_sat_identify.8.gz man/man8/sg_sat_phy_event.8.gz man/man8/sg_sat_read_gplog.8.gz man/man8/sg_sat_set_features.8.gz +man/man8/sg_seek.8.gz man/man8/sg_senddiag.8.gz -man/man8/sg_ses_microcode.8.gz man/man8/sg_ses.8.gz +man/man8/sg_ses_microcode.8.gz man/man8/sg_start.8.gz man/man8/sg_stpg.8.gz +man/man8/sg_stream_ctl.8.gz man/man8/sg_sync.8.gz man/man8/sg_timestamp.8.gz man/man8/sg_turs.8.gz @@ -123,6 +135,6 @@ man/man8/sg_write_buffer.8.gz man/man8/sg_write_long.8.gz man/man8/sg_write_same.8.gz man/man8/sg_write_verify.8.gz +man/man8/sg_write_x.8.gz man/man8/sg_zone.8.gz -man/man8/sg3_utils.8.gz @dir include/scsi