GNOME Bugzilla – Bug 689472
autotools: append branch subdir to builddir for non-srcdir modules
Last modified: 2021-05-17 15:55:37 UTC
Created attachment 230430 [details] [review] proposed patch For non-srcdir builds of autotools modules, the name of the build directory takes into account the buildroot and the branch's module name, but not the branch's subdir. As a result, multiple autotools modules can be built with the same builddir if their sources are in subdirectories of the same branch. This patch modifies autotools' get_builddir method to append the branch's subdir, if it has one, when performing a non-srcdir build. My example of such a source layout is this git repository: http://www.lsc-group.phys.uwm.edu/cgit/lalsuite/tree/ It contains a number of closely related autotools and distutils projects for analyzing data for the LIGO experiment <http://www.ligo.org/>.
Is there a way to work around this with a builddir_pattern setting in my jhbuildrc file?
Created attachment 341973 [details] [review] updated patch I am attaching an updated and rebased patch that corrects an issue with tarball sources, which do not have subdir attributes.
Review of attachment 341973 [details] [review]: I tested this but it doesn't seem to work? At least when I 'git checkout gnome-3-22' and 'jhbuild buildone -n epiphany' all the build files are still generated in ~/.cache/jhbuild/build/epiphany, not in any subdir. :/
That is as expected because epiphany is in its own git repository (https://git.gnome.org/browse/epiphany/tree/). This patch will only affect git repositories that contain multiple autotools projects in individual subdirectories (e.g. https://versions.ligo.org/cgit/lalsuite/tree/).
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/jhbuild/-/issues/155.