can't build xfce4-dev-tools in an alternate location
Submitted by Norm Jacobs
Assigned to Xfce Bug Triage
Description
Created attachment 5493 fix xdt-autogen dependency in scripts/Makefile.am
While trying to build xfce4-dev-tools on Solaris and Linux, I found that I was unable to build in a location other than the source directory. The GNU auto* tools are designed so that software can be unpacked in one location and built in a separate location.
To reproduce this perform the following:
$ git clone git://git.xfce.org/xfce/xfce4-dev-tools
$ mkdir -p build/$(uname -s)-$(uname -p)
$ cd xfce-4-dev-tools
$ NOCONFIGURE=true ./autogen.sh
$ cd ../build/$(uname -s)-$(uname -p)
$ ../../xfce4-dev-tools/configure
$ make
Making all in m4macros
make[1]: Entering directory /tmp/test/build/Linux-x86_64/m4macros' make[1]: Nothing to be done for
all'.
make[1]: Leaving directory /tmp/test/build/Linux-x86_64/m4macros' Making all in scripts make[1]: Entering directory
/tmp/test/build/Linux-x86_64/scripts'
make[1]: *** No rule to make target ../../../xfce4-dev-tools/scripts/xdt-autogen.in', needed by
xdt-autogen'. Stop.
make[1]: Leaving directory `/tmp/test/build/Linux-x86_64/scripts'
make: *** [all-recursive] Error 1
When it gets to building in the 'scripts' directory, it can't make the $(srcdir)/xdt-autogen.in target because it was generated in the current directory by configure, which is not the source directory. This appears to have been initially checked in this way.
The fix is to remove $(srcdir) from the name of the dependency in the xdt-autogen target in scripts/Makefile.am.
I have attached a patch.
Patch 5493, "fix xdt-autogen dependency in scripts/Makefile.am":
xdt-autogen.patch
Version: 4.10.0