From owner-freebsd-python@FreeBSD.ORG Thu Feb 13 19:46:58 2014 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A1289D49; Thu, 13 Feb 2014 19:46:58 +0000 (UTC) Received: from mail-yh0-x22c.google.com (mail-yh0-x22c.google.com [IPv6:2607:f8b0:4002:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 11D091A8B; Thu, 13 Feb 2014 19:46:58 +0000 (UTC) Received: by mail-yh0-f44.google.com with SMTP id f73so10646320yha.17 for ; Thu, 13 Feb 2014 11:46:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=PhW3ZUNurxDQnKCw5zw396Q7WYhecJ4uZB3dIPTYIXA=; b=MIl5BHnL7Lbck8NjKBHkvSYt3T2sYiiqSfGdLTNSN8HVT53nPEysWXVnFjA63rljYr NdizyfzFLj0xePl05gvgpMGLKjFFTW5GP4EctwPAmDRKeXV/wZ6JUPuzwQPyR95wjbde QYwZb0O6W4EoklU0/17ETkvWNjCxbf0B0K5vxy39vjehYAUGwpOs1xrsgK3CAwENoTcM pvt6Sen3Zw2cFNgiF2JJAf/a4FJ6Q66yDW0puSZA8RTSw4uvAiWfd+0+5xlgECfQcu4d Qkz7nM6X8NBecpB1g/4S+Ylc6w8v1ue/uGQUZz/gfSuDEWWRJRok+TDGeYF7qdw7vSPL NiuA== MIME-Version: 1.0 X-Received: by 10.236.209.168 with SMTP id s28mr2895177yho.82.1392320817247; Thu, 13 Feb 2014 11:46:57 -0800 (PST) Sender: antoine.brodin.freebsd@gmail.com Received: by 10.170.81.4 with HTTP; Thu, 13 Feb 2014 11:46:57 -0800 (PST) In-Reply-To: References: <201402131903.s1DJ3Q6q070999@beefy1.isc.freebsd.org> Date: Thu, 13 Feb 2014 20:46:57 +0100 X-Google-Sender-Auth: Ipzm3tE5Vi5h9CeWWRPrWpi93IM Message-ID: Subject: Re: shebang problem with python, Was: [REL - head-i386-default][databases/postgresql-libpqxx] Failed for postgresql-libpqxx-4.0.1 in build From: Antoine Brodin To: Palle Girgensohn Content-Type: text/plain; charset=ISO-8859-1 Cc: pkg-fallout-builder@freebsd.org, Baptiste Daroussin , python@freebsd.org, "pkg-fallout@freebsd.org" , pgsql@freebsd.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Feb 2014 19:46:58 -0000 On Thu, Feb 13, 2014 at 8:22 PM, Palle Girgensohn wrote: > Hi python@ and bapt@, > > I'm usnure how to fix this problem. > > postgresql-libpqxx needs python (shebang:ed) during the build process, and this is defined in the port using > > USE_PYTHON_BUILD= yes > USES= gmake shebangfix > SHEBANG_FILES= ${WRKSRC}/tools/splitconfig > > > The shebangfix alters #!/usr/bin/python in tools/splitconfig to #!/usr/local/bin/python... > > But USE_PYTHON_BUILD only installs the python2 symlink, not the python symlink, so /usr/local/bin/python does not get installed in a clean room environment. > > I believe the port is agnostic to the version of python, so I don't want to enforce a specific version of python just for this port's build, but the build process does not automatically install the lang/python meta port. > > How is this supposed to work? Hi, You can use python_CMD= ${PYTHON_CMD} (currently installed python file name) Since it's only a build dependency and the splitconfig file is not packaged this shouldn't be a problem. Cheers, Antoine