<div dir="ltr"><div>Hello,</div><div>I had previously sent a similar mail on tbb-community-team. But Georg advised me to send it on tbb-dev. So here I am.</div><div><br></div><div>I am actually working on modifying some parts of Tor Browser for my 
project and for that I will need to build Tor Browser's source code. I 
was following <a href="https://trac.torproject.org/projects/tor/wiki/doc/TorBrowser/Hacking" rel="nofollow noreferrer" target="_blank">this website</a> (Georg has updated it now) and after cloning tor-browser-build repo, I did a |<code>make nightly-linux-x86_64|</code>,
 which took almost half a day to complete on my Ubuntu 18.04 system. 
But, since I would be making some changes to the browser (mostly Firefox
 code), I need to alter code and build again and again.</div><div><br></div><div>In the above website, there is an option for '<em>Building Just Firefox</em>'
 and I am trying that. Coming to the updated wiki, I think there might still be some issues there. Allow me to make myself clearer:</div><div><br></div><div>(1)</div><div> Installation of packages. Some of them may be deprecated. For example I get this after running the command :<br></div><div>|||</div><div>Reading package lists... Done<br>Building dependency tree       <br>Reading state information... Done<br>Package hardening-wrapper is not available, but is referred to by another package.<br>This may mean that the package is missing, has been obsoleted, or<br>is only available from another source<br><br>E: Package 'hardening-wrapper' has no installation candidate<br>E: Unable to locate package libgstreamer-plugins-base0.10-dev<br>E: Couldn't find any package by glob 'libgstreamer-plugins-base0.10-dev'<br>E: Couldn't find any package by regex 'libgstreamer-plugins-base0.10-dev'</div><div>|||<br> </div><div><br></div><div>(2)</div><div>Assuming this is not the issue, I proceeded and made the new file 
|.mozconfig| and copied the given two lines into it, cloned and moved 
the tor-launcher as well and ran the |./mach configure --with-tor-...| 
command, which gives:</div><div>|||</div><div> 0:04.24 checking whether the target C compiler can be used... yes<br> 0:04.24 Traceback (most recent call last):<br> 0:04.24   File "/home/hackyou/Desktop/tor-browser/configure.py", line 127, in <module><br> 0:04.24     sys.exit(main(sys.argv))<br> 0:04.24   File "/home/hackyou/Desktop/tor-browser/configure.py", line 29, in main<br> 0:04.25     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))<br> 0:04.25   File "/home/hackyou/Desktop/tor-browser/python/mozbuild/mozbuild/configure/__init__.py", line 424, in run<br> 0:04.25     raise InvalidOptionError('Unknown option: %s' % without_value)<br> 0:04.25 mozbuild.configure.options.InvalidOptionError: Unknown option: --with-tor-browser-version<br> 0:04.28 *** Fix above errors and then restart with\<br> 0:04.28                "/usr/bin/make -f <a href="http://client.mk" target="_blank">client.mk</a> build"<br> 0:04.29 <a href="http://client.mk:145" target="_blank">client.mk:145</a>: recipe for target 'configure' failed<br> 0:04.29 make: *** [configure] Error 1</div><div>|||</div><div>I think the option "--with-tor-browser-version" is unknown as given in the error message.</div><div><br></div><div>I removed that option and tried again and I get this error.</div><div>|||</div><div>0:02.61 checking rustc version... 1.34.2<br> 0:02.63 checking cargo version... 1.34.0<br> 0:02.68 Traceback (most recent call last):<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/configure.py", line 127, in <module><br> 0:02.68     sys.exit(main(sys.argv))<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/configure.py", line 29, in main<br> 0:02.68     sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/python/mozbuild/mozbuild/configure/__init__.py", line 428, in run<br> 0:02.68     func(*args)<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/python/mozbuild/mozbuild/configure/__init__.py", line 474, in _value_for<br> 0:02.68     return self._value_for_depends(obj, need_help_dependency)<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/python/mozbuild/mozbuild/util.py", line 944, in method_call<br> 0:02.68     cache[args] = self.func(instance, *args)<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/python/mozbuild/mozbuild/configure/__init__.py", line 483, in _value_for_depends<br> 0:02.68     return obj.result(need_help_dependency)<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/python/mozbuild/mozbuild/util.py", line 944, in method_call<br> 0:02.68     cache[args] = self.func(instance, *args)<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/python/mozbuild/mozbuild/configure/__init__.py", line 123, in result<br> 0:02.68     return self._func(*resolved_args)<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/python/mozbuild/mozbuild/configure/__init__.py", line 1003, in wrapped<br> 0:02.68     return new_func(*args, **kwargs)<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/build/moz.configure/rust.configure", line 122, in rust_supported_targets<br> 0:02.68     t = split_triplet(t, allow_unknown=True)<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/python/mozbuild/mozbuild/configure/__init__.py", line 1003, in wrapped<br> 0:02.68     return new_func(*args, **kwargs)<br> 0:02.68   File "/home/hackyou/Desktop/tor-browser/build/moz.configure/init.configure", line 580, in split_triplet<br> 0:02.68     cpu, manufacturer, os = triplet.split('-', 2)<br> 0:02.68 ValueError: need more than 2 values to unpack<br> 0:02.72 *** Fix above errors and then restart with\<br> 0:02.72                "/usr/bin/make -f <a href="http://client.mk" target="_blank">client.mk</a> build"<br> 0:02.72 <a href="http://client.mk:145" target="_blank">client.mk:145</a>: recipe for target 'configure' failed<br> 0:02.72 make: *** [configure] Error 1<br></div><div>|||</div><div>Georg had suggested that it should run without <a href="https://hg.mozilla.org/integration/autoland/rev/36f4ba2fb6f5">patching</a> the |init.configure| file, where the error has occurred. But it is not happening for me.<br></div><div>I hope I can get some help here as I have been stuck for quite a while now. Kindly help me out.<br></div><div><br></div><div>Warm Regards,</div><div>Rishabh Raj</div></div>