GNU bug report logs - #27188
lex/yacc with subdir-objects and --disable-dependency-tracking broken

Previous Next

Package: automake;

Reported by: Nick Brown <brownn <at> Brocade.com>

Date: Thu, 1 Jun 2017 15:13:02 UTC

Severity: normal

Tags: confirmed

Merged with 9859

Full log


View this message in rfc822 format

From: Nick Brown <brownn <at> Brocade.com>
To: 27188 <at> debbugs.gnu.org
Subject: bug#27188: lex/yacc with subdir-objects and --disable-dependency-tracking broken
Date: Thu, 1 Jun 2017 14:25:15 +0000
[Message part 1 (text/plain, inline)]
By default Debian dh passes --disable-dependacy-tracking when building.
If the package rules also adds --builddirectory to use out of source builds
(eg. "dh $@ --builddirectory=build --parallel --with autoreconf"), and the
package happens to be using subdir-objects automake option and generated source
files from lex/yacc then the build will fail.

Eg.

mkdir build
../configure --disable-dependency-tracking --disable-silent-rules
make

/bin/bash ../ylwrap ../src/scanner.ll lex.yy.c src/scanner.cc -- flex
../ylwrap: line 206: ../src/scanner.cc: No such file or directory
Makefile:422: recipe for target 'src/scanner.cc' failed
make: *** [src/scanner.cc] Error 1

A simple patch to lex.am and yacc.am fixes this.
[0001-yacc-and-lex-built-objects-without-dependancy-tracking.patch (text/x-patch, attachment)]

This bug report was last modified 5 years and 321 days ago.

Previous Next


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