From owner-svn-src-head@freebsd.org Mon Mar 6 19:47:52 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0BF0CFBCD4; Mon, 6 Mar 2017 19:47:52 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (glebi.us [96.95.210.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9CB48192B; Mon, 6 Mar 2017 19:47:52 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.15.2/8.15.2) with ESMTPS id v26JI5R6080466 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 6 Mar 2017 11:18:05 -0800 (PST) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebi.us (8.15.2/8.15.2/Submit) id v26JI50e080465; Mon, 6 Mar 2017 11:18:05 -0800 (PST) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@FreeBSD.org using -f Date: Mon, 6 Mar 2017 11:18:05 -0800 From: Gleb Smirnoff To: Mark Linimon Cc: Benjamin Kaduk , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , Ravi Pokala , "src-committers@freebsd.org" , John Baldwin Subject: Re: svn commit: r314373 - in head: . etc/defaults etc/rc.d lib/libc/regex share/man/man4/man4.i386 share/man/man5 sys/amd64/conf sys/boot/forth sys/compat/svr4 sys/conf sys/dev/streams sys/i386/conf sy... Message-ID: <20170306191805.GC1044@FreeBSD.org> References: <201702280514.v1S5EhPq060885@repo.freebsd.org> <1969312.3TTRqhLH9r@ralph.baldwin.cx> <20170228193605.GJ1044@FreeBSD.org> <20170228213044.GK1044@FreeBSD.org> <20170228235053.GB10976@lonesome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170228235053.GB10976@lonesome.com> User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 19:47:53 -0000 Ben and Mark, thanks for explanation! I'll document that 1200023 also marks removal of SVR4. On Tue, Feb 28, 2017 at 05:50:53PM -0600, Mark Linimon wrote: M> On Tue, Feb 28, 2017 at 01:30:44PM -0800, Gleb Smirnoff wrote: M> > How can I check the __FreeBSD_version in a port Makefile? My understanding M> > is that there is no standard way for such thing. M> M> There are hundreds of examples in port Makefiles. I suppose the PH will need M> to be updated to include some of them. It is hinted at under "INCLUDE" in M> https://www.freebsd.org/doc/en/books/porters-handbook/dads-noinstall.html M> but not made specific. M> M> Some quick examples: M> M> devel/cloudabi-toolchain/Makefile:.if ${OSVERSION} >= 1100100 M> M> devel/cvs-syncmail/Makefile:.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1000000 M> M> devel/trio/Makefile.orig:# NB: OSVERSION was not incremented for r308559, so we use the earlier M> devel/trio/Makefile.orig:# 1200014 as a surrogate for now. M> devel/trio/Makefile.orig:.if ${OSVERSION} < 1100506 || ( ${OSVERSION} >= 1200000 && ${OSVERSION} < 1200014 ) M> devel/trio/Makefile.orig:BROKEN_aarch64= needs fixes from r308375, r308487, and/or r308559 M> devel/trio/Makefile.orig:.endif M> M> emulators/i386-wine/Makefile.inc:.if ${OPSYS} != FreeBSD || (!(${OSVERSION} < 1000000) && !(${OSVERSION} >= 1003000 && ${OSVERSION} < 1100000) && !(${OSVERSION} >= 1100121 && ${OSVERSION} < 1200000) && !(${OSVERSION} >= 1200019 && ${OSVERSION} < 1300000)) M> M> lang/ruby22/Makefile:.if exists(/usr/sbin/dtrace) && (${OSVERSION} > 1100032) && (${ARCH} == "amd64" || ${ARCH} == "i386") M> M> lang/tcc/Makefile:.if ${CC:T:M*clang*} || ${OSVERSION} >= 1000024 M> M> sysutils/e2fsprogs/Makefile:.if !empty(PORT_OPTIONS:MNOTESTS) && (${OPSYS} == FreeBSD) && (${OSVERSION} >= 1100000 || ((${ARCH} != i386) && (${ARCH} != amd64))) M> M> However, I am kind of shocked that this is not well understood -- M> especially after I have tried so many times to convince src committers M> to update FreeBSD_version in case of src changes that affect (e.g. break) M> ports. M> M> These are the kinds of things that ports committers have to use to work M> around changes in the src tree. Skipping OSVERSION updates makes this M> work more complicated. M> M> mcl -- Totus tuus, Glebius.