svn commit: r479196 - head/sysutils/smartmontools/files

Baptiste Daroussin bapt at FreeBSD.org
Fri Sep 7 16:00:19 UTC 2018


On Fri, Sep 07, 2018 at 03:45:14PM +0000, Fernando Apesteguía wrote:
> 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 at 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;
> 
Is it worth keeping a patch for just a very tiny set of revision of -HEAD?

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20180907/b84eba3d/attachment.sig>


More information about the svn-ports-head mailing list