GNU bug report logs - #24507
noinst_PYTHON breaks uninstall of Python files

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake; Reported by: Akim Demaille <akim@HIDDEN>; dated Thu, 22 Sep 2016 09:49:01 UTC; Maintainer for automake is bug-automake@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Sep 2016 09:48:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 22 05:48:28 2016
Received: from localhost ([127.0.0.1]:60213 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bn0cA-0000TK-TG
	for submit <at> debbugs.gnu.org; Thu, 22 Sep 2016 05:48:28 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52651)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akim@HIDDEN>) id 1bn0c9-0000T8-AP
 for submit <at> debbugs.gnu.org; Thu, 22 Sep 2016 05:48:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <akim@HIDDEN>) id 1bn0c2-0007CL-UM
 for submit <at> debbugs.gnu.org; Thu, 22 Sep 2016 05:48:15 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37119)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <akim@HIDDEN>) id 1bn0c2-0007CH-Rh
 for submit <at> debbugs.gnu.org; Thu, 22 Sep 2016 05:48:14 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43620)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <akim@HIDDEN>) id 1bn0c1-0000kC-GY
 for bug-automake@HIDDEN; Thu, 22 Sep 2016 05:48:14 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <akim@HIDDEN>) id 1bn0bx-00078t-CN
 for bug-automake@HIDDEN; Thu, 22 Sep 2016 05:48:12 -0400
Received: from smtp.lrde.epita.fr ([163.5.55.2]:48577
 helo=kaboul.lrde.epita.fr) by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <akim@HIDDEN>) id 1bn0bx-00075N-50
 for bug-automake@HIDDEN; Thu, 22 Sep 2016 05:48:09 -0400
Received: from erebus.lrde.epita.fr (erebus.lrde.epita.fr [192.168.101.165])
 by kaboul.lrde.epita.fr (Postfix) with ESMTPSA id 4A5BF48C79
 for <bug-automake@HIDDEN>; Thu, 22 Sep 2016 11:48:00 +0200 (CEST)
From: Akim Demaille <akim@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Subject: noinst_PYTHON breaks uninstall of Python files
Message-Id: <E30C725B-81A7-4AC0-9DA2-6929CB054FE3@HIDDEN>
Date: Thu, 22 Sep 2016 11:48:00 +0200
To: Automake Bugs <bug-automake@HIDDEN>
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
X-Mailer: Apple Mail (2.3124)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

Hi Friends!

> $ cat configure.ac
> AC_INIT([foo], [1.0])
> AM_INIT_AUTOMAKE([1.15 foreign])
> AM_PATH_PYTHON
> AC_OUTPUT([Makefile])
> $ cat Makefile.am
> noinst_PYTHON =3D foo.py
> python_PYTHON =3D bar.py
> $ autoreconf -fi
> $ grep am__pep3147_tweak Makefile.in
>         py_files_pep3147=3D`echo "$$py_files" | $(am__pep3147_tweak)`; =
\
> $

Now, if I remove the noinst, am__pep3147_tweak is properly defined.

> $ cat Makefile.am
> python_PYTHON =3D bar.py
> $ autoreconf -fi
> $ grep am__pep3147_tweak Makefile.in
> am__pep3147_tweak =3D \
>         py_files_pep3147=3D`echo "$$py_files" | $(am__pep3147_tweak)`; =
\
> $


At runtime, it results in:

> $ make uninstall-nodist_vcsn_tools_pythonPYTHON
> make: Entering directory `_build/36s'
> /bin/sh: command substitution: line 7: syntax error: unexpected end of =
file
>=20
>  ( cd '/opt/gostai/lib/python3.5/site-packages/vcsn_tools' && rm -f =
config.py )
>  ( cd '/opt/gostai/lib/python3.5/site-packages/vcsn_tools' && rm -f =
config.pyc )
>  ( cd '/opt/gostai/lib/python3.5/site-packages/vcsn_tools' && rm -f =
config.pyo )
>  ( cd '/opt/gostai/lib/python3.5/site-packages/vcsn_tools' && rm -f c =
)
>  ( cd '/opt/gostai/lib/python3.5/site-packages/vcsn_tools' && rm -f o =
)
> Compilation finished: /Users/akim/src/lrde/2: build-for-darwin -j3 =
uninstall-nodist_vcsn_tools_pythonPYTHON


That=E2=80=99s Automake 1.15.  Of course the `c` and `o` are errors, =
resulting
from the missing definition of am__pep3147_tweak (as is the unexpected
end of file).

Sure, I can use noinst_SCRIPTS etc., but it was handy for me to have
a variable for all my Python build-scripts.





Acknowledgement sent to Akim Demaille <akim@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#24507; Package automake. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.