From owner-freebsd-ports@freebsd.org Sat Sep 16 18:11:03 2017 Return-Path: Delivered-To: freebsd-ports@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 821B4E25546 for ; Sat, 16 Sep 2017 18:11:03 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 5F120835BA for ; Sat, 16 Sep 2017 18:11:03 +0000 (UTC) (envelope-from julian@elischer.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5E3AEE25545; Sat, 16 Sep 2017 18:11:03 +0000 (UTC) Delivered-To: ports@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 5DD87E25544 for ; Sat, 16 Sep 2017 18:11:03 +0000 (UTC) (envelope-from julian@elischer.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B4F45835B6; Sat, 16 Sep 2017 18:11:02 +0000 (UTC) (envelope-from julian@elischer.org) Received: from Julian-MBP3.local (106-69-255-169.dyn.iinet.net.au [106.69.255.169]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id v8GIAs63047882 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sat, 16 Sep 2017 11:10:59 -0700 (PDT) (envelope-from julian@elischer.org) Subject: Re: How to make www/npm pick www/node4 and www/node6 instead of www/node? To: Sunpoet Po-Chuan Hsieh , Marcin Cieslak Cc: ports , bhughes@freebsd.org References: From: Julian Elischer Message-ID: <7e9b5194-88ff-5f1b-c2ee-859b76f55c77@elischer.org> Date: Sun, 17 Sep 2017 02:10:48 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Sep 2017 18:11:03 -0000 On 16/9/17 9:40 pm, Sunpoet Po-Chuan Hsieh wrote: > On Sun, Sep 10, 2017 at 4:25 AM, Marcin Cieslak wrote: > >> Hello, >> >> in the past (before r414303[1]) >> [1] https://svnweb.freebsd.org/ports/head/www/npm/Makefile?view= >> log&pathrev=414303 >> >> npm had a couple of OPTIONS to select which node engine should be used. >> >> Now this is all gone and replaced with >> >> RUN_DEPENDS= node>=0.8.0:www/node >> >> >> I am trying to build node-sass binaries for FreeBSD (I used to publish >> them in the past) >> and that requires running poudriere against multiple engines. >> >> The following attempt to cheat does not help: >> >> poudriere bulk -j node4_10_3_i386 -p exp www/node4 >> textproc/node-sass >> >> (textproc/node-sass is my custom port https://github.com/saper/ports >> -exp/tree/master/textproc/node-sass) >> >> since poudriere starts to build www/node4 and www/node in parallel. >> >> >> Would that help if the npm dependency were changed to >> >> RUN_DEPENDS= node:www/node >> >> so that only existing executable is needed? How could I tell poudriere to >> pick node4 first? >> >> I used to maintain a private copy of the npm port with lots of OPTIONS and >> this is a PITA. >> >> >> >> I have separate poudriere jails for all architectures I have decided to >> support: >> >> $ poudriere jail -ln | grep ^node >> node4_10_3_amd64 >> node4_10_3_i386 >> node6_10_3_amd64 >> node6_10_3_i386 >> node8_10_3_amd64 >> node8_10_3_i386 >> >> In the past those had OPTIONS set to pick a proper engine as a www/npm >> dependency. >> >> >> How to do it cleanly now? >> >> Marcin > > Hello, > > I could add options for older node versions. > You could use these options to select different node versions for your > poudriere builds. > > On the other hand, I'm planning a change for npm port. > It includes: > - Add slave ports of npm (e.g. npm-node4, npm-node6) for older node > versions. > - Remove www/npm{2,3,4}. > > With this change, npm packages of different node version could be built by > FreeBSD cluster. > > I'm looking forward to bhughes@'s comment. > > Regards, > sunpoet we use the npm 3 port at work with node 6 hopefully we will able to upgrade soon but please dont take them away yet. > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"