GNU logs - #8362, boring messages


Message sent to owner <at> debbugs.gnu.org, bug-automake@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#8362: make install prefix inserted in source code with generated python files
Resent-From: "A.T.Hofkamp" <a.t.hofkamp@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-automake@HIDDEN
Resent-Date: Mon, 28 Mar 2011 07:56:01 +0000
Resent-Message-ID: <handler.8362.B.130129894119454 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 8362
X-GNU-PR-Package: automake
X-GNU-PR-Keywords: 
To: 8362 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-automake@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.130129894119454
          (code B ref -1); Mon, 28 Mar 2011 07:56:01 +0000
Received: (at submit) by debbugs.gnu.org; 28 Mar 2011 07:55:41 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Q47Ia-00053j-8S
	for submit <at> debbugs.gnu.org; Mon, 28 Mar 2011 03:55:40 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <a.t.hofkamp@HIDDEN>) id 1Q470U-0004dr-OL
	for submit <at> debbugs.gnu.org; Mon, 28 Mar 2011 03:36:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <a.t.hofkamp@HIDDEN>) id 1Q470O-0001WE-RR
	for submit <at> debbugs.gnu.org; Mon, 28 Mar 2011 03:36:53 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,
	T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:41860)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <a.t.hofkamp@HIDDEN>) id 1Q470O-0001W8-M3
	for submit <at> debbugs.gnu.org; Mon, 28 Mar 2011 03:36:52 -0400
Received: from [140.186.70.92] (port=33381 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Q470N-0007Rn-0j
	for bug-automake@HIDDEN; Mon, 28 Mar 2011 03:36:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <a.t.hofkamp@HIDDEN>) id 1Q470K-0001Vp-Ij
	for bug-automake@HIDDEN; Mon, 28 Mar 2011 03:36:49 -0400
Received: from mailhost.tue.nl ([131.155.2.19]:54874)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <a.t.hofkamp@HIDDEN>) id 1Q470K-0001Vc-Ay
	for bug-automake@HIDDEN; Mon, 28 Mar 2011 03:36:48 -0400
Received: from pastinakel.tue.nl (localhost [127.0.0.1])
	by mailhost.tue.nl (Postfix) with ESMTP id 37228730A2
	for <bug-automake@HIDDEN>; Mon, 28 Mar 2011 09:36:46 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tue.nl
Received: from mailhost.tue.nl ([131.155.2.19])
	by pastinakel.tue.nl (pastinakel.tue.nl [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id SPykl2C6h-uI for <bug-automake@HIDDEN>;
	Mon, 28 Mar 2011 09:36:45 +0200 (CEST)
Received: from se-162.se.wtb.tue.nl (se-162.se.wtb.tue.nl [131.155.63.35])
	by mailhost.tue.nl (Postfix) with ESMTP id ED9317309F
	for <bug-automake@HIDDEN>; Mon, 28 Mar 2011 09:36:45 +0200 (CEST)
Message-ID: <4D903A8D.2030309@HIDDEN>
Date: Mon, 28 Mar 2011 09:36:45 +0200
From: "A.T.Hofkamp" <a.t.hofkamp@HIDDEN>
User-Agent: Thunderbird 2.0.0.24 (X11/20101213)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------000201030900080803000806"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 199.232.76.165
X-Spam-Score: -6.6 (------)
X-Mailman-Approved-At: Mon, 28 Mar 2011 03:55:39 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

This is a multi-part message in MIME format.
--------------000201030900080803000806
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

As far as I know, "make install prefix=/path/to/writable/dir" should only change the place where 
files are copied to, instead of injecting that new prefix into the source code. However, for Python 
source files that are generated/modified during installation, this does not seem to hold:

------------- Makefile.am
prefix=@prefix@
exec_prefix=@exec_prefix@
libexecdir = @libexecdir@
libdir = @libdir@

PYTHON_VERSION=@PYTHON_VERSION@
SITEPACKAGES=$(libdir)/python$(PYTHON_VERSION)/site-packages
SED=@sed@

prog_PYTHON=prog/__init__.py prog/x.py
progdir = $(SITEPACKAGES)/prog

prog/x.py: x.src
         $(SED) -e "s,%LIBEXEC%,$(libexecdir)," < x.src > prog/x.py
-------------

prog/x.py is generated from x.src by inserting the libexecdir path into it.

During install, the following happens at my system:
(/somewhere is a fake path for demonstration purposes only,
  also replaced irrelevant lengthy output lines by ... )

+ ./configure --prefix=/somewhere
checking for a BSD-compatible install... /usr/bin/install -c
...

+ make
make: Nothing to be done for `all'.

+ make prefix=/home/hat/tmp/p/installed install
...
sed -e "s,%LIBEXEC%,/home/hat/tmp/p/installed/libexec," < x.src > prog/x.py
...


The prog/x.py rule was run during 'make install' rather than 'make'. As a result, the wrong 
libexecdir got included.

Tested with autoconf 2.59, automake 1.9.6
and (by temporary install) autoconf 2.68, automake 1.11.1


Attached a demo directory 'p' that demonstrates the issue.


--------------000201030900080803000806
Content-Type: application/x-tar;
 name="p.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="p.tar.gz"

H4sIAEUOi00AA+1YbW/iOBDu18uv8HFdFSSSkBBAWx0nWJrdor7AFXq6U1VlQ2LAR16s2NnS
f3/jJBDa1S530sLuSX5Em3g88Tg283geqE6TeKE7DokIdxyNPp98czQA7XZDXA347F43ODGM
lmW2G0az3TlpGKbVMk9Q49tP5XOkjLsJQidLl3/Vb1///xRUX2ss8Q4aY+/+t4xy/1tN2P+G
uMj9PwJ8PEc0iaq1cwUBaEIijirXZIbX2Ou+uR6+s/+0B28qyveeqMRBQHVvvjhwDJHinc6X
89+wtvlvNayWyP8G0IXM/yPgl5/1GYl0tlQY5kjFSE2RulYUTffiaE4WaQImlSZ4TtZdncUh
flriBCuhu8r/IRLBCgYBKnw+0if/o14YsS9548cG1e/s/sWNfcgYe85/w4Rir8j/VscS9V/D
7Mj67yiw125IA4zGz3wZR5DE8d/Y48jHYQwpnLicRAvElxjR3IGlM8YJTznJvWcBDjVFORMq
4gwRtutLXW/lLnAdAZVwFwQGDPVabSA38nPjOmvNOU6ySgRQkAg8BhEKW+kKsbwEuxz7aJ7E
IcrqWJQyEWViX8CcwtUZWuAIw1vgfGJuymMexwFDOPpEkjgKccTPi8FdL4g9Nyga4CkYsGxl
ZKeq8zjBZBHBnev7akhYFlBVvZg+Q0w4Tc+QH2NWDLqPRzOnjEy3d/sYVSluGXI5gr6yC5bJ
XlPYP1iTOOU05efIA6dXI+gBmen5HplaS2eEY7XYK6ZvF1hJME+TCF7k6zVi+TJiXGGqKIAp
ZmIaT4Qvld0FRRDybb1cUUN7q7Vfe7RfehjwkQfJQUDL76fmHkgG7tN/Zqn/zHbG/0Zb8v9x
0B844zv7zv69KvKypkB7eDucVh+AMgX3P9bRAzCn8wknDChfNF2Na8t4voKDo8dTrEXBIzx3
kz3n9O+no5v+lS0M4/700hn/Nb0c3Vbr9WzswaU9uHKmo9F1lWG/Dn+5eXT7fvjBeT+8tifV
hxvI+jkJ8GPWN7qfju+nMv0PA6qHq0PH2Kv/zJ36rwP5D96WJfP/GPiS/tsUQ9s66F+XQN/7
jST+C6i+YVvNDQ8UY9/53zKtTf43m01TnP9WU/7+exQUGqOXX3uKqN+djXGn0VOK4t4nCeqi
XtnKekprZlHyU9/5w76bDEe33d7Ldk+ZDKf2uD+46n+wJ93Tav5crRAlp9WX7rWXEkUBddft
QekAcYRaKUqM7mfSspQy4i6f4ml1N3Qtkzv5MJnneS4jlZ/Az76oCUKssPr2Z/B6NtXixWv1
Cvq1kJ2/7QSTDCghISEhISEhISEh8UPiH/Ig/pcAKAAA
--------------000201030900080803000806--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: "A.T.Hofkamp" <a.t.hofkamp@HIDDEN>
Subject: bug#8362: Acknowledgement (make install prefix inserted in source
 code with generated python files)
Message-ID: <handler.8362.B.130129894119454.ack <at> debbugs.gnu.org>
References: <4D903A8D.2030309@HIDDEN>
X-Gnu-PR-Message: ack 8362
X-Gnu-PR-Package: automake
Reply-To: 8362 <at> debbugs.gnu.org
Date: Mon, 28 Mar 2011 07:56:01 +0000

Thank you for filing a new bug report with GNU.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-automake@HIDDEN

If you wish to submit further information on this problem, please
send it to 8362 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
8362: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D8362
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to owner <at> debbugs.gnu.org, bug-automake@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#8362: make install prefix inserted in source code with generated python files
Resent-From: Ralf Wildenhues <Ralf.Wildenhues@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-automake@HIDDEN
Resent-Date: Mon, 28 Mar 2011 17:53:01 +0000
Resent-Message-ID: <handler.8362.B8362.130133472412265 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 8362
X-GNU-PR-Package: automake
X-GNU-PR-Keywords: 
To: "A.T.Hofkamp" <a.t.hofkamp@HIDDEN>
Cc: 8362 <at> debbugs.gnu.org
Received: via spool by 8362-submit <at> debbugs.gnu.org id=B8362.130133472412265
          (code B ref 8362); Mon, 28 Mar 2011 17:53:01 +0000
Received: (at 8362) by debbugs.gnu.org; 28 Mar 2011 17:52:04 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Q4Gbj-0003Bm-Ir
	for submit <at> debbugs.gnu.org; Mon, 28 Mar 2011 13:52:04 -0400
Received: from mailout-de.gmx.net ([213.165.64.23])
	by debbugs.gnu.org with smtp (Exim 4.69)
	(envelope-from <Ralf.Wildenhues@HIDDEN>) id 1Q4Gbg-0003BI-FY
	for 8362 <at> debbugs.gnu.org; Mon, 28 Mar 2011 13:52:01 -0400
Received: (qmail invoked by alias); 28 Mar 2011 17:51:53 -0000
Received: from xdsl-89-0-94-92.netcologne.de (EHLO localhost.localdomain)
	[89.0.94.92]
	by mail.gmx.net (mp025) with SMTP; 28 Mar 2011 19:51:53 +0200
X-Authenticated: #13673931
X-Provags-ID: V01U2FsdGVkX1+YEwUIrFiYT8Z8mkmitNXcNO3yJ37XvoiwV23fSw
	l8QXGHfdMMJW43
Received: from ralf by localhost.localdomain with local (Exim 4.72)
	(envelope-from <Ralf.Wildenhues@HIDDEN>)
	id 1Q4GbX-0006fz-Fj; Mon, 28 Mar 2011 19:51:51 +0200
Date: Mon, 28 Mar 2011 19:51:51 +0200
From: Ralf Wildenhues <Ralf.Wildenhues@HIDDEN>
Message-ID: <20110328175151.GC13973@HIDDEN>
References: <4D903A8D.2030309@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4D903A8D.2030309@HIDDEN>
Organization: Institute for Numerical Simulation, University of Bonn
User-Agent: Mutt/1.5.20 (2010-08-04)
X-Y-GMX-Trusted: 0
X-Spam-Score: -2.8 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.8 (--)

Hello,

* A.T.Hofkamp wrote on Mon, Mar 28, 2011 at 09:36:45AM CEST:
> As far as I know, "make install prefix=/path/to/writable/dir" should
> only change the place where files are copied to, instead of
> injecting that new prefix into the source code. However, for Python
> source files that are generated/modified during installation, this
> does not seem to hold:

> ------------- Makefile.am
> prefix=@prefix@
> exec_prefix=@exec_prefix@
> libexecdir = @libexecdir@
> libdir = @libdir@
> 
> PYTHON_VERSION=@PYTHON_VERSION@
> SITEPACKAGES=$(libdir)/python$(PYTHON_VERSION)/site-packages
> SED=@sed@
> 
> prog_PYTHON=prog/__init__.py prog/x.py
> progdir = $(SITEPACKAGES)/prog
> 
> prog/x.py: x.src
>         $(SED) -e "s,%LIBEXEC%,$(libexecdir)," < x.src > prog/x.py

Looks like it.  Can you work around this issue by adding

all-local: $(prog_PYTHON)

to the Makefile.am?

Thanks for the report,
Ralf




Message sent to owner <at> debbugs.gnu.org, bug-automake@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#8362: make install prefix inserted in source code with generated python files
Resent-From: "A.T.Hofkamp" <a.t.hofkamp@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-To: owner <at> debbugs.gnu.org
Resent-CC: bug-automake@HIDDEN
Resent-Date: Tue, 29 Mar 2011 06:19:01 +0000
Resent-Message-ID: <handler.8362.B8362.130137948221383 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 8362
X-GNU-PR-Package: automake
X-GNU-PR-Keywords: 
To: Ralf Wildenhues <Ralf.Wildenhues@HIDDEN>
Cc: "8362 <at> debbugs.gnu.org" <8362 <at> debbugs.gnu.org>
Received: via spool by 8362-submit <at> debbugs.gnu.org id=B8362.130137948221383
          (code B ref 8362); Tue, 29 Mar 2011 06:19:01 +0000
Received: (at 8362) by debbugs.gnu.org; 29 Mar 2011 06:18:02 +0000
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Q4SFe-0005Yq-1O
	for submit <at> debbugs.gnu.org; Tue, 29 Mar 2011 02:18:02 -0400
Received: from mailhost.tue.nl ([131.155.2.19])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <a.t.hofkamp@HIDDEN>) id 1Q4SFb-0005YZ-Im
	for 8362 <at> debbugs.gnu.org; Tue, 29 Mar 2011 02:18:00 -0400
Received: from pastinakel.tue.nl (localhost [127.0.0.1])
	by mailhost.tue.nl (Postfix) with ESMTP id A526D73038;
	Tue, 29 Mar 2011 08:17:53 +0200 (CEST)
X-Virus-Scanned: amavisd-new at tue.nl
Received: from mailhost.tue.nl ([131.155.2.19])
	by pastinakel.tue.nl (pastinakel.tue.nl [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id mDUckjmFG51N; Tue, 29 Mar 2011 08:17:53 +0200 (CEST)
Received: from se-162.se.wtb.tue.nl (se-162.se.wtb.tue.nl [131.155.63.35])
	by mailhost.tue.nl (Postfix) with ESMTP id 812D17300E;
	Tue, 29 Mar 2011 08:17:53 +0200 (CEST)
Message-ID: <4D917991.30705@HIDDEN>
Date: Tue, 29 Mar 2011 08:17:53 +0200
From: "A.T.Hofkamp" <a.t.hofkamp@HIDDEN>
User-Agent: Thunderbird 2.0.0.24 (X11/20101213)
MIME-Version: 1.0
References: <4D903A8D.2030309@HIDDEN> <20110328175151.GC13973@HIDDEN>
In-Reply-To: <20110328175151.GC13973@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -5.1 (-----)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.6 (----)

Ralf Wildenhues wrote:
> Looks like it.  Can you work around this issue by adding
> 
> all-local: $(prog_PYTHON)
> 
> to the Makefile.am?

Confirmed that this addition fixes the problem for me, both with the 'p' example and the real case.
Thanks for the quick fix.

Albert




Message sent to bug-automake@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#8362: make install prefix inserted in source code with generated python	files
References: <4D903A8D.2030309@HIDDEN>
In-Reply-To: <4D903A8D.2030309@HIDDEN>
Resent-From: Mike Frysinger <vapier@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-automake@HIDDEN
Resent-Date: Sun, 20 Feb 2022 19:36:01 +0000
Resent-Message-ID: <handler.8362.B8362.164538573431066 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 8362
X-GNU-PR-Package: automake
X-GNU-PR-Keywords: 
To: 8362 <at> debbugs.gnu.org
Received: via spool by 8362-submit <at> debbugs.gnu.org id=B8362.164538573431066
          (code B ref 8362); Sun, 20 Feb 2022 19:36:01 +0000
Received: (at 8362) by debbugs.gnu.org; 20 Feb 2022 19:35:34 +0000
Received: from localhost ([127.0.0.1]:33856 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nLrzZ-00084y-M1
	for submit <at> debbugs.gnu.org; Sun, 20 Feb 2022 14:35:33 -0500
Received: from woodpecker.gentoo.org ([140.211.166.183]:42870
 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vapier@HIDDEN>) id 1nLrzX-00084j-NH
 for 8362 <at> debbugs.gnu.org; Sun, 20 Feb 2022 14:35:32 -0500
Received: by smtp.gentoo.org (Postfix, from userid 559)
 id 88125342E08; Sun, 20 Feb 2022 19:35:17 +0000 (UTC)
From: Mike Frysinger <vapier@HIDDEN>
Message-Id: <20220220193517.88125342E08@HIDDEN>
Date: Sun, 20 Feb 2022 19:35:17 +0000 (UTC)
X-Spam-Score: -5.0 (-----)
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: -6.0 (------)

On Mon, 28 Mar 2011 09:36:45 +0200, A.T.Hofkamp wrote:
> As far as I know, "make install prefix=/path/to/writable/dir" should only change the place where 
> files are copied to, instead of injecting that new prefix into the source code. However, for Python 
> source files that are generated/modified during installation, this does not seem to hold:

really looks like you want to be using DESTDIR= instead of prefix=.
i don't think the behavior described here in general is a bug in
Automake.  that said, we should be compiling the script as part
of `all`.
-mike




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


Received: (at control) by debbugs.gnu.org; 20 Feb 2022 19:36:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 20 14:36:10 2022
Received: from localhost ([127.0.0.1]:33860 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nLs09-00086I-VS
	for submit <at> debbugs.gnu.org; Sun, 20 Feb 2022 14:36:10 -0500
Received: from woodpecker.gentoo.org ([140.211.166.183]:43006
 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vapier@HIDDEN>) id 1nLs08-000864-2H
 for control <at> debbugs.gnu.org; Sun, 20 Feb 2022 14:36:08 -0500
Received: by smtp.gentoo.org (Postfix, from userid 559)
 id 9DE15343773; Sun, 20 Feb 2022 19:36:02 +0000 (UTC)
From: Mike Frysinger <vapier@HIDDEN>
To: control <at> debbugs.gnu.org
Subject: Control message
Message-Id: <20220220193602.9DE15343773@HIDDEN>
Date: Sun, 20 Feb 2022 19:36:02 +0000 (UTC)
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: control
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: -6.0 (------)

forcemerge 16527 8362
thankyou




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


Received: (at control) by debbugs.gnu.org; 20 Feb 2022 19:38:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 20 14:38:52 2022
Received: from localhost ([127.0.0.1]:33868 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nLs2m-0008An-Dt
	for submit <at> debbugs.gnu.org; Sun, 20 Feb 2022 14:38:52 -0500
Received: from woodpecker.gentoo.org ([140.211.166.183]:43598
 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vapier@HIDDEN>) id 1nLs2k-0008AY-3s
 for control <at> debbugs.gnu.org; Sun, 20 Feb 2022 14:38:50 -0500
Received: by smtp.gentoo.org (Postfix, from userid 559)
 id 85E86343795; Sun, 20 Feb 2022 19:38:44 +0000 (UTC)
From: Mike Frysinger <vapier@HIDDEN>
To: control <at> debbugs.gnu.org
Subject: Control message
Message-Id: <20220220193844.85E86343795@HIDDEN>
Date: Sun, 20 Feb 2022 19:38:44 +0000 (UTC)
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: control
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: -6.0 (------)

tag 16527 = confirmed
thankyou




Message sent to bug-automake@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#8362: make install prefix inserted in source code with generated python files
References: <4D903A8D.2030309@HIDDEN>
In-Reply-To: <4D903A8D.2030309@HIDDEN>
Resent-From: Bogdan <bogdro_rep@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-automake@HIDDEN
Resent-Date: Tue, 21 Mar 2023 22:06:02 +0000
Resent-Message-ID: <handler.8362.B8362.167943634024727 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 8362
X-GNU-PR-Package: automake
X-GNU-PR-Keywords: confirmed
To: 8362 <at> debbugs.gnu.org, Mike Frysinger <vapier@HIDDEN>
Received: via spool by 8362-submit <at> debbugs.gnu.org id=B8362.167943634024727
          (code B ref 8362); Tue, 21 Mar 2023 22:06:02 +0000
Received: (at 8362) by debbugs.gnu.org; 21 Mar 2023 22:05:40 +0000
Received: from localhost ([127.0.0.1]:32843 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pek6t-0006Qk-RH
	for submit <at> debbugs.gnu.org; Tue, 21 Mar 2023 18:05:40 -0400
Received: from mout.gmx.net ([212.227.17.22]:58059)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bogdro_rep@HIDDEN>) id 1pek6r-0006QW-6W
 for 8362 <at> debbugs.gnu.org; Tue, 21 Mar 2023 18:05:38 -0400
Received: from [192.168.1.226] ([90.227.12.124]) by mail.gmx.net (mrgmx104
 [212.227.17.174]) with ESMTPSA (Nemesis) id 1M5QJJ-1pg7gH3N37-001SZK; Tue, 21
 Mar 2023 23:05:16 +0100
Content-Type: multipart/mixed; boundary="------------ZqoovReQBwAcUMCam6QIQrhU"
Message-ID: <783f7664-c670-86c3-9dae-961808da2fae@HIDDEN>
Date: Tue, 21 Mar 2023 23:05:10 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.9.0
Content-Language: en-GB
From: Bogdan <bogdro_rep@HIDDEN>
X-Provags-ID: V03:K1:N9vTr4Dy6Po/sWx/IwhMurSK54tSmUvPUcjc8G0z+6LMsvMwlF/
 Fj9vQBl5HJpOkkWy4hS/wB3rWOuGC6QodG3VgDYojXUuiiVJ7ptPxYBx2tPkzg6eGHX1C+t
 rwFbuUxF/iXYdQtUVIHzoFMDQFpbs0rp3BvooPW9TTIsPTZqKIgpn9YX75hFWVfOU8r7Mjg
 ZZlg9JoWsTEMO5B+Uzvng==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:Eer6S45mciA=;l18DUHJZFJWltTet3IqbNJPLQq2
 uYHJwt2RoLpqjg4iJCKLbZoIulkDkSR+pF6704V0jjZz8aGe1TKdPtoIDlWNbgFfkRF/Nm4L9
 JwYGdFSAKSJBcOP3Oa5fZHq6QrKHEpkIQ2UDkO8RaErzJcX/BTofgE0wGQR7y7TFeWnunvvsy
 rLyobIS8UkJY9OegvZRf4P1TWX1PR/HX86YtT5OP7UtRChFjj90FMgABry7AxXrulRwrX4kFC
 31BCQbExatQUDExvze2gkYlnC7obTYhYVlH+oVa9HfEcysxJ2yQOulfvCYQAvkjHKmUmdx5SH
 wWCvbJ01d89XhQ7GOpO8UjignT6IxwUcG3iJLmCN1RPYJVwepqnt63jg9t3aUajYcxtq8pkS9
 F63+uqr+OhjMqrYPWbnM+U2QEwm4hLAuf4y8IUMIhiBxH/yFxCpmRA3UG/Ty3ar8fQsGk6h15
 Jrdw0FMhrUy+kZdPJ9TsNNLJBUsDIA5HYvJfvL0YjNjdsByJdBTmUCgad/HsGregQe6Yon3+W
 wpCzSUS65FG0cHQFDmOx5XxmAFB/LPB24lYT+KiIXaRhXQIaIDgfv1LyOLrRdhgqzfaWEhBAM
 5jYFGir+xNJJqtlpeGPer+RtofVkNYCQc+vRMjt6xBnf2rCeSia/nJ/TP6ZhaTUVmDPeeDvt4
 /o3L3UILTRv3KiCDFdYidYjK03F0iaTG9lO3ykvaTPi/LmbOBghX/69w1HrQoEhGyD5bdFoSv
 5OqRBFKuKaXaQDmuBS7xeX10vaMQwcVR92UBADQ6NbXUiFN2MtFwq1Y1zd+JU92wcDGEMtDNM
 Ut3CkhQOVczs/uJ21OUaYuVi70RwyaMyGvhdJND7T/oMzinPCJ5pU5jcOh3zQWKeHIUlayXkY
 X69Ils6pMWHcPl0pRxME6mWsWvO2v/vOxh5cBw+6rSNpsUDGNUqmPr/23LXkU1mJ9udhmLSoz
 ancCJTosBQlkj10cpIU/+lmlMq8=
X-Spam-Score: -0.7 (/)
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.7 (-)

This is a multi-part message in MIME format.
--------------ZqoovReQBwAcUMCam6QIQrhU
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi all.

  A small contribution to the discussion.

  First of all, it's not an Automake defect that the user is allowed 
to override variables using the command line. This may be used e.g. 
for changing compile flags at 'make' time:

	make CFLAGS=-Wall

  Second, in the provided example, the 'install' target indeed depends 
on prog_PYTHON, while 'all' doesn't. Somebody made a decision to 
compile Python files at install time and not at compile time. Maybe 
because it is not known at compile time where the files will end up, 
or they have conflicting names, or for some other good reason.

  Third, and most important (I think) is that we need to note that 
"prog/x.py" is GENERATED, but is NOT marked so. Adding

	BUILT_SOURCES = prog/x.py

to Makefile.am fixes the issue immediately. So, sorry to say this, but 
it looks like this defect is invalid. The file prog/x.py is meant to 
be built/generated at build time and must be marked as being built.

  Another point is that one needs to 'touch' x.src each time to test, 
which also is signalling that something may be wrong. But, this may be 
just a side effect of the minimalistic example.

  By the way, if the real code also needs to substitute just 
"$(libexecdir)", which is known at configure time, it should actually 
be 'configure' which generates prog/x.py. This would probably stop 
this issue from appearing in the first place...

  If you really, really want to fix something in Automake, you can use 
the attached patch, it seems to fix the issue. But, this is something 
I don't recommend, because next we'll be adding each and every 
language/script group to the 'all' target and that's probably not the 
point. That's why I'm not formatting the patch as I should be.


-- 
Regards - Bogdan ('bogdro') D.                 (GNU/Linux & FreeDOS)
X86 assembly (DOS, GNU/Linux):    http://bogdro.evai.pl/index-en.php
Soft(EN): http://bogdro.evai.pl/soft  http://bogdro.evai.pl/soft4asm
www.Xiph.org  www.TorProject.org  www.LibreOffice.org  www.GnuPG.org
--------------ZqoovReQBwAcUMCam6QIQrhU
Content-Type: text/x-patch; charset=UTF-8; name="automake-python-in-all.diff"
Content-Disposition: attachment; filename="automake-python-in-all.diff"
Content-Transfer-Encoding: base64

ZGlmZiAtLWdpdCBhL2Jpbi9hdXRvbWFrZS5pbiBiL2Jpbi9hdXRvbWFrZS5pbgppbmRleCBm
MjQ5MDY0ZDUuLjczODY1YTY3YyAxMDA2NDQKLS0tIGEvYmluL2F1dG9tYWtlLmluCisrKyBi
L2Jpbi9hdXRvbWFrZS5pbgpAQCAtNDYxMCw2ICs0NjEwLDggQEAgc3ViIGhhbmRsZV9hbGwK
ICAgICBteSBAbG9jYWxfaGVhZGVycyA9ICgpOwogICAgIHB1c2ggQGxvY2FsX2hlYWRlcnMs
ICckKEJVSUxUX1NPVVJDRVMpJwogICAgICAgaWYgdmFyICgnQlVJTFRfU09VUkNFUycpOwor
ICAgIHB1c2ggQGxvY2FsX2hlYWRlcnMsICckKHByb2dfUFlUSE9OKScKKyAgICAgIGlmIHZh
ciAoJ3Byb2dfUFlUSE9OJyk7CiAgICAgZm9yZWFjaCBteSAkc3BlYyAoQGNvbmZpZ19oZWFk
ZXJzKQogICAgICAgewogCW15ICgkb3V0LCBAaW5zKSA9IHNwbGl0X2NvbmZpZ19maWxlX3Nw
ZWMgKCRzcGVjKTsK

--------------ZqoovReQBwAcUMCam6QIQrhU--




Message sent to bug-automake@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#8362: make install prefix inserted in source code with generated python files
Resent-From: Mike Frysinger <vapier@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-automake@HIDDEN
Resent-Date: Sat, 13 Jan 2024 06:27:02 +0000
Resent-Message-ID: <handler.8362.B8362.17051272207384 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 8362
X-GNU-PR-Package: automake
X-GNU-PR-Keywords: confirmed
To: Bogdan <bogdro_rep@HIDDEN>
Cc: 8362 <at> debbugs.gnu.org
Received: via spool by 8362-submit <at> debbugs.gnu.org id=B8362.17051272207384
          (code B ref 8362); Sat, 13 Jan 2024 06:27:02 +0000
Received: (at 8362) by debbugs.gnu.org; 13 Jan 2024 06:27:00 +0000
Received: from localhost ([127.0.0.1]:38177 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rOXTw-0001v2-AF
	for submit <at> debbugs.gnu.org; Sat, 13 Jan 2024 01:27:00 -0500
Received: from woodpecker.gentoo.org ([140.211.166.183]:58256
 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vapier@HIDDEN>) id 1rOXTu-0001uo-Ij
 for 8362 <at> debbugs.gnu.org; Sat, 13 Jan 2024 01:26:59 -0500
Received: by smtp.gentoo.org (Postfix, from userid 559)
 id 4313734316F; Sat, 13 Jan 2024 06:26:54 +0000 (UTC)
Date: Sat, 13 Jan 2024 01:26:53 -0500
From: Mike Frysinger <vapier@HIDDEN>
Message-ID: <ZaItLR3nWOBa0qEx@vapier>
References: <783f7664-c670-86c3-9dae-961808da2fae@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="yADdg587l8kNW3IB"
Content-Disposition: inline
In-Reply-To: <783f7664-c670-86c3-9dae-961808da2fae@HIDDEN>
X-Spam-Score: -2.3 (--)
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: -3.3 (---)


--yADdg587l8kNW3IB
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 21 Mar 2023 23:05, Bogdan wrote:
>   Third, and most important (I think) is that we need to note that=20
> "prog/x.py" is GENERATED, but is NOT marked so. Adding
>=20
> 	BUILT_SOURCES =3D prog/x.py

i don't think this is a correct use of BUILT_SOURCES.
https://www.gnu.org/software/automake/manual/automake.html#Sources

that var is meant for generating headers before Automake's depgen logic
can kick in.  that sounds minor, but in practice it means that every
built source is generated before anything else is compiled.  which can
insert a bubble into parallel build pipelines.  so we would prefer it
only be used for things that matter to header dependency generation.
-mike

--yADdg587l8kNW3IB
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmWiLS0ACgkQQWM7n+g3
9YE8JRAA2lUnk+ZqybRhLngD3gfMKNPhOwAxakq2Nd260w36GRFYH3bm7iqCSlaM
vKRxkAnwPhCuWdm2XCz00KZgKch+kkP5TSqpfThJJpB3X51Ks9XQPb5OpXTwQYnz
4kcK/+ltJGOPcZ21UqOMnrB7hjlFidOc4ArRA875KmM+sNTl2yPUpMXmQOr7vEe8
nhsg5G4DUH5xfDvVOTtqoapMNOmrU2TsEQdU9lQG/kA7yJbx3vWxgPyU10eGsk/s
7Pgx5vB9h860t8nUzDE0RXKkpntw9Be9msvCBOk1WChcLkGLmA9/VoF2sIULYzpm
hxicwW0v+oRylUSmQbrb5bNO02AS+zNF3MxnLSG41+YOlwlV6tBkXMtNYdYiYAqr
+R5C3GT5X75SJD20thpskCLHf0ZozDxQFV5g1SuaTeyqRuYS38bsRbzrc4KnJWcL
mEvf9IHYGc7SStwHm6caITDZp/Yb0f/+UqLlk2Oa0T6eyfgyjzZ1eCVLCmnRAzfP
6HV1JoHapc0LXmFZgpsuFjPXC+LukJIXsYdmcYUGYuawk+tzTDsHEiTRCtbiK+00
t0s0iYo6A1V44O1x6QLt3bZuuEUjtSDehbi6uWxhTWoFwuT4aBgMGrWchOTHRdxc
LIKTLrin+W4vu72fWuHPFuHf3BHqDzSlSWs4RUJb7R0tdVbVzVA=
=AC7b
-----END PGP SIGNATURE-----

--yADdg587l8kNW3IB--




Message sent to bug-automake@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#8362: make install prefix inserted in source code with generated python files
Resent-From: Bogdan <bogdro_rep@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-automake@HIDDEN
Resent-Date: Sat, 13 Jan 2024 21:31:02 +0000
Resent-Message-ID: <handler.8362.B8362.170518142114777 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 8362
X-GNU-PR-Package: automake
X-GNU-PR-Keywords: confirmed
To: Mike Frysinger <vapier@HIDDEN>
Cc: 8362 <at> debbugs.gnu.org
Received: via spool by 8362-submit <at> debbugs.gnu.org id=B8362.170518142114777
          (code B ref 8362); Sat, 13 Jan 2024 21:31:02 +0000
Received: (at 8362) by debbugs.gnu.org; 13 Jan 2024 21:30:21 +0000
Received: from localhost ([127.0.0.1]:41248 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rOla8-0003pH-Qo
	for submit <at> debbugs.gnu.org; Sat, 13 Jan 2024 16:30:21 -0500
Received: from mout.gmx.net ([212.227.17.20]:39131)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bogdro_rep@HIDDEN>) id 1rOla3-0003MV-Vr
 for 8362 <at> debbugs.gnu.org; Sat, 13 Jan 2024 16:30:18 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.us; s=s31663417;
 t=1705181394; x=1705786194; i=bogdro_rep@HIDDEN;
 bh=zpAhOMRoKP8vdRdScQKihCvw4P4Q9M2bggr1GBraAM4=;
 h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:
 In-Reply-To;
 b=RH4M5r+7jzEHhkSRD5wmW0nurCyyDDAP4Vd1CQaexuyeNu4UROL//KMp+1FpLJOe
 5gZSMHvo5lOwtr+dZpAig8eHwy6IRryk/H/1iOx5P/biNaSArwFKAlOLCf81OlNow
 y32T6sTq+FGPMznepJ5LuoF0HDDVtiRsbN5k9wBe9KK2yFYpwy3nPzaz3EEFhey2k
 PRN+4eLkBajvjDytUL4YDgv6wLrMw4ztAwurIyMWAYIe5MmbHYFAp9u5bH3O4XEED
 ICHckA77itIquqO8RDaW9GzsT0dEvdifb9zWUF3Aaapn5n6DmPgh0nQjURFPy9Wc2
 xgxSXSjL2iaUVpb5Pg==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [192.168.0.4] ([83.255.207.180]) by mail.gmx.net (mrgmx104
 [212.227.17.174]) with ESMTPSA (Nemesis) id 1N4QsY-1qzAFr3uL8-011P8m; Sat, 13
 Jan 2024 22:29:54 +0100
Message-ID: <84bc6089-fb7b-4878-aa1d-753b4a9be907@HIDDEN>
Date: Sat, 13 Jan 2024 22:29:48 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
References: <783f7664-c670-86c3-9dae-961808da2fae@HIDDEN>
 <ZaItLR3nWOBa0qEx@vapier>
From: Bogdan <bogdro_rep@HIDDEN>
In-Reply-To: <ZaItLR3nWOBa0qEx@vapier>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:fFn+5hFdhaFVcQ0s72sqA/W95xI8xCpMUMeQQKgrOTsNM/0HVd1
 6Eu2uYqv5HhQzcxYIu2g2VVJLXonp+O8Hi3bQSDNdKTwnUSXIPSstK5e5aNH43LcGsIk2Vx
 UnagRRSxp+MmUnzDKQ0OB/0R6QIw+LHnc6nmJ+P/BoAhv/8J9551XJVZpe4+Jt1el6VjGO9
 EXn+Xv2nr+bKAlOV8tCkw==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:ox+35BuXZ1o=;/a8VBoe+MRmjmTptd3gLSAGIjKd
 cAGaSn3I9OWguA79EFSiMYW1wC1QqyWCf01j0eqmdpuCu8IIiP1e5cRDfJOX1FiJinuDwk2vg
 2BCfcnFUZzjVmYD34/+7qnmMpbeQt7h67TMXI+jPXrdNt7pdWuCTGTrs5s3VEuXhM03ECZ0Bd
 ewSeUZGWnLnvrtBUMzPpRzGYXUzmrbqhejeX5XrOHcyI6Zk3F+e9CJkepRIw9vHGOVVrkRdaR
 DE88xO4HC/0l30YMZW9Xyzb46o+9W/RwFg15wkCf6k4wRYLGTBoaiEW5bJ0iJ7DX/o9LTzLUd
 yaEYJjDPaceGIdfwUX5GcJn22BSkCUaYWJFUq+poJyHKMtE4bjpMWMMLsgXG/VSMd1zBPow6O
 xSIwG7zTASAjUspBTRs1bdr9UzXrpP+Eu/7jZNrmJNmc5fNyrx7qKo2huRqgZttbzv0EsaRTC
 exsGgtsefq3aQutM4UIWuR45786APtPmVA93Wxfoa43O+yQub0NLH4MUjC/YJIFYxLgrV3Pct
 Hz27+mK9yU8v88+V2a8fYt3e6nPOKxqgyOXSJfh83gd5SeFLzrSY9Td6y5K0goJA13faFzS7r
 y5Tmi8mVI7dkKof0O/LEr36t3Bem1+aFKIal2nPkQd4X5C1aKL1dlfbPhIty7mPqC5mEu/QJn
 y0lKyiw0s/raE4CADX4yB+v+ZyWAI8/Ji2qdoL8Fxc8l2dd0CuZWcVq1I64zjrx1kddM/wGk8
 QoPwyM2hAalHtC61q0hLX1sgrIKKjVxT3HPMshQaayjhl67ldjeXaFg3+xxmSkyYVZ6NQF2Qg
 EDUW76Vd1N3zyHYoFcIX0nVGA1AclsENGwLKVK9NG6fmAbE8k9Mj79rBnvdJWVRvUjG+/0vDi
 Y3Zbjh//7XGpUZvL+Aw9P4jxvW5c6qMWhqScgbSt52WJTHlxg45yMoiqT7/YP5qC39J5S0kRV
 GXvO0A==
X-Spam-Score: -0.7 (/)
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.7 (-)

Mike Frysinger <vapier@HIDDEN>, 2024-01-13 07:26:
> On 21 Mar 2023 23:05, Bogdan wrote:
>>    Third, and most important (I think) is that we need to note that
>> "prog/x.py" is GENERATED, but is NOT marked so. Adding
>>
>> 	BUILT_SOURCES =3D prog/x.py
>
> i don't think this is a correct use of BUILT_SOURCES.
> https://www.gnu.org/software/automake/manual/automake.html#Sources
>
> that var is meant for generating headers before Automake's depgen logic
> can kick in.  that sounds minor, but in practice it means that every
> built source is generated before anything else is compiled.  which can
> insert a bubble into parallel build pipelines.  so we would prefer it
> only be used for things that matter to header dependency generation.
> -mike


  You're probably right. Perhaps not meant for this purpose, but I
think BUILT_SOURCES is the only way to make generated code files
visible to the build system, no matter if for dependencies or not. How
do I e.g. have a .c file generated by 'configure' to be properly built
if I can't list it in Makefile.am (because it's a .c.in file in the
beginning)?
  This was just my simple hack to help the author. There are better
solutions in this case (the ones I wrote later about), and perhaps the
author's build system/Makefile.am's/dependencies should be fixed in
the first place.

=2D-
Regards - Bogdan ('bogdro') D.                 (GNU/Linux & FreeDOS)
X86 assembly (DOS, GNU/Linux):    http://bogdro.evai.pl/index-en.php
Soft(EN): http://bogdro.evai.pl/soft  http://bogdro.evai.pl/soft4asm
www.Xiph.org  www.TorProject.org  www.LibreOffice.org  www.GnuPG.org






Last modified: Sat, 20 Jan 2024 12:30:02 UTC

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