GNU bug report logs - #14728
filenames starting with a dash confuse automake

Previous Next

Package: automake;

Reported by: Zbigniew Jędrzejewski-Szmek <zbyszek <at> in.waw.pl>

Date: Thu, 27 Jun 2013 04:39:01 UTC

Severity: minor

Tags: moreinfo, wontfix

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Zbigniew Jędrzejewski-Szmek <zbyszek <at> in.waw.pl>
To: 14728 <at> debbugs.gnu.org
Subject: bug#14728: filenames starting with a dash confuse automake
Date: Thu, 27 Jun 2013 06:37:40 +0200
[Message part 1 (text/plain, inline)]
Hi,
I encountered this in systemd, which recently added a file with 
a dash in the name [1].

Basically, various commands like install and rm are called
without guarding the file list with --, which causes them
to interpret the file name as an option. In case of
systemd, 'make uninstall' and thus 'make distcheck' are
affected, but depending on the type of the file (SCRIPT, DATA, etc),
other targets can be affected.

$ make install DESTDIR=/var/tmp/inst2
make[1]: Entering directory `home/zbyszek/src/automake-dash'
 /usr/bin/mkdir -p '/var/tmp/inst2/usr/local/bin'
 /usr/bin/install -c -.sh '/var/tmp/inst2/usr/local/bin'
/usr/bin/install: invalid option -- '.'

Attached toy "project" reproduces this error.

Thanks,
Zbyszek

[1] http://cgit.freedesktop.org/systemd/systemd/commit/?id=4ad49000
[configure.ac (text/plain, attachment)]
[Makefile.am (text/plain, attachment)]
[-.sh (application/x-sh, attachment)]

This bug report was last modified 11 years and 144 days ago.

Previous Next


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