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 761111 - cerbero: allow building without reading ~/.cerbero
cerbero: allow building without reading ~/.cerbero
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: cerbero
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-01-26 01:11 UTC by Martin Kelly
Modified: 2018-02-21 15:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
cerbero: allow building without reading ~/.cerbero (3.16 KB, patch)
2016-01-26 01:12 UTC, Martin Kelly
reviewed Details | Review

Description Martin Kelly 2016-01-26 01:11:23 UTC
By default, cerbero looks for ~/.cerbero for configuration. However,
when building in an isolated environment, such as on a build machine,
it's desirable to have a reproducible build that is not influenced by
settings outside of the cerbero git repo.

The attached patch adds a command-line option -i/--isolated to not read ~/.cerbero,
defaulting to False in order to preserve the current behavior when an
isolated build is not needed.
Comment 1 Martin Kelly 2016-01-26 01:12:09 UTC
Created attachment 319719 [details] [review]
cerbero: allow building without reading ~/.cerbero
Comment 2 Sebastian Dröge (slomo) 2016-02-16 16:24:10 UTC
Comment on attachment 319719 [details] [review]
cerbero: allow building without reading ~/.cerbero

Maybe instead of that we could just remove the warning if ~/.cerbero is not found?
Comment 3 Sebastian Dröge (slomo) 2016-02-16 16:24:58 UTC
Or in general not read ~/.cerbero if -c is provided?
Comment 4 Martin Kelly 2016-02-16 16:35:52 UTC
Not reading ~/.cerbero if -c is provided seems sensible to me, as long as we're OK with breaking people who may have been relying on both configs taking effect. If you'd like me to submit that, I'll rework and attach a new patch.

I don't want to merely removing the warning, as the main intention of the patch is to get more reproducible builds by making sure ~/.cerbero won't cause different builds on different users' machines.
Comment 5 Edward Hervey 2016-02-16 16:38:11 UTC
Let's not break the behaviour.

Just remove the warning if .cerbero is not present (regardless of whether -c is being used or not).

.cerbero is the "system-wide" settings, whereas -c is generally used for specific builds.
Comment 6 Martin Kelly 2016-02-16 16:45:49 UTC
I would be happy to remove the warning. However, merely removing the warning doesn't address the case of a build machine in which you want reproducible builds that don't depend on config that happens to be in ~/.cerbero. For example, if you someone creates a ~/.cerbero file and then forgets that they did so, they will get different build behavior that someone else who does not, which can result in hard-to-debug build issues.

That's why I think having a --isolated switch to explicitly ignore the environment is useful; it satisfies my use case and avoids breaking anyone who relies on ~/.cerbero.
Comment 7 Martin Kelly 2016-05-18 00:39:19 UTC
(friendly ping)
Comment 8 Edward Hervey 2018-02-21 15:55:11 UTC
Works fine now. Closing.