Gentoo Archives: gentoo-user

From: Branko Grubic <bitlord0xff@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Building firefox-61 with distcc
Date: Thu, 02 Aug 2018 20:37:44
Message-Id: 20180802223315.23f47551@x220.linux.gnu
In Reply to: [gentoo-user] Building firefox-61 with distcc by Daniel Frey
1 On Thu, 2 Aug 2018 13:14:22 -0700
2 Daniel Frey <djqfrey@×××××.com> wrote:
3
4 > Well, I discovered some of my plugins stopped working on Firefox
5 > because they've been updated to the new plugin format.
6 >
7 > I've been using distcc for a long time now, and I've tried to build
8 > firefox and it fails with:
9 >
10 > --------------
11 > Traceback (most recent call last):
12 > File "/usr/lib64/python2.7/threading.py", line 801, in
13 > __bootstrap_inner self.run()
14 > File "/usr/lib64/python2.7/threading.py", line 754, in run
15 > self.__target(*self.__args, **self.__kwargs)
16 > File
17 > "/var/tmp/portage/www-client/firefox-61.0-r1/work/firefox-61.0/testing/mozbase/mozprocess/mozprocess/processhandler.py",
18 > line 1028, in _read
19 > callback(line.rstrip())
20 > File
21 > "/var/tmp/portage/www-client/firefox-61.0-r1/work/firefox-61.0/testing/mozbase/mozprocess/mozprocess/processhandler.py",
22 > line 944, in __call__
23 > e(*args, **kwargs)
24 > File
25 > "/var/tmp/portage/www-client/firefox-61.0-r1/work/firefox-61.0/python/mach/mach/mixin/process.py",
26 > line 86, in handleLine
27 > line_handler(line)
28 > File
29 > "/var/tmp/portage/www-client/firefox-61.0-r1/work/firefox-61.0/python/mozbuild/mozbuild/controller/building.py",
30 > line 681, in on_line
31 > self.log(logging.INFO, 'build_output', {'line': message},
32 > '{line}') File
33 > "/var/tmp/portage/www-client/firefox-61.0-r1/work/firefox-61.0/python/mach/mach/mixin/logging.py",
34 > line 54, in log
35 > extra={'action': action, 'params': params})
36 > File "/usr/lib64/python2.7/logging/__init__.py", line 1231, in log
37 > self._log(level, msg, args, **kwargs)
38 > File "/usr/lib64/python2.7/logging/__init__.py", line 1286, in _log
39 > self.handle(record)
40 > File "/usr/lib64/python2.7/logging/__init__.py", line 1296, in
41 > handle self.callHandlers(record)
42 > File "/usr/lib64/python2.7/logging/__init__.py", line 1336, in
43 > callHandlers
44 > hdlr.handle(record)
45 > File "/usr/lib64/python2.7/logging/__init__.py", line 759, in handle
46 > self.emit(record)
47 > File
48 > "/var/tmp/portage/www-client/firefox-61.0-r1/work/firefox-61.0/python/mozbuild/mozbuild/controller/building.py",
49 > line 564, in emit
50 > self.fh.write(msg)
51 > UnicodeEncodeError: 'ascii' codec can't encode characters in position
52 > 138-140: ordinal not in range(128)
53 >
54 > ----------
55 >
56 > What I'm trying to figure out is if this is due to the recent python
57 > changes or if it really is a distcc problem as per:
58 >
59 > https://bugs.gentoo.org/662516
60 >
61 > (I just noticed they tagged it wontfix. :( )
62 >
63 > Has anyone found a solution for this other than disabling distcc
64 > altogether? I'm going to try that now and see if it compiles.
65 >
66 > If it does turn out to be distcc is there a method to disable distcc
67 > just for the firefox package? The distcc article @ gentoo wiki doesn't
68 > mention anything.
69 >
70 > Dan
71 >
72
73 Same issue here with FF and distcc, it's happening for few releases
74 now, whenever I tried to find a solution I was going over some old
75 build system issues with FF on their bugzilla.
76
77 You can disable distcc for specific package using package.use[1].
78 I have just two things set:
79 FEATURES="-distcc -distcc-pump"
80 and MAKEOPTS reduced in the nodistcc.conf
81
82
83 [1] https://wiki.gentoo.org/wiki//etc/portage/package.env

Replies

Subject Author
Re: [gentoo-user] Building firefox-61 with distcc Branko Grubic <bitlord0xff@×××××.com>