From owner-freebsd-ports@freebsd.org Sat Sep 16 13:41:01 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 16CF0E172DF for ; Sat, 16 Sep 2017 13:41:01 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E55AC766FB for ; Sat, 16 Sep 2017 13:41:00 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: by mailman.ysv.freebsd.org (Postfix) id E1803E172DE; Sat, 16 Sep 2017 13:41:00 +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 E0F4FE172DD for ; Sat, 16 Sep 2017 13:41:00 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 523F5766F5 for ; Sat, 16 Sep 2017 13:41:00 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: by mail-io0-x234.google.com with SMTP id w94so12501995ioi.7 for ; Sat, 16 Sep 2017 06:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sunpoet-net.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=pbvREKFKMmSVIpoNGaFBJIMhYnQq6uS6I21e3m0LMpk=; b=Te9l2VYoQMjCi4QL1wBfSalBo0OJ8dGnbTjTvOghrB5E1SI6hg5LOsPrOuZqmgEtKl R2JSsBsnp7aoAsqFn3bwEf0Uwlwvq9nC5M75cw5wlYk+dfJi3HiN5q/zRmsqkzzhlt1P 8dl1cUVHlWY6tUrogVq1xbfZnOZF1VGWGn+HWvWiJ3k5ojFB8J1YqXkkDFOIEWl+1ntE MIk4/EdYIqwxV6gavvMzKMLVtl3/cD3FAQnYIUhcfrjvdkyHvoy4hEBQOUfJpL98fOn4 gSSqgcJgcehZiECljw0bEDu7USYs4JnRBzpeGN1ftu3N0quN0Qm+XX6jg9vvT/V5YLtD 0bUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=pbvREKFKMmSVIpoNGaFBJIMhYnQq6uS6I21e3m0LMpk=; b=kXX6lodmBBUVAcuPMLWa/kYAdYVYLIDvdiAVIG7O9U0NW19JIeQ8ujlIITklg+Tzwu csQKE8tC33BIiavlsh8L+c+tajEfz7Y0WsZK4pZH+dRWyu5ZALs+q1jQkNtDFnOtSKrO OncVJy7YV09iG7tS6DM7XthJ6EhsxXQ+fmRhi6ueWKBDdmn/VR7vYz1wI9hVyo4BGCHL A7Dd/0h5WiBiEuqEmzvACgaCLRUsoGcL8ZnTezKWYV/gEmb2brKq4vXzOg28obbq5yI5 Z/uV9Tex0NF59FAcDQDhciWtQr96tK82+3s3m9rrgjwxIRmyRNYJ2zqA1Y4yyjQ07Jj/ 0taw== X-Gm-Message-State: AHPjjUi80kS5BRxHcPEkNIhkIn6kLYx9EG2ogJw2fB5VjITEJl7PZ2Zo XEH4iE+O4gvmTtmiOa95E5YOqXOxwFZ9uAvkcd3XraeO X-Google-Smtp-Source: AOwi7QBb36V6fj1q7FCIsVr1A/rDsJElAv84IZSNlXULO5qpuYRxgrDv+VH5tdjWw9Bu1zTbnaHRK/8vAshpe7dfuFA= X-Received: by 10.107.148.65 with SMTP id w62mr12684092iod.259.1505569259328; Sat, 16 Sep 2017 06:40:59 -0700 (PDT) MIME-Version: 1.0 Sender: sunpoet@sunpoet.net Received: by 10.2.3.205 with HTTP; Sat, 16 Sep 2017 06:40:18 -0700 (PDT) In-Reply-To: References: From: Sunpoet Po-Chuan Hsieh Date: Sat, 16 Sep 2017 21:40:18 +0800 X-Google-Sender-Auth: -AeV_pZ-VWmZYl1ye1ZcRQ5VxzY Message-ID: Subject: Re: How to make www/npm pick www/node4 and www/node6 instead of www/node? To: Marcin Cieslak Cc: ports , bhughes@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 13:41:01 -0000 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