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 160535 - allow jhbuildrc to override make command
allow jhbuildrc to override make command
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other other
: Normal normal
: ---
Assigned To: James Henstridge
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2004-12-05 21:30 UTC by Dan Winship
Modified: 2005-05-14 19:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (5.80 KB, patch)
2004-12-05 21:31 UTC, Dan Winship
none Details | Review
revised patch using $MAKE (4.37 KB, patch)
2004-12-14 23:17 UTC, Dan Winship
committed Details | Review

Description Dan Winship 2004-12-05 21:30:49 UTC
This patch adds a "make" config variable, defaulting to "make". This
lets you configure jhbuild to use GNU make rather than the system make
on non-Linux OSes, since various GNOME packages use GNU-make-specific
features.
Comment 1 Dan Winship 2004-12-05 21:31:13 UTC
Created attachment 34516 [details] [review]
patch
Comment 2 James Henstridge 2004-12-09 14:10:20 UTC
Rather than adding a new config key, wouldn't it make more sense to use the
$MAKE environment variable?

The user can set it in their config file by assigning to os.environ['MAKE'], and
you can get the value using os.environ.get('MAKE', 'make').
Comment 3 Dan Winship 2004-12-14 23:17:48 UTC
Created attachment 34839 [details] [review]
revised patch using $MAKE

OK, here's a patch that does it that way
Comment 4 James Henstridge 2005-04-05 05:59:58 UTC
Looks like I forgot about this bug.  The patch looks okay, so feel free to apply it.
Comment 5 Michele Baldessari 2005-04-10 12:16:04 UTC
Whenever someone gets around applying this (patch still applies cleanly modulo
ChangeLog), it'd be nice to add an example in
sample.jhbuildrc along these lines:

--- sample.jhbuildrc.orig       2005-04-10 14:07:30.863633784 +0200
+++ sample.jhbuildrc    2005-04-10 14:08:10.250646048 +0200
@@ -27,6 +27,9 @@
 # set CFLAGS:
 #os.environ['CFLAGS'] = '-g -O2'

+# On SMP systems you may use something like this to improve compilation time:
+#os.environ['MAKE'] = 'make -j2'
+
 # a alternative install program to use.
 # The included install-check program won't update timestamps if the
 # header hasn't changed
Comment 6 Olav Vitters 2005-05-14 19:14:47 UTC
Committed as patch had status accept-commit_now for a while now.

Also added the example suggested by Michele Baldessari (separate commit).

Marking FIXED.