Problem with autotools/make creating directories called $(top_srcdir)
GIMP version: current HEAD 1661aab6
Operating System: Gentoo
Description of the bug
I'm trying to re-build GIMP from sources and configure using
./autogen.sh. During configure I get twice the warning
config.status: WARNING: docs/gimprc-2.99.5 contains a reference to the variable `datarootdir' which seems to be undefined. Please make sure it is defined.
While trying to compile the code I get the error:
make: Entering directory '/home/tomaszg/src/gimp/git/gimp/libgimpbase' Makefile:1150: ../libgimpbase/.deps/gimpvaluearray.Plo: No such file or directory make: *** No rule to make target '../libgimpbase/.deps/gimpvaluearray.Plo'. Stop.
It seems the reason is that build process creates directories literally named
$(top_srcdir) in various subdirectories (including
libgimpbase) where the missing file is located. I can't find any obvious (for me) reason for this in generated
Makefiles. I'm using
GNU Autoconf 2.69,
Make 4.2.1 and
Reproducible always. Tried cleaning git tree with
git clean -dxf and also building in a newly cloned repo.
git clone https://gitlab.gnome.org/GNOME/gimp.git; cd gimp
Expected result: Gimp builds correctly.
Actual result: Gimp fails to build.