Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Sep 2018 16:17:42 +0200
From:      =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= <fernape@freebsd.org>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org,  svn-ports-head@freebsd.org
Subject:   Re: svn commit: r479196 - head/sysutils/smartmontools/files
Message-ID:  <CAGwOe2YTHNJ_NtE8Z5Ox_F%2B_hFGeZ2QorLy59-cRAdb-SjyJRQ@mail.gmail.com>
In-Reply-To: <20180907160017.r5vf67bnkdqgkwdx@ivaldir.net>
References:  <201809071545.w87FjEBE098699@repo.freebsd.org> <20180907160017.r5vf67bnkdqgkwdx@ivaldir.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 7, 2018 at 6:00 PM Baptiste Daroussin <bapt@freebsd.org> wrote:
>
> On Fri, Sep 07, 2018 at 03:45:14PM +0000, Fernando Apestegu=C3=ADa 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 chec=
k 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
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
> > --- 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 >=3D 1200058
> > ++#if __FreeBSD_version >=3D 1200058 && __FreeBSD_version < 1200081
> >  +  pt.cmd.opc_fuse =3D NVME_CMD_SET_OPC(in.opcode);
> >  +#else
> >     pt.cmd.opc =3D in.opcode;
> >
> Is it worth keeping a patch for just a very tiny set of revision of -HEAD=
?

The patch is pretty simple and small. I don't think it harms to have
it around for a while. But I agree that, at some point in the future
(when 12.0-RELEASE is out?), this could be deleted and if someone is
in between the problematic revisions, ask them politely to upgrade.

Cheers
>
> Best regards,
> Bapt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGwOe2YTHNJ_NtE8Z5Ox_F%2B_hFGeZ2QorLy59-cRAdb-SjyJRQ>