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 765394 - Unset MAKEFLAGS to avoid build errors
Unset MAKEFLAGS to avoid build errors
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: cerbero
unspecified
Other Linux
: Normal normal
: 1.8.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-04-21 20:44 UTC by Xavier Claessens
Modified: 2016-04-23 10:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Unset MAKEFLAGS env variable when building makefile recipes (924 bytes, patch)
2016-04-21 20:45 UTC, Xavier Claessens
committed Details | Review

Description Xavier Claessens 2016-04-21 20:44:45 UTC
I have MAKEFLAGS=-j4 set in my .bashrc which cause issues with recipes that does not support parallel builds like libtheora for windows.

I think build env should unset it to avoid user settings messing up with cerbero builds.
Comment 1 Xavier Claessens 2016-04-21 20:45:04 UTC
Created attachment 326520 [details] [review]
Unset MAKEFLAGS env variable when building makefile recipes

This avoids having user settings messing up our build.
Comment 2 Sebastian Dröge (slomo) 2016-04-22 07:04:40 UTC
On Windows, parallel builds don't work well in general.

Also this patch is breaking my use case, I have MAKEFLAGS=-j16 in the environment when using cerbero :) But I guess I could use the parallel build feature of cerbero instead.

That said, this patch makes sense as it gives cerbero the control over this setting.
Comment 3 Tim-Philipp Müller 2016-04-22 10:19:22 UTC
+1 from me obviously ;)

I think cerbero as a build system should be as much a controlled environment as possible.
Comment 4 Xavier Claessens 2016-04-22 14:18:00 UTC
(In reply to Sebastian Dröge (slomo) from comment #2)
> On Windows, parallel builds don't work well in general.

I made several builds lately, only libtheora failed to build with MAKEFLAGS=-j4. If other recipes are known to be problematic on windows, can parallel build be disabled on a per-platform basis?

> Also this patch is breaking my use case, I have MAKEFLAGS=-j16 in the
> environment when using cerbero :) But I guess I could use the parallel build
> feature of cerbero instead.

I was doing exactly the same, I just added allow_parallel_build = True in my .cerbero/cerbero.cbc for the same result.

> That said, this patch makes sense as it gives cerbero the control over this
> setting.

Yes I think it's important, user flags could lead to hard to find issues.
Comment 5 Tim-Philipp Müller 2016-04-23 10:23:24 UTC
commit a5d6bb96cc364606905a5f65ba88fbcbed813622
Author: Xavier Claessens <xavier.claessens@collabora.com>
Date:   Thu Apr 21 16:16:37 2016 -0400

    Unset MAKEFLAGS env variable when building makefile recipes
    
    This avoids having user settings messing up our build.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765394