Date: Mon, 1 Feb 2021 09:39:19 +0000 From: Alexander Richardson <arichardson@freebsd.org> To: Antoine Brodin <antoine@freebsd.org> Cc: src-committers <src-committers@freebsd.org>, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org, =?UTF-8?Q?T=C4=B3l_Coosemans?= <tijl@coosemans.org> Subject: Re: git: 7fa2f2a62f04 - main - Rename NO_WERROR -> MK_WERROR=no Message-ID: <CA%2BZ_v8qPrAsxwZaYaT7KD-V7=3JdXe-1pZNmjNBY17HFme-ibg@mail.gmail.com> In-Reply-To: <CAALwa8m31K9C3Rw=9TeRDA5S1ZNkbPsc=jW_-kbaOqC%2BwL5iUg@mail.gmail.com> References: <202101071105.107B5tUX011254@gitrepo.freebsd.org> <20210110121242.1d9809ff@coosemans.org> <CAALwa8m31K9C3Rw=9TeRDA5S1ZNkbPsc=jW_-kbaOqC%2BwL5iUg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 31 Jan 2021 at 19:12, Antoine Brodin <antoine@freebsd.org> wrote: > > On Sun, Jan 10, 2021 at 12:12 PM T=C4=B3l Coosemans <tijl@coosemans.org> = wrote: > > > > On Thu, 7 Jan 2021 11:05:55 GMT Alex Richardson > > <arichardson@FreeBSD.org> wrote: > > > The branch main has been updated by arichardson: > > > > > > URL: https://cgit.FreeBSD.org/src/commit/?id=3D7fa2f2a62f04f095e1e27a= d55aa22a8f59b1df8f > > > > > > commit 7fa2f2a62f04f095e1e27ad55aa22a8f59b1df8f > > > Author: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> > > > AuthorDate: 2021-01-06 17:55:06 +0000 > > > Commit: Alex Richardson <arichardson@FreeBSD.org> > > > CommitDate: 2021-01-07 09:31:03 +0000 > > > > > > Rename NO_WERROR -> MK_WERROR=3Dno > > > > > > As suggested in D27598. This also supports MK_WERROR.clang=3Dno a= nd > > > MK_WERROR.gcc=3Dno to support the existing NO_WERROR.<compiler> u= ses. > > > > > > Reviewed By: brooks > > > Differential Revision: https://reviews.freebsd.org/D27601 > > > --- > > > diff --git a/share/mk/bsd.opts.mk b/share/mk/bsd.opts.mk > > > index d0e7f1cb00ba..88c73cc6bfe4 100644 > > > --- a/share/mk/bsd.opts.mk > > > +++ b/share/mk/bsd.opts.mk > > > @@ -65,7 +65,8 @@ __DEFAULT_YES_OPTIONS =3D \ > > > SSP \ > > > TESTS \ > > > TOOLCHAIN \ > > > - WARNS > > > + WARNS \ > > > + WERROR > > > > > > __DEFAULT_NO_OPTIONS =3D \ > > > BIND_NOW \ > > > @@ -103,7 +104,8 @@ __DEFAULT_DEPENDENT_OPTIONS =3D \ > > > INSTALLLIB \ > > > MAN \ > > > PROFILE \ > > > - WARNS > > > + WARNS \ > > > + WERROR > > > .if defined(NO_${var}) > > > .error "NO_${var} is defined, but deprecated. Please use MK_${var}= =3Dno instead." > > > MK_${var}:=3Dno > > > > NO_WERROR is also used by some ports [1] (which have to build against > > multiple version of FreeBSD) and this turns it into an error. Can you > > remove this change or turn it into a warning maybe? Changes to share/m= k > > should always go through a ports exp-run IMHO. > > Ping Alex Richardson? > > Antoine (with hat: portmgr) Hi Antoine, I submitted https://reviews.freebsd.org/D28084 to change this error to a .i= nfo. However, T=C4=B3l said that there weren't many affected ports so this change should not be needed. I can commit this workaround, but if I do this just postpones the problem to when we want to remove the workaround (and might mean it will never be removed). Maybe those ports should just be built with a lower WARNS? Thanks, Alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BZ_v8qPrAsxwZaYaT7KD-V7=3JdXe-1pZNmjNBY17HFme-ibg>