GNU bug report logs - #33029
AM_LFLAGS --prefix option breaks build-aux/ylwrap script

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; Severity: wishlist; Reported by: Sjoerd van Leent <svanleent@HIDDEN>; dated Fri, 12 Oct 2018 21:37:02 UTC; Maintainer for automake is bug-automake@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Mathieu Lirzin <mthl@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 33029) by debbugs.gnu.org; 23 Oct 2018 18:09:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 23 14:09:57 2018
Received: from localhost ([127.0.0.1]:38470 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gF17s-00010Z-Nw
	for submit <at> debbugs.gnu.org; Tue, 23 Oct 2018 14:09:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48494)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mthl@HIDDEN>) id 1gF17q-00010K-5M
 for 33029 <at> debbugs.gnu.org; Tue, 23 Oct 2018 14:09:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mthl@HIDDEN>) id 1gF17i-0008Pn-48
 for 33029 <at> debbugs.gnu.org; Tue, 23 Oct 2018 14:09:48 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56503)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mthl@HIDDEN>)
 id 1gF17i-0008Pe-07; Tue, 23 Oct 2018 14:09:46 -0400
Received: from 85.63.10.109.rev.sfr.net ([109.10.63.85]:46802 helo=token)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <mthl@HIDDEN>)
 id 1gF17g-0006ew-Tc; Tue, 23 Oct 2018 14:09:45 -0400
From: Mathieu Lirzin <mthl@HIDDEN>
To: Sjoerd van Leent <svanleent@HIDDEN>
Subject: Re: bug#33029: AM_LFLAGS --prefix option breaks build-aux/ylwrap
 script
References: <8fe0231b-d687-08ec-283d-f3415e8b7ed1@HIDDEN>
Date: Tue, 23 Oct 2018 20:07:31 +0200
In-Reply-To: <8fe0231b-d687-08ec-283d-f3415e8b7ed1@HIDDEN> (Sjoerd van
 Leent's message of "Fri, 12 Oct 2018 23:35:49 +0200")
Message-ID: <877ei8h6zg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 33029
Cc: 33029 <at> debbugs.gnu.org
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 (------)

Hello Sjoerd,

Sjoerd van Leent <svanleent@HIDDEN> writes:

> Using Automake 1.15.1, I attempted to create a prefix other than the
> default "yy" for usage of the Fast Lexical Analyzer Generator. The
> FLEX arguments used for this, can be set using Automake option
> AM_LFLAGS and friends. Doing this with the --prefix argument however,
> causes a side-effect which the ylwrap script fails to act on. The
> option does not only replace yy inside the generated lex.yy.c file,
> but also changes lex.yy.c to become lex.<PREFIX>.c. This behavior
> breaks the ylwrap script, as it can no longer find lex.yy.c and
> therefore no longer move and rename it to the proper location
> (breaking the build process).
>
> I managed my way around this, by forcing flex to generate a lex.yy.c
> file (adding -o lex.yy.c also to AM_LFLAGS). The solution to my mind
> is simple: if --prefix is used in the AM_LFLAGS and friends option,
> the ylwrap script should either expect this new prefix as a
> replacement token of the "yy" part of lex.yy.c, or ylwrap should add
> -o lex.yy.c on it's own initiative.
>
> I hope that you are able to aid in repairing this minor deefficiency,
> Best Regards,
> Sjoerd van Leent

I am not familiar with the details of how Flex is working but supporting
the =E2=80=98--prefix=E2=80=99 option seems desirable. Currently Automake h=
as very
little manpower, so I encourage you to work on it yourself if you have
some time to devote to it.

Thanks.

--=20
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37




Information forwarded to bug-automake@HIDDEN:
bug#33029; Package automake. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 12 Oct 2018 21:36:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 12 17:36:06 2018
Received: from localhost ([127.0.0.1]:47542 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gB56L-0008CZ-UY
	for submit <at> debbugs.gnu.org; Fri, 12 Oct 2018 17:36:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56282)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <svanleent@HIDDEN>) id 1gB56J-0008C3-UR
 for submit <at> debbugs.gnu.org; Fri, 12 Oct 2018 17:36:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <svanleent@HIDDEN>) id 1gB56E-00059v-33
 for submit <at> debbugs.gnu.org; Fri, 12 Oct 2018 17:35:58 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59990)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <svanleent@HIDDEN>) id 1gB56D-00059n-Vr
 for submit <at> debbugs.gnu.org; Fri, 12 Oct 2018 17:35:58 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37659)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <svanleent@HIDDEN>) id 1gB56D-0003nJ-3K
 for bug-automake@HIDDEN; Fri, 12 Oct 2018 17:35:57 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <svanleent@HIDDEN>) id 1gB569-00057g-5p
 for bug-automake@HIDDEN; Fri, 12 Oct 2018 17:35:57 -0400
Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:40709)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <svanleent@HIDDEN>) id 1gB568-00056y-T5
 for bug-automake@HIDDEN; Fri, 12 Oct 2018 17:35:53 -0400
Received: by mail-ed1-x532.google.com with SMTP id r1-v6so12711022edd.7
 for <bug-automake@HIDDEN>; Fri, 12 Oct 2018 14:35:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:subject:message-id:date:user-agent:mime-version
 :content-transfer-encoding:content-language;
 bh=Zh4+5d4LDuWTZ9UGXCeYoy8LnbkF0xnScBCUnwXoFuc=;
 b=RaYTpZ1tU40BS3jD9YD8t6bouTPjCsKK+T0i+un3lmACsqTu/lkYtmfVXxbBgRJKMM
 1v5YnIKNHmosW16nrDm4xlJfQ/oWtU4RUolHjj2A559RGMmESOqE3uCuVoSf25WZS8Us
 1ROPoOTyFuWEi0PagFDCNYOdTq3jUvALewcGUKUaiZRSvq2DCfzB7hOKy6erqUYdQzpB
 9tkJXd5Rnhbbh3aYPW/LxQ17X5bvwZ6I+h/eaDo078NZhocFg285ZLcT0UprNQsP9hbl
 5IL9x4dMrav/psLeLWkE64SM7ZrwJdKh1HtpXWk3Gtc75U0RjvL6oNpJ6CLZuhv3jCJr
 Zueg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:subject:message-id:date:user-agent
 :mime-version:content-transfer-encoding:content-language;
 bh=Zh4+5d4LDuWTZ9UGXCeYoy8LnbkF0xnScBCUnwXoFuc=;
 b=iA8BQYdaMH5mMjlupEZnsOF8VgC6sy3d2PlH0FQgODV5qJzLjPyhcoZ7hHOLl5fQV/
 z+iQc7/7u9E1Ve74GOakGMxSENuDh5IZww4mmpqON2RiDceVMBWewzyC62NEC/HAkzI+
 p9nqotkVGqVxWXRvb/yhPRxgNbigIOWtceLnYPZWH0RK5phuTxO40cw0KYNo0su8hen/
 my6M5Cw6hNXn8pUg3EyR9PYZgne8aphvdLFjqsTUmaxeJa/9rB840W2bNmKycnTGKmr9
 TgKaj3Caj3Uv71SQ4cMWK++PeNqr7ppjoTiAdpjTNZ4BO4lGhnDZRjlzmMVdRNKCuZRK
 sIZg==
X-Gm-Message-State: ABuFfojS7xzhyRr+xbV7zmDaw6SE/mXoINv+HcfYGAv8SJ8Z1q9WafZl
 SXGmuJ4lAbnw6wDOtMa0U8cNUHeo
X-Google-Smtp-Source: ACcGV60ZwNHDursmtHR1VFPQJeYbeK7nILOvdIQNKyLWSs9YG3wx1id0sHEwB0zxdsvZsQ1Okn5DUw==
X-Received: by 2002:a50:b322:: with SMTP id
 q31-v6mr11040539edd.194.1539380150584; 
 Fri, 12 Oct 2018 14:35:50 -0700 (PDT)
Received: from [192.168.2.15] ([145.129.193.78])
 by smtp.gmail.com with ESMTPSA id q3-v6sm562869ejj.50.2018.10.12.14.35.49
 for <bug-automake@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 12 Oct 2018 14:35:49 -0700 (PDT)
To: bug-automake@HIDDEN
From: Sjoerd van Leent <svanleent@HIDDEN>
Subject: AM_LFLAGS --prefix option breaks build-aux/ylwrap script
Message-ID: <8fe0231b-d687-08ec-283d-f3415e8b7ed1@HIDDEN>
Date: Fri, 12 Oct 2018 23:35:49 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US
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.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: -5.0 (-----)

Dear Automake Maintainers,

Using Automake 1.15.1, I attempted to create a prefix other than the 
default "yy" for usage of the Fast Lexical Analyzer Generator. The FLEX 
arguments used for this, can be set using Automake option AM_LFLAGS and 
friends. Doing this with the --prefix argument however, causes a 
side-effect which the ylwrap script fails to act on. The option does not 
only replace yy inside the generated lex.yy.c file, but also changes 
lex.yy.c to become lex.<PREFIX>.c. This behavior breaks the ylwrap 
script, as it can no longer find lex.yy.c and therefore no longer move 
and rename it to the proper location (breaking the build process).

I managed my way around this, by forcing flex to generate a lex.yy.c 
file (adding -o lex.yy.c also to AM_LFLAGS). The solution to my mind is 
simple: if --prefix is used in the AM_LFLAGS and friends option, the 
ylwrap script should either expect this new prefix as a replacement 
token of the "yy" part of lex.yy.c, or ylwrap should add -o lex.yy.c on 
it's own initiative.

I hope that you are able to aid in repairing this minor deefficiency,
Best Regards,
Sjoerd van Leent





Acknowledgement sent to Sjoerd van Leent <svanleent@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-automake@HIDDEN. Full text available.
Report forwarded to bug-automake@HIDDEN:
bug#33029; 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.