Dr-Terrible / ineluctable-overlay

Ineluctable Overlay offers a repository of Gentoo ebuilds for projects that I am interested in, or are not yet available through Portage tree.
GNU General Public License v2.0
11 stars 4 forks source link

[x11-misc/polybar] (v3.0.3) error: 'render_util' has not been declared #19

Closed Dr-Terrible closed 7 years ago

Dr-Terrible commented 7 years ago

MAKEOPTS="-j1" USE="-* xrender python_targets_python2_7" emerge -1av --nodeps --quiet-build n --fail-clean n ~x11-misc/polybar-3.0.3 produces the following compilation error:

[ 76%] Building CXX object bin/CMakeFiles/polybar.dir/x11/connection.cpp.o
cd /var/tmp/portage/x11-misc/polybar-3.0.3-r1/work/polybar-3.0.3_build/bin && /usr/bin/x86_64-pc-linux-gnu-g++   -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/var/tmp/portage/x11-misc/polybar-3.0.3-r1/work/polybar-3.0.3/include -I/var/tmp/portage/x11-misc/polybar-3.0.3-r1/work/polybar-3.0.3/lib/concurrentqueue/include -I/var/tmp/portage/x11-misc/polybar-3.0.3-r1/work/polybar-3.0.3/lib/xpp/include   -DNDEBUG -O2 -pipe -ftracer -frecord-gcc-switches -fno-stack-protector  -Wabi -fabi-version=8  -w -Wno-all -Wno-dev  -ffunction-sections -fdata-sections  -g0 -Wall -Wextra -Werror -O2 -pedantic -pedantic-errors   -pthread -std=c++14 -o CMakeFiles/polybar.dir/x11/connection.cpp.o -c /var/tmp/portage/x11-misc/polybar-3.0.3-r1/work/polybar-3.0.3/src/x11/connection.cpp
/var/tmp/portage/x11-misc/polybar-3.0.3-r1/work/polybar-3.0.3/src/x11/connection.cpp: In constructor 'polybar::v2_0_0::connection::connection(xcb_connection_t*, int)':
/var/tmp/portage/x11-misc/polybar-3.0.3-r1/work/polybar-3.0.3/src/x11/connection.cpp:45:3: error: 'render_util' has not been declared
   render_util::query_extension(*this);
   ^
make[2]: *** [bin/CMakeFiles/polybar.dir/build.make:1311: bin/CMakeFiles/polybar.dir/x11/connection.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/x11-misc/polybar-3.0.3-r1/work/polybar-3.0.3_build'
make[1]: *** [CMakeFiles/Makefile2:457: bin/CMakeFiles/polybar.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/x11-misc/polybar-3.0.3-r1/work/polybar-3.0.3_build'
make: *** [Makefile:128: all] Error 2

This bug is related to https://github.com/Dr-Terrible/ineluctable-overlay/pull/15 and most probably is an upstream bug due to ambiguous C++ API namespaces.

Dr-Terrible commented 7 years ago

The bug has been reported upstream as https://github.com/jaagr/polybar/issues/406

bpinto commented 7 years ago

XRender XDamage XComposite and XSync is currently not used so you can disable them for now. I'll fix the compilation errors.

I guess we should disable these use flags for now and re-enable them when upstream fix them.

Dr-Terrible commented 7 years ago

I guess we should disable these use flags for now and re-enable them when upstream fix them.

I agree. The PR LGTM so far :+1: