Package: automake
Version: 1:1.14.1-3
Severity: normal

This one had me going for a while. I think it is an automake problem,
rather than an autoconf problem because the mystery directory appears
at the ./configure step.

It started because automake complains about subdir-objects:
$ automake
Makefile.am:4: warning: source file '$(top_srcdir)/lib/bar.c' is in a 
subdirectory,
Makefile.am:4: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.

OK,OK, so I'll add:
AUTOMAKE_OPTIONS = subdir-objects                                               
to Makefile.am, automake is happy!

Let's run ./configure then.
Seems ok. Now make

Makefile:388: lib/.deps/nothere.Po: No such file or directory
make: *** No rule to make target 'lib/.deps/nothere.Po'.  Stop.
$ ls lib/.deps/
bar.Po
$ find . -name 'nothere.Po'
./$(top_srcdir)/lib/.deps/nothere.Po

Yes, that directoryname is literally $(top_srcdir)
$ cat Makefile.am 

AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = foo
foo_SOURCES = foo.c lib/bar.c lib/bar.h $(top_srcdir)/lib/nothere.c

So, configure WITH subdir-objects will not expand variables.
configure WITHOUT subdir-objects works, because the .Po files end
up in the top directory.

You need variables!! make distcheck will usually break without them
which, in distchecks odd way, is correct behaviour.

The work-around is to ignore automakes whinge about subdir-objects
but when/if it actually does enforce this, then its all over.

Perhaps you were thinking of VPATH?
Tried that, it breaks DIST. Yes, make dist is not VPATH aware, it
would say cannot cp ./nothere.c

 - Craig

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages automake depends on:
ii  autoconf       2.69-6
ii  autotools-dev  20140510.1

automake recommends no packages.

automake suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to