public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Walter Dnes <waltdnes@waltdnes.org>
To: Gentoo Users List <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] Permanent workaround for x11-libs/libxcb build problem
Date: Tue, 23 Apr 2024 17:04:27 -0400	[thread overview]
Message-ID: <MTAwMDAyMi53ZG5lc2RheQ.1713906271@quikprotect> (raw)

  Some machines (e.g. my laptop) experience problems when building the
package x11-libs/libxcb

=====================================================================
Traceback (most recent call last):
  File "/var/tmp/portage/x11-libs/libxcb-1.16.1/work/libxcb-1.16.1/src/c_client.py", line 3395, in <module>
    module.generate()
  File "/usr/lib/python3.11/site-packages/xcbgen/state.py", line 131, in generate
    item.out(name)
  File "/var/tmp/portage/x11-libs/libxcb-1.16.1/work/libxcb-1.16.1/src/c_client.py", line 3212, in c_request
    _man_request(self, name, void=not self.reply, aux=False)
  File "/var/tmp/portage/x11-libs/libxcb-1.16.1/work/libxcb-1.16.1/src/c_client.py", line 2676, in _man_request
    f.write('%s \\- %s\n' % (func_name, brief))
UnicodeEncodeError: 'latin-1' codec can't encode character '\u201c' in position 68: ordinal not in range(256)
make[1]: *** [Makefile:1425: composite.c] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/x11-libs/libxcb-1.16.1/work/libxcb-1.16.1-abi_x86_64.amd64/src'
make: *** [Makefile:799: all-recursive] Error 1
  ERROR: x11-libs/libxcb-1.16.1::gentoo failed (compile phase):
  emake failed
=====================================================================

  Every so often libxcb gets (re)built and this error pops up.  It's
always vaguely familiar, so I dig through my gentoo list email, and
figure out that libxcb wants 'LC_ALL="C"' and set it for that one time.
I got tired of re-doing this all the time.  This problem is a textbook
example for package.env.  Two one-line files solve the error permanently. 
Make sure that you've created directories "/etc/portage/package.env/"
and "/etc/portage/env/".  Here are the two one-line files.

[thimk2][root][~] cat /etc/portage/env/libxcb.conf 
LC_ALL="C"

[thimk2][root][~] cat /etc/portage/package.env/package.env 
x11-libs/libxcb libxcb.conf

  If you're already using package.env, add the line...
x11-libs/libxcb libxcb.conf
...to your existing package.env file.

-- 
Roses are red
Roses are blue
Depending on their velocity
Relative to you


                 reply	other threads:[~2024-04-23 21:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MTAwMDAyMi53ZG5lc2RheQ.1713906271@quikprotect \
    --to=waltdnes@waltdnes.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox