From owner-freebsd-gnome@FreeBSD.ORG Tue Nov 25 08:03:00 2014 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 479892C1; Tue, 25 Nov 2014 08:03:00 +0000 (UTC) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.29.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 014B4EF4; Tue, 25 Nov 2014 08:02:59 +0000 (UTC) Received: from [89.182.40.84] (helo=localhost) by smtprelay02.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1XtB5F-0007Pd-8v; Tue, 25 Nov 2014 09:02:49 +0100 Date: Tue, 25 Nov 2014 09:02:48 +0100 From: Marcus von Appen To: Antoine Brodin Subject: Re: /usr/ports/devel/py-gobject3: typo? Message-ID: <20141125080248.GA1026@medusa.sysfault.org> Reply-To: Marcus von Appen References: <20140916124035.2217ba67f72bce56e56eb677@3dresearch.com> <546F767B.4070702@missouri.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7AUc2qLy4jB3hD7Z" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Df-Sender: MTEyNTc0Mg== Cc: "Montgomery-Smith, Stephen" , "gnome@FreeBSD.org" , Janos Dohanics X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2014 08:03:00 -0000 --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On, Tue Nov 25, 2014, Antoine Brodin wrote: > On Tue, Nov 25, 2014 at 5:38 AM, Jia-Shiun Li wrote: > > See if this is helpful to you.. > > > > I encountered this in the middle of building gnome3-lite. On my case > > py-gobject3 builds fine alone but fails if built as dependency. > > > > When failing, there is no > > pygobject-3.14.0-py2.7-freebsd-11.0-CURRENT-amd64.egg-info > > as requested in install phase, but there does have > > pygobject-3.14.0-pypython2.7-freebsd-11.0-CURRENT-amd64.egg-info > > in the directory. looks something messed up PYTHON_VER for plist. > > > > > > The easier way to reproduce is > > cd /usr/ports/accessibility/caribou && make > > vs. > > cd /usr/ports/devel/py-gobject3 && make install > > > > config.log files from both do not differ. It is more likely 'make > > install' causing the problem. > > > > > > My temporary workaround is to rename the file as plist required and continue. > > Hi mva@, > > Could you have a look at this? > I believe that the DEPENDS_ARGS+=PYTHON_VERSION=${PYTHON_VERSION} in > python.mk can cause this kind of issue for some autoconf based > projects. > In python.mk, PYTHON_VERSION=python2.7, but in some autoconf based > projects PYTHON_VERSION=2.7 (${PYTHON} -c "import sys; > sys.stdout.write(sys.version[:3])" 2>/dev/null) > So the DEPEND_ARGS may pollute the build of dependencies... Yes, it looks like DEPENDS_ARGS is the culprit here. The conditionals within the configure script of pygobject3-common can run into situations, where they do not override PYTHON_VERSION properly. We have two ways around that: - override PYTHON_VERSION in the individual ports, which break that way - quickly done - has to be done on a port-per-port basis - adds another "hack" to maintain per port - rename PYTHON_VERSION in the ports infrastructure to something else - more clean approach(?) - not done quickly - may affect users using PYTHON_VERSION actively - may need other ports to receive additional changes - needs a full exp-run (without isolations, so poudriere is a no-op) As workaround, I'd go with the first option for now. Depending on how the gnome stuff evolves, we may need to look into option two as well. Cheers Marcus --7AUc2qLy4jB3hD7Z Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlR0N6gACgkQi68/ErJnpkfC2wCgzOo8hzdenlIvXbSK6oEyHUt6 q0oAn2oW50xIrz7kWZ2Tr3EykZ3r3AOB =szta -----END PGP SIGNATURE----- --7AUc2qLy4jB3hD7Z--