From owner-freebsd-gnome@FreeBSD.ORG Fri Sep 7 03:00:09 2012 Return-Path: Delivered-To: gnome@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 89907106566C for ; Fri, 7 Sep 2012 03:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4E1D18FC0C for ; Fri, 7 Sep 2012 03:00:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q87308DR021339 for ; Fri, 7 Sep 2012 03:00:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q87308xn021325; Fri, 7 Sep 2012 03:00:08 GMT (envelope-from gnats) Date: Fri, 7 Sep 2012 03:00:08 GMT Message-Id: <201209070300.q87308xn021325@freefall.freebsd.org> To: gnome@FreeBSD.org From: "John W. O'Brien" Cc: Subject: Re: ports/171381: [patch] finance/gnucash fails to generate and install .pyc/.pyo files X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "John W. O'Brien" List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2012 03:00:09 -0000 The following reply was made to PR ports/171381; it has been noted by GNATS. From: "John W. O'Brien" To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/171381: [patch] finance/gnucash fails to generate and install .pyc/.pyo files Date: Thu, 06 Sep 2012 22:59:28 -0400 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 OK, so I did some more sleuthing, and while I am still nowhere near being the autotools ninja I think I would need to be to propose a proper fix, I will share my findings in the hope that such a ninja is listening. My first stop of note was the automake manual where I learned that the py-compile script, which is actually part of AM, is applied to properly-identified Python files. https://www.gnu.org/software/automake/manual/automake.html#Python So how are those files marked? See lines 5-10: http://svn.gnucash.org/trac/browser/gnucash/tags/2.4.11/src/optional/python-bindings/Makefile.am That doesn't look like what the AM manual says. How did it get to be that way? Here's the offending changeset in trunk... http://svn.gnucash.org/trac/changeset/21905 ... and the backport to the 2.4 series. http://svn.gnucash.org/trac/changeset/22020 Following the breadcrumbs back to the source, we find the report of a vague, unconfirmed problem with the patch that breaks the AM use of py-compile. https://bugzilla.gnome.org/show_bug.cgi?id=668196 The upshot is that any upstream-facing way to resolve this needs to accommodate this upstream bug. However, "accommodate" may mean "show why installing in different places is correct and not the cause of any issues on those platforms," but that sounds excessively difficult. In the mean time, I would offer an alternative patch, which merely performs a local revert of r22020, but I can't figure out how to tell ports that I want to regenerate the Makefile.in from the reverted Makefile.am. I've tried several basic combinations of the USE_AUTOTOOLS variable to no avail. If somebody gives me a gently push in the right direction, I'll gladly prepare that new patch. Regards, John -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQEcBAEBAgAGBQJQSWMNAAoJEEdKvTwaez9wnGQH/2+LAPtnAYcSKBQlcM2BYRPu IC2D2pboL9rFA7QF5z3vEhijohnVSgpgHZPEw8pHX8uDcbKQd3HmPk1T1Onk8OCz uqUqQtGpv5NH6Ch8hOafR2BZXDc+zkBonAR/Xq5K8yuYfZvcIwE+azPhEiKyZJV4 eJCrUYmztW2A4BVbuxBKpMY+hDCK6OBkunKu9p+jTv5ptn6UDW8Y5T5MhED4Ig6i 0B4HBZKz7wMomyl1Xi6gXnLGnKImPdaLKWXeB6qSi8M2XYa6o1iGvppqx4388JRS n0H4uFWh9oBhxhLRnAHYvSPB3oAFYNKBis+PlVX6144HCwpZxAQgwhJOcc7t08Y= =YYU4 -----END PGP SIGNATURE-----