Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642330 - xorg-2.eclass needs --host=${CHOST} to work in crossdev [WITH PATCH]
Summary: xorg-2.eclass needs --host=${CHOST} to work in crossdev [WITH PATCH]
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-12-26 16:41 UTC by Emmanuel Lepage Vallee
Modified: 2018-05-26 20:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Crude patch to resolve the issue (eclass.patch,372 bytes, patch)
2017-12-26 16:41 UTC, Emmanuel Lepage Vallee
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Lepage Vallee 2017-12-26 16:41:37 UTC
Created attachment 511658 [details, diff]
Crude patch to resolve the issue

When emerging xrenderproto, I get:

/usr/portage/dev-util/electron/electron-1.6.15.ebuild:  has_version --host-root "dev-python/simplejson[${PYTHON_USEDEP}]"
/usr/portage/dev-util/cargo/cargo-0.17.0.ebuild:                --host=${CTARGET}
/usr/portage/dev-util/cargo/cargo-0.15.0.ebuild:                --host=${CTARGET}
/usr/portage/dev-util/cargo/cargo-0.16.0.ebuild:                --host=${CTARGET}
/usr/portage/dev-util/w32api/w32api-4.0.3.1.ebuild:             --host=${CTARGET} \
/usr/portage/dev-util/w32api/w32api-3.17.2.ebuild:              --host=${CTARGET} \
/usr/portage/dev-util/pkgconfig/pkgconfig-0.29.2.ebuild:                if ! has_version --host-root dev-util/pkgconfig; then
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in `/usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/x11-proto/renderproto-0.11.1-r1/work/renderproto-0.11.1-.32':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /usr/armv7a-hardfloat-linux-gnueabi/tmp/portage/x11-proto/renderproto-0.11.1-r1/work/renderproto-0.11.1-.32/config.log
 * ERROR: x11-proto/renderproto-0.11.1-r1::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:


To fix this, addind `--host="${CHOST}" --disable-malloc0returnsnull` to `myeconfargs` in `/usr/portage/eclass/xorg-2.eclass` is needed.

The `malloc0returnsnull` is a semi related issue where --host requires it since otherwise it tries to execte ARM code on x86_64.

I am sure the patch attached is way to ugly to get merged as-is, but at least someone more knowledgeable about the eclass good practices can improve it.
Comment 1 Matt Turner gentoo-dev 2018-05-26 20:40:49 UTC
I see --host= being passed already to packages using xorg-2, so I'm not sure what's going on.

All of the x11-proto/* packages (including renderproto) have now been combined into x11-base/xorg-proto, which uses a Meson build system. Please test if xorg-proto works for you with crossdev.