Fw: Re: svn commit: r431339 - head/www/chromium

Carlos J. Puga Medina cpm at FreeBSD.org
Tue Jan 17 11:54:48 UTC 2017


On Tue, 2017-01-17 at 20:32 +0900, Tomoaki AOKI wrote:
> With r309124, __FreeBSD_version is bumped from 1200016 to 1200017.
> So ${OSVERSION} should be checked "newer than 1200016" for head,
> or "newer than or equal to 1200017".
> 
> https://svnweb.freebsd.org/base?view=revision&revision=309124
> https://svnweb.freebsd.org/base/head/sys/sys/param.h?r1=309017&r2=309
> 124
> 
> 
> Also, noticed that ${OSVERSION} should be 1100508, not 1100507 for
> stable/11 if checking "newer than or equal to" basis.
> 
> https://svnweb.freebsd.org/base?view=revision&revision=310618
> https://svnweb.freebsd.org/base/stable/11/sys/sys/param.h?r1=310120&r
> 2=310618
> 
> 
> So if you prefer to check vs 1200017, below would be conforming.
> 
> 
> .if ${OSVERSION} >= 1200017 || (${OSVERSION} >= 1100508 &&
> ${OSVERSION}〓< 1200000)
> EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-new
> .else
> EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-old
> .endif
> 
> 

Fixed in r431728

> Regards.
> 
> 
> On Tue, 17 Jan 2017 11:58:26 +0100
> "Carlos J. Puga Medina" <cpm at FreeBSD.org> wrote:
> 
> > 
> > On Tue, 2017-01-17 at 18:53 +0900, Tomoaki AOKI wrote:
> > > 
> > > Sorry, it was partially incorrect (not tested on head).
> > > Was OK for stable/11, but reversed for head.
> > > 
> > > Below should work properly both stable/11 and head.
> > > 
> > > 
> > > .if ${OSVERSION} > 1200016 || (${OSVERSION} >= 1100507 &&
> > > ${OSVERSION}
> > > < 1200000)
> > > EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-new
> > > .else
> > > EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-old
> > > .endif
> > > 
> > Mmm... It should be as following:
> > 
> > .if ${OSVERSION} > 1200017 || (${OSVERSION} >= 1100507 &&
> > ${OSVERSION}>〓< 1200000)
> > EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-new
> > .else
> > EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-old
> > .endif
> > 
> > clang was updated to 3.9.0 on 12-CURRENT (r309124)
> > 
> > https://www.freebsd.org/doc/en/books/porters-handbook/versions.html
> > #ver
> > sions-12
> > 
> > > 
> > > 
> > > After writing this, I found r431706. This also is partially
> > > incorrect.
> > > Comparing with previous one, patch file name is exchanged,
> > > causing OK
> > > for head but reversed for stable/11.
> > > 
> > Thanks for reporting, Tomoaki
> > 
> > > 
> > > Regards.
> > > 
> > > 
> > > On Sat, 14 Jan 2017 23:16:17 +0900
> > > Tomoaki AOKI <junchoon at dec.sakura.ne.jp> wrote:
> > > 
> > > > 
> > > > 
> > > > Thanks for looking in. Yours looks better than mine.
> > > > 
> > > > In most cases, currently-committed one would be fine.
> > > > But once someone sticking on revision range I noted (with some
> > > > reason)
> > > > complains (i.e., sent PR) , your new one should be better
> > > > committed.
> > > > 
> > > > Thanks again.
> > > > 
> > > > 
> > > > On Fri, 13 Jan 2017 13:33:22 +0100
> > > > "Carlos J. Puga Medina" <cpm at FreeBSD.org> wrote:
> > > > 
> > > > > 
> > > > > 
> > > > > On Fri, 2017-01-13 at 15:45 +0900, Tomoaki AOKI wrote:
> > > > > > 
> > > > > > 
> > > > > > Hi!
> > > > > > Resent as missingly sent res to improper ML (freebsd-
> > > > > > ports).
> > > > > > It should be unclear there. Sigh...
> > > > > > 
> > > > > > 
> > > > > > Begin forwarded message:
> > > > > > 
> > > > > > Date: Fri, 13 Jan 2017 15:29:06 +0900
> > > > > > From: Tomoaki AOKI <junchoon at dec.sakura.ne.jp>
> > > > > > To: freebsd-ports at freebsd.org
> > > > > > Cc: cpm at FreeBSD.org
> > > > > > Subject: Re: svn commit: r431339 - head/www/chromium
> > > > > > 
> > > > > > 
> > > > > > Hi!
> > > > > > 
> > > > > > Can we assume all -head users update src at least "per
> > > > > > month"
> > > > > > basis?
> > > > > > If so, no problem.
> > > > > > 
> > > > > > If not, as __FreeBSD_version 1200018 came on Dec 7 15:04:22
> > > > > > 2016 UTC
> > > > > > at
> > > > > > r309676, users sticking on src before this should need
> > > > > > EXTRA_PATCHES+=	${FILESDIR}/extra-patch-libc++-old.
> > > > > > 
> > > > > > This case, version check portion for 11 and 12 should be as
> > > > > > below.
> > > > > > 
> > > > > > 
> > > > > > .if ${OSVERSION} < 1200017
> > > > > > .if ${OSVERSION} > 1100507 && ${OSVERSION} < 1200000
> > > > > > EXTRA_PATCHES+=	${FILESDIR}/extra-patch-libc++-new
> > > > > > .else
> > > > > > EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-old
> > > > > > .endif
> > > > > > .else
> > > > > > EXTRA_PATCHES+=	${FILESDIR}/extra-patch-libc++-new
> > > > > > .endif
> > > > > > 
> > > > > > 
> > > > > To simplify the OSVERSION checks:
> > > > > 
> > > > > .if ${OSVERSION} < 1200017 || (${OSVERSION} >= 1100507 &&
> > > > > ${OSVERSION}
> > > > > < 1200000)
> > > > > EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-new
> > > > > .else
> > > > > EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-old
> > > > > .endif
> > > > > 
> > > > > > 
> > > > > > 
> > > > > > This could be restored with yours after stable/12 is
> > > > > > branched.
> > > > > > 
> > > > > > Or making ports/UPDATING entry for -head users to update to
> > > > > > latest
> > > > > > base (at least after r309676) first before updating
> > > > > > chromium
> > > > > > could
> > > > > > be enough.
> > > > > > 
> > > > > > Regards.
> > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > Author: cpm
> > > > > > > Date: Fri Jan 13 03:18:05 2017
> > > > > > > New Revision: 431339
> > > > > > > URL: https://svnweb.freebsd.org/changeset/ports/431339
> > > > > > > 
> > > > > > > Log:
> > > > > > > 〓 - Wrap the entire block with OPSYS check
> > > > > > > 〓〓
> > > > > > > 〓 Reported by:	marino
> > > > > > > 〓 MFH:		2017Q1 (blanket)
> > > > > > > 
> > > > > > > Modified:
> > > > > > > 〓 head/www/chromium/Makefile
> > > > > > > 
> > > > > > > Modified: head/www/chromium/Makefile
> > > > > > > =========================================================
> > > > > > > ====
> > > > > > > ======
> > > > > > > ===========
> > > > > > > --- head/www/chromium/Makefile	Fri Jan 13 02:41:25
> > > > > > > 2017
> > > > > > 〓(r431338)
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > +++ head/www/chromium/Makefile	Fri Jan 13 03:18:05
> > > > > > 2017	(r431339)
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > @@ -187,15 +187,17 @@ GN_ARGS+=
> > > > > > is_clang=true
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 〓EXTRA_PATCHES+=	${FILESDIR}/extra-patch-clang
> > > > > > > 〓.endif
> > > > > > > 〓
> > > > > > > -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100508
> > > > > > > +.if ${OPSYS} == FreeBSD
> > > > > > > +.if ${OSVERSION} < 1100508
> > > > > > > 〓EXTRA_PATCHES+=	${FILESDIR}/extra-patch-libc++-
> > > > > > > old
> > > > > > > 〓.else
> > > > > > > 〓EXTRA_PATCHES+=	${FILESDIR}/extra-patch-libc++-
> > > > > > > new
> > > > > > > 〓.endif
> > > > > > > 〓
> > > > > > > -.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000
> > > > > > > +.if ${OSVERSION} < 1100000
> > > > > > > 〓EXTRA_PATCHES+=	${FILESDIR}/extra-patch-10
> > > > > > > 〓.endif
> > > > > > > +.endif
> > > > > > > 〓
> > > > > > > 〓.if ! ${PORT_OPTIONS:MKERBEROS}
> > > > > > > 〓GN_ARGS+=	use_kerberos=true
> > > > > > --〓
> > > > > > Tomoaki AOKI〓〓〓〓<junchoon at dec.sakura.ne.jp>
> > > > > > 
> > > > > > 
> > > > > --〓
> > > > > Carlos Jacobo Puga Medina <cpm at FreeBSD.org>
> > > > > PGP fingerprint = C60E 9497 5302 793B CC2D〓〓BB89 A1F3 5D66
> > > > > E6D0
> > > > > 5453
> > > > --〓
> > > > 青木 知明〓〓[Tomoaki AOKI]〓〓〓〓<junchoon at dec.sakura.ne.jp>
> > -- 
> > Carlos Jacobo Puga Medina <cpm at FreeBSD.org>
> > PGP fingerprint = C60E 9497 5302 793B CC2D  BB89 A1F3 5D66 E6D0
> > 5453
> 
-- 
Carlos Jacobo Puga Medina <cpm at FreeBSD.org>
PGP fingerprint = C60E 9497 5302 793B CC2D  BB89 A1F3 5D66 E6D0 5453
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20170117/9a14dfdf/attachment.sig>


More information about the svn-ports-head mailing list