bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#14728: filenames starting with a dash confuse automake


From: Zbigniew Jędrzejewski-Szmek
Subject: bug#14728: filenames starting with a dash confuse automake
Date: Thu, 27 Jun 2013 06:37:40 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

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

Attachment: configure.ac
Description: Text document

Attachment: Makefile.am
Description: Text document

Attachment: -.sh
Description: Bourne shell script


reply via email to

[Prev in Thread] Current Thread [Next in Thread]