Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 696802

Summary: libX11 does not build in docker container
Product: Gentoo Linux Reporter: Mathias Laurin <Mathias.Laurin+gentoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info '=x11-libs/libX11-1.6.8::gentoo'

Description Mathias Laurin 2019-10-05 19:11:47 UTC
Created attachment 591922 [details]
emerge --info '=x11-libs/libX11-1.6.8::gentoo'

I wanted to test a GUI app in a Gentoo environment in docker (for Travis CI). I have set VIDEO_CARDS="dummy" and "-xorg xvfb" for headless X.  I could build a lot of packages but libX11 refuses to build.

The Dockerfiles is available at `https://github.com/Synss/elogviewer/blob/gentoo-in-docker/Dockerfile`.  I build it and run it with `https://github.com/Synss/elogviewer/blob/gentoo-in-docker/docker_gentoo`.  (Build with `docker_gentoo -b` and run with `docker_gentoo -r`).

I have tried under MacOS (where docker runs in a VM) and under Linux native (where docker does not run virtualized).


The attachements are:

 * _1: emerge --info '=x11-libs/libX11-1.6.8::gentoo'
 * _2: emerge -pqv '=x11-libs/libX11-1.6.8::gentoo'
 * _build.log: /var/tmp/portage/x11-libs/libX11-1.6.8/temp/build.log
 * _environment: /var/tmp/portage/x11-libs/libX11-1.6.8/temp/environment

The build fails with

```
 * Messages for package x11-libs/libX11-1.6.8:

 * ERROR: x11-libs/libX11-1.6.8::gentoo failed (compile phase
):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x
11-libs/libX11-1.6.8::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x1
1-libs/libX11-1.6.8::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11
-libs/libX11-1.6.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portag
e/x11-libs/libX11-1.6.8/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-libs/libX11-1.6.8
/work/libX11-1.6.8-abi_x86_64.amd64'
 * S: '/var/tmp/portage/x11-libs/libX11-1.6.8/work/libX11-1.6
.8'

```

Note that I realize that this is a fairly exotic setup.  I would understand if you would close this bug as "not supported".
Comment 1 Mart Raudsepp gentoo-dev 2019-10-05 20:36:29 UTC

*** This bug has been marked as a duplicate of bug 696804 ***