From owner-freebsd-ports@FreeBSD.ORG Thu Apr 17 01:47:07 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B37B0F5E; Thu, 17 Apr 2014 01:47:07 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 67E851182; Thu, 17 Apr 2014 01:47:07 +0000 (UTC) Received: from Alfreds-MacBook-Pro.local (unknown [50.204.88.51]) by elvis.mu.org (Postfix) with ESMTPSA id A403A1A3C26; Wed, 16 Apr 2014 18:47:05 -0700 (PDT) Message-ID: <534F32A8.8010206@freebsd.org> Date: Wed, 16 Apr 2014 18:47:20 -0700 From: Alfred Perlstein Organization: FreeBSD User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: ports@freebsd.org, Baptiste Daroussin , Bryan Drewery Subject: Please some help with port options in the new world order. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2014 01:47:07 -0000 Hey folks, I'm having a heck of a time with the rsync port in our build system with latest ports: commit 08b15d01e41c418b5c5b35fb5b691f5e83d40a95 Author: wg Date: Wed Apr 16 23:17:53 2014 +0000 devel/py-hgsubversion: update to 1.6 and use auto plist This is the error I am getting: + chroot /usr/home/alfred/freenas/os-base/amd64/_.w /bin/sh -exc 'env TARGET=amd64 TARGET_ARCH=amd64 NAS_PORTS_DIRECT=1 make __MAKE_CONF=/usr/home/alfred/freenas/os-base/amd64/make.conf.build SRC_BASE=/usr/src WRKDIRPREFIX=/usr/workdir -C /usr/ports_dir/net/rsync clean all package install BATCH=yes -DUSE_PACKAGE_DEPENDS WITH+=ACL WITH+=ICONV -DFORCE_PACKAGE -DFORCE_PKG_REGISTER' + env TARGET=amd64 TARGET_ARCH=amd64 NAS_PORTS_DIRECT=1 make __MAKE_CONF=/usr/home/alfred/freenas/os-base/amd64/make.conf.build SRC_BASE=/usr/src WRKDIRPREFIX=/usr/workdir -C /usr/ports_dir/net/rsync clean all package install BATCH=yes -DUSE_PACKAGE_DEPENDS WITH+=ACL WITH+=ICONV -DFORCE_PACKAGE -DFORCE_PKG_REGISTER ===> Cleaning for rsync-3.1.0_3 ===> License GPLv3 accepted by the user ====> You cannot select multiple options from the PTS radio *** Error code 1 The reason this is happening is because the nanobsd build (actually freenas-ish) has this code that looks like this: add_port net/rsync WITH+="ACL" WITH+="ICONV" The "add_port" is a shell function that takes its remaining args and passes them down into a closure made like so: add_port() { .... echo "Package is not yet built: $port" eval " add_port_${port} () { do_add_port ${repo_path} ${port_path} $* } customize_cmd add_port_${port} " .... } That means I can't pass an option such as: WITH="ACL ICONV" instead I find that I have to pass them individually which is why I am trying: WITH+="ACL" WITH+="ICONV" Unfortunately this causes the port to freak out. This USED to work back in an earlier ports tree from 2 months ago by doing this: add_port net/rsync OPTIONS_FILE_SET+=ACL OPTIONS_FILE_SET+=ICONV However that gives the same error message now from the build ("====> You cannot select multiple options from the PTS radio"). Any tips on getting around this? It's very frustrating. What is really strange is that OUTSIDE of the nanobsd build doing a simple: cd /usr/port/net/rsync && make WITH+=ACL WITH+=ICONV seems to work. Any idea why this is happening? -Alfred