After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 342846 - Support for GIT modules in subdirectories of their repository (e.g. see XCB)
Support for GIT modules in subdirectories of their repository (e.g. see XCB)
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: James Henstridge
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2006-05-24 20:41 UTC by Robert Bragg
Modified: 2007-01-09 20:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adds support for a "subdir" attribute for GIT branches (1.67 KB, patch)
2006-05-24 20:48 UTC, Robert Bragg
none Details | Review
jhbuild subdir support for git (3.04 KB, patch)
2006-07-28 22:15 UTC, Eric Anholt
committed Details | Review

Description Robert Bragg 2006-05-24 20:41:15 UTC
Currently I dont think jhbuild supports building projects that use a single GIT repository to organise multiple autotool modules within subdirectories. (Such as the XCB project, please see http://gitweb.freedesktop.org/?p=xcb;a=summary)

The problem is in part due to the fact that it doesn't seem possible to clone arbitrary subdirectories of a GIT repository and so concatonating the branch "module" with the git repositories "href" doesn't provide enough control for the XCB case.

locally I have found it works to add an extra attribute understood by git branches called "subdir". The subdir can then be concatenated with the checkoutdir to create the "srcdir" which is then used as usual to locate the modules autogen.sh

I shall attach a patch showing the changes that worked for me...
Comment 1 Robert Bragg 2006-05-24 20:48:39 UTC
Created attachment 66149 [details] [review]
Adds support for a "subdir" attribute for GIT branches
Comment 3 Eric Anholt 2006-07-28 21:46:48 UTC
I've talked it over with the XCB developers, and if they restructure, it's not going to happen soon, and may not include the restructuring required to use jhbuild on it as-is.  The submitted patch seems pretty small, and, with an additional patch for mesa, will get us to the point of jhbuilding the entire xorg environment.

The alternative to this patch for me would be to add my "checkoutonly" module type, and have autotools modules be able to be non-checkout and point to somewhere relative to another module's checkoutdir (which would mean only one copy of the repository on the build machine).
Comment 4 Eric Anholt 2006-07-28 22:15:11 UTC
Created attachment 69850 [details] [review]
jhbuild subdir support for git

New patch that fixes behaviour on already-checked-out repositories.
Comment 5 Murray Cumming 2007-01-09 17:36:38 UTC
If you are sure about this, and if James doesn't respond, I suggest you go ahead and commit it.
Comment 6 Eric Anholt 2007-01-09 19:40:59 UTC
The xorg need for this patch did go away with the xcb restructuring that ended up happening.  I would probably still commit this patch if I had a gnome commit bit, but it's not a priority to us now like the mesa one is.
Comment 7 Frederic Peters 2007-01-09 20:17:29 UTC
I just commited it anyway since such support would also have been useful
for other modules in the past (with gtk-theme-torturer from Manu Cornet
at least).

(as a side note, Eric, you may have missed it but I applied the MESA patch
yesterday)