GNU bug report logs -
#19579
Long lines, short awk
Previous Next
Reported by: "Daniel Richard G." <skunk <at> iSKUNK.ORG>
Date: Tue, 13 Jan 2015 06:03:01 UTC
Severity: normal
Tags: moreinfo
Done: Mike Frysinger <vapier <at> gentoo.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19579 in the body.
You can then email your comments to 19579 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-automake <at> gnu.org
:
bug#19579
; Package
automake
.
(Tue, 13 Jan 2015 06:03:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Daniel Richard G." <skunk <at> iSKUNK.ORG>
:
New bug report received and forwarded. Copy sent to
bug-automake <at> gnu.org
.
(Tue, 13 Jan 2015 06:03:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello list,
I am building a source package, prepared with Automake 1.15, on HP-UX.
While running the configure script, I get
[...]
config.status: creating include/Makefile
config.status: creating scripts/Makefile
config.status: creating src/Makefile
config.status: creating src/lib/Makefile
awk: Input line -rm -rf ../../src/l cannot be longer than 3,000 bytes.
The input line number is 21137.
The source line number is 235.
config.status: error: could not create src/lib/Makefile
It so happens that src/lib/Makefile covers a large number of source
files, spread out across many directories. Line 21137 of Makefile.in is
the "-rm -rf" line shown below:
distclean: distclean-am
-rm -rf ../../src/lib/libobj/$(DEPDIR) foo/bar/$(DEPDIR) foo/baz/$(DEPDIR) ...
The line includes every single subdir-objects subdirectory known to the
makefile, and is well over 15kB long. The maintainer-clean target also
has an identical line.
I recognize that the usual thing to do here is specify e.g. AWK=gawk,
but other sections of the makefile (e.g. clean-libtool target) avoid
this issue altogether by specifying a series of short "rm" commands
instead of a single giant invocation. (Moreover, even if $AWK didn't
have a line-length limitation, the shell could still balk with an
"Argument list too long" error.) IMO, it is better to have the distclean
and maintainer-clean targets follow this same approach.
--Daniel
--
Daniel Richard G. || skunk <at> iSKUNK.ORG
My ASCII-art .sig got a bad case of Times New Roman.
Information forwarded
to
bug-automake <at> gnu.org
:
bug#19579
; Package
automake
.
(Tue, 08 Feb 2022 04:04:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 19579 <at> debbugs.gnu.org (full text, mbox):
On Tue, 13 Jan 2015 01:01:44 -0500, Daniel Richard G. wrote:
> I am building a source package, prepared with Automake 1.15, on HP-UX.
> While running the configure script, I get
>
> [...]
> config.status: creating include/Makefile
> config.status: creating scripts/Makefile
> config.status: creating src/Makefile
> config.status: creating src/lib/Makefile
> awk: Input line -rm -rf ../../src/l cannot be longer than 3,000 bytes.
> The input line number is 21137.
> The source line number is 235.
> config.status: error: could not create src/lib/Makefile
>
> It so happens that src/lib/Makefile covers a large number of source
> files, spread out across many directories. Line 21137 of Makefile.in is
> the "-rm -rf" line shown below:
>
> distclean: distclean-am
> -rm -rf ../../src/lib/libobj/$(DEPDIR) foo/bar/$(DEPDIR) foo/baz/$(DEPDIR) ...
>
> The line includes every single subdir-objects subdirectory known to the
> makefile, and is well over 15kB long. The maintainer-clean target also
> has an identical line.
can you provide an example that reproduces the issue ? or link to the package
you're working on (assuming it's OSS) ? i checked my own projects and it didn't
create a single line, it generated a bunch of independent rm commands. i looked
through the automake source and couldn't quickly identify something that would
explain the behavior you're seeing.
-mike
Added tag(s) moreinfo.
Request was from
Mike Frysinger <vapier <at> gentoo.org>
to
control <at> debbugs.gnu.org
.
(Tue, 08 Feb 2022 04:04:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-automake <at> gnu.org
:
bug#19579
; Package
automake
.
(Mon, 14 Feb 2022 06:17:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 19579 <at> debbugs.gnu.org (full text, mbox):
Hello Mike,
On Mon, 2022 Feb 7 23:03-05:00, Mike Frysinger wrote:
>
> can you provide an example that reproduces the issue ? or link to the
> package you're working on (assuming it's OSS) ? i checked my own
> projects and it didn't create a single line, it generated a bunch of
> independent rm commands. i looked through the automake source and
> couldn't quickly identify something that would explain the behavior
> you're seeing.
I am currently using Automake 1.16.3, which no longer exhibits the
issue originally described. As far as I can tell, this was fixed as a
side effect of Git commit 08849db8, made just ten days before my
initial report.
--Daniel
--
Daniel Richard G. || skunk <at> iSKUNK.ORG
My ASCII-art .sig got a bad case of Times New Roman.
Reply sent
to
Mike Frysinger <vapier <at> gentoo.org>
:
You have taken responsibility.
(Mon, 14 Feb 2022 12:13:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Daniel Richard G." <skunk <at> iSKUNK.ORG>
:
bug acknowledged by developer.
(Mon, 14 Feb 2022 12:13:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 19579-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 14 Feb 2022 01:14, Daniel Richard G. wrote:
> On Mon, 2022 Feb 7 23:03-05:00, Mike Frysinger wrote:
> > can you provide an example that reproduces the issue ? or link to the
> > package you're working on (assuming it's OSS) ? i checked my own
> > projects and it didn't create a single line, it generated a bunch of
> > independent rm commands. i looked through the automake source and
> > couldn't quickly identify something that would explain the behavior
> > you're seeing.
>
> I am currently using Automake 1.16.3, which no longer exhibits the
> issue originally described. As far as I can tell, this was fixed as a
> side effect of Git commit 08849db8, made just ten days before my
> initial report.
ok, thanks for checking
-mike
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 15 Mar 2022 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 113 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.