Fatal error when PERL5LIB environment variable is set
Attempting to use cerbero to build GStreamer using the devtoolset-8 SCL on CentOS 7 fails with
Traceback (most recent call last):
File "./cerbero/cerbero-uninstalled", line 9, in <module>
main()
File "./cerbero/cerbero/main.py", line 189, in main
Main(sys.argv[1:])
File "./cerbero/cerbero/main.py", line 57, in __init__
self.load_config()
File "./cerbero/cerbero/main.py", line 149, in load_config
self.config.load(self.args.config, self.args.variants)
File "./cerbero/cerbero/config.py", line 247, in load
self.do_setup_env()
File "./cerbero/cerbero/config.py", line 268, in do_setup_env
self.env = self.get_env(self.prefix, libdir, self.py_prefix)
File "./cerbero/cerbero/config.py", line 405, in get_env
"variable '%s' with values '%s' and '%s'" % (k, env_v, config_v))
cerbero.errors.FatalError: Fatal Error: Don't know how to combine the environment variable 'PERL5LIB' with values '/usr/local/src/cerbero/build/dist/linux_x86_64/lib/perl5:/usr/local/src/cerbero/build/dist/linux_x86_64/lib/perl5/site_perl/5.16.3' and '/opt/rh/devtoolset-8/root//usr/lib64/perl5/vendor_perl:/opt/rh/devtoolset-8/root/usr/lib/perl5:/opt/rh/devtoolset-8/root//usr/share/perl5/vendor_perl'
It was relatively straight forward to fix this by adding PERL5LIB
to _is_env_multipath_key
in cerbero/config.py, after which the build completed without error.
Unfortunately I can't send a MR for this any time soon, hence the issue :)