From owner-svn-ports-head@FreeBSD.ORG Wed Jul 10 06:51:47 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 10B54E5B; Wed, 10 Jul 2013 06:51:47 +0000 (UTC) Date: Wed, 10 Jul 2013 06:51:47 +0000 From: Alexey Dokuchaev To: Baptiste Daroussin Subject: Re: svn commit: r318646 - head/graphics/scale2x Message-ID: <20130710065147.GA31974@FreeBSD.org> References: <201305210617.r4L6HRku045000@svn.freebsd.org> <20130521065944.GA54648@FreeBSD.org> <20130521133005.GE96836@ithaqua.etoilebsd.net> <20130522012737.GA27317@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130522012737.GA27317@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org, Martin Wilke X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jul 2013 06:51:47 -0000 On Wed, May 22, 2013 at 01:27:37AM +0000, Alexey Dokuchaev wrote: > On Tue, May 21, 2013 at 03:30:05PM +0200, Baptiste Daroussin wrote: > > On Tue, May 21, 2013 at 06:59:44AM +0000, Alexey Dokuchaev wrote: > > > On Tue, May 21, 2013 at 06:17:27AM +0000, Martin Wilke wrote: > > > > New Revision: 318646 > > > > URL: http://svnweb.freebsd.org/changeset/ports/318646 > > > > > > > > +OPTIONS_DEFINE= DOCS EXAMPLES > > > > +OPTIONS_DEFINE_i386= MMX > > > > > > > > [...] > > > > > > > > +.if ${PORT_OPTIONS:MMMX} > > > > +CPPFLAGS+= -DHAVE_MMX > > > > +.endif > > > > > > Do you think it would make sense to enable MMX option by default > > > depending on ${MACHINE_CPU:Mmmx}? > > > > That will not fit the builders it works properly when building locally > > but not in "package factories" except if I miss something. > > Hmm, perhaps you're right. I'll see if something can be tuned in bpm to > ensure that package factories will produce packages with conservative > defaults, yet allowing ports users to automatically pick suitable > optimizations. On the second thought, actually it looks like everything is fine. With empty /make.conf (or __MAKE_CONF=/dev/null), which is what I presume is true for package factories, MACHINE_CPU is just "i486", which is exactly the safe defaults. Users can set CPUTYPE?= in their make.conf to get augmented list of features. That said, I keep thinking that MMX should be enabled by default if MACHINE_CPU lists it; package builders will produce i486'ish packages, no? (Ditto for SSE, SSE2 in others ports.) ./danfe