Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] xkbcommon/1.4.0: xcb-xkb found:NO #11733

Closed
q4a opened this issue Jul 17, 2022 · 8 comments · Fixed by #11813
Closed

[package] xkbcommon/1.4.0: xcb-xkb found:NO #11733

q4a opened this issue Jul 17, 2022 · 8 comments · Fixed by #11813
Labels
bug Something isn't working

Comments

@q4a
Copy link

q4a commented Jul 17, 2022

Package and Environment Details

  • Package Name/Version: xkbcommon/1.4.0
  • Operating System+version: Linux Ubuntu 22.04
  • Compiler+version: Clang 14
  • Conan version: conan 1.50.0
  • Python version: Python 3.10.4
  • Without docker.

Conan profile

$ conan profile show default
Configuration for profile default:

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=clang
compiler.version=14
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

remove folder ~/.conan/data
run export CC=clang-14 && export CXX=clang++-14 && CONAN_SYSREQUIRES_MODE=enabled conan install xkbcommon/1.4.0@ --build=missing

Logs

Here is full log: conan-log.txt

Last part of log with error
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=clang
compiler.libcxx=libstdc++11
compiler.version=14
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

------------------ downloading, building and installing dependencies here ------------------

xkbcommon/1.4.0: Applying build-requirement: meson/0.61.2
xkbcommon/1.4.0: Applying build-requirement: bison/3.7.6
xkbcommon/1.4.0: Applying build-requirement: ninja/1.10.2
xkbcommon/1.4.0: Applying build-requirement: m4/1.4.19
xkbcommon/1.4.0: Configuring sources in /home/q/.conan/data/xkbcommon/1.4.0/_/_/source

xkbcommon/1.4.0: Copying sources to build folder
xkbcommon/1.4.0: Building your package in /home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc
xkbcommon/1.4.0: Generator pkg_config created meson.pc
xkbcommon/1.4.0: Generator pkg_config created bison.pc
xkbcommon/1.4.0: Generator pkg_config created uuid.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-dri3.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-util.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-event.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-aux.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-atom.pc
xkbcommon/1.4.0: Generator pkg_config created xkeyboard-config.pc
xkbcommon/1.4.0: Generator pkg_config created xcb.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-xinerama.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-xfixes.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-sync.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-shm.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-shape.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-renderutil.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-render.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-randr.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-keysyms.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-image.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-icccm.pc
xkbcommon/1.4.0: Generator pkg_config created xcb-xkb.pc
xkbcommon/1.4.0: Generator pkg_config created xtrans.pc
xkbcommon/1.4.0: Generator pkg_config created xxf86vm.pc
xkbcommon/1.4.0: Generator pkg_config created xvmc.pc
xkbcommon/1.4.0: Generator pkg_config created xv.pc
xkbcommon/1.4.0: Generator pkg_config created xtst.pc
xkbcommon/1.4.0: Generator pkg_config created xt.pc
xkbcommon/1.4.0: Generator pkg_config created xscrnsaver.pc
xkbcommon/1.4.0: Generator pkg_config created xres.pc
xkbcommon/1.4.0: Generator pkg_config created xrender.pc
xkbcommon/1.4.0: Generator pkg_config created xrandr.pc
xkbcommon/1.4.0: Generator pkg_config created xpm.pc
xkbcommon/1.4.0: Generator pkg_config created xmuu.pc
xkbcommon/1.4.0: Generator pkg_config created xmu.pc
xkbcommon/1.4.0: Generator pkg_config created xkbfile.pc
xkbcommon/1.4.0: Generator pkg_config created xinerama.pc
xkbcommon/1.4.0: Generator pkg_config created xi.pc
xkbcommon/1.4.0: Generator pkg_config created xfixes.pc
xkbcommon/1.4.0: Generator pkg_config created xext.pc
xkbcommon/1.4.0: Generator pkg_config created xdmcp.pc
xkbcommon/1.4.0: Generator pkg_config created xdamage.pc
xkbcommon/1.4.0: Generator pkg_config created xcursor.pc
xkbcommon/1.4.0: Generator pkg_config created xcomposite.pc
xkbcommon/1.4.0: Generator pkg_config created xaw7.pc
xkbcommon/1.4.0: Generator pkg_config created xau.pc
xkbcommon/1.4.0: Generator pkg_config created sm.pc
xkbcommon/1.4.0: Generator pkg_config created ice.pc
xkbcommon/1.4.0: Generator pkg_config created fontenc.pc
xkbcommon/1.4.0: Generator pkg_config created x11-xcb.pc
xkbcommon/1.4.0: Generator pkg_config created x11.pc
xkbcommon/1.4.0: Generator pkg_config created xorg.pc
xkbcommon/1.4.0: Generator pkg_config created wayland-egl-backend.pc
xkbcommon/1.4.0: Generator pkg_config created wayland-client.pc
xkbcommon/1.4.0: Generator pkg_config created wayland-egl.pc
xkbcommon/1.4.0: Generator pkg_config created wayland-cursor.pc
xkbcommon/1.4.0: Generator pkg_config created wayland-server.pc
xkbcommon/1.4.0: Generator pkg_config created wayland-scanner.pc
xkbcommon/1.4.0: Generator pkg_config created wayland.pc
xkbcommon/1.4.0: Generator pkg_config created wayland-protocols.pc
xkbcommon/1.4.0: Generator pkg_config created ninja.pc
xkbcommon/1.4.0: Generator pkg_config created libxml-2.0.pc
xkbcommon/1.4.0: Generator pkg_config created libffi.pc
xkbcommon/1.4.0: Generator pkg_config created expat.pc
xkbcommon/1.4.0: Generator pkg_config created m4.pc
xkbcommon/1.4.0: Generator pkg_config created zlib.pc
xkbcommon/1.4.0: Generator pkg_config created libiconv.pc
xkbcommon/1.4.0: Aggregating env generators
xkbcommon/1.4.0: Calling build()
The Meson build system
Version: 0.61.2
Source dir: /home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/source_subfolder
Build dir: /home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/build_subfolder
Build type: native build
Project name: libxkbcommon
Project version: 1.4.0
C compiler for the host machine: clang-14 (clang 14.0.1-1 "Ubuntu clang version 14.0.1-1~kisak1~f")
C linker for the host machine: clang-14 ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -fno-strict-aliasing: YES 
Compiler for C supports arguments -fsanitize-undefined-trap-on-error: YES 
Compiler for C supports arguments -Wno-unused-parameter: YES 
Compiler for C supports arguments -Wno-missing-field-initializers: YES 
Compiler for C supports arguments -Wpointer-arith: YES 
Compiler for C supports arguments -Wmissing-declarations: YES 
Compiler for C supports arguments -Wformat=2: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES 
Compiler for C supports arguments -Wmissing-prototypes: YES 
Compiler for C supports arguments -Wnested-externs: YES 
Compiler for C supports arguments -Wbad-function-cast: YES 
Compiler for C supports arguments -Wshadow: YES 
Compiler for C supports arguments -Wlogical-op: NO 
Compiler for C supports arguments -Wdate-time: YES 
Compiler for C supports arguments -Wwrite-strings: YES 
Compiler for C supports arguments -Wno-documentation-deprecated-sync: YES 
source_subfolder/meson.build:36: WARNING: Consider using the built-in option for sanitizers instead of using "-fsanitize-undefined-trap-on-error".
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency xkeyboard-config found: YES 2.33
Has header "unistd.h" : YES 
Checking if "__builtin_expect" : links: YES 
Header <unistd.h> has symbol "eaccess" : YES 
Header <unistd.h> has symbol "euidaccess" : YES 
Header <sys/mman.h> has symbol "mmap" : YES 
Header <stdlib.h> has symbol "mkostemp" : YES 
Header <fcntl.h> has symbol "posix_fallocate" : YES 
Header <string.h> has symbol "strndup" : YES 
Header <stdio.h> has symbol "asprintf" : YES 
Header <stdlib.h> has symbol "secure_getenv" : YES 
Header <limits.h> has symbol "PATH_MAX" : YES 
Checking if "-Wl,--version-script" : links: YES 
Program scripts/map-to-def found: YES (/home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/source_subfolder/scripts/map-to-def)
Program bison found: YES (/home/q/.conan/data/bison/3.7.6/_/_/package/b8088004976f1a1b816acbd48c5d743f937abc13/bin/bison)
Found CMake: /usr/bin/cmake (3.23.2)
Run-time dependency xcb found: NO (tried pkgconfig and cmake)
Run-time dependency xcb-xkb found: NO (tried pkgconfig and cmake)

source_subfolder/meson.build:284:8: ERROR: Problem encountered: X11 support requires xcb-xkb >= 1.10 which was not found.
You can disable X11 support with -Denable-x11=false.

A full log can be found at /home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/build_subfolder/meson-logs/meson-log.txt
xkbcommon/1.4.0: 
xkbcommon/1.4.0: ERROR: Package '5be0ab7f4075c1292d530560134fabd728caf6dc' build failed
xkbcommon/1.4.0: WARN: Build folder /home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc
ERROR: xkbcommon/1.4.0: Error in build() method, line 121
	meson = self._configure_meson()
while calling '_configure_meson', line 112
	self._meson.configure(
	ConanException: Error 1 while executing meson "/home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/source_subfolder" "/home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/build_subfolder" --backend=ninja -Dprefix="/home/q/.conan/data/xkbcommon/1.4.0/_/_/package/5be0ab7f4075c1292d530560134fabd728caf6dc" -Dlibdir="/home/q/.conan/data/xkbcommon/1.4.0/_/_/package/5be0ab7f4075c1292d530560134fabd728caf6dc/lib" -Dbindir="bin" -Dsbindir="bin" -Dlibexecdir="bin" -Dincludedir="include" -Ddefault_library="static" -Db_staticpic="true" -Denable-wayland="True" -Denable-docs="False" -Denable-x11="True" -Denable-xkbregistry="True" --buildtype=release
List of all installed *xcb* and *xkb*
q@i5-3450:~$ apt list --installed | grep xcb

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libx11-xcb-dev/jammy,now 2:1.7.5-1 amd64 [installed]
libx11-xcb1/jammy,now 2:1.7.5-1 amd64 [installed,automatic]
libx11-xcb1/jammy,now 2:1.7.5-1 i386 [installed,automatic]
libxcb-composite0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-damage0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-dri2-0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-dri2-0/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-dri3-0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-dri3-0/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-dri3-dev/jammy,now 1.14-3ubuntu3 amd64 [installed]
libxcb-glx0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-glx0/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-icccm4-dev/jammy,now 0.4.1-1.1build2 amd64 [installed]
libxcb-icccm4/jammy,now 0.4.1-1.1build2 amd64 [installed,automatic]
libxcb-icccm4/jammy,now 0.4.1-1.1build2 i386 [installed,automatic]
libxcb-image0-dev/jammy,now 0.4.0-2 amd64 [installed]
libxcb-image0/jammy,now 0.4.0-2 amd64 [installed,automatic]
libxcb-image0/jammy,now 0.4.0-2 i386 [installed,automatic]
libxcb-keysyms1-dev/jammy,now 0.4.0-1build3 amd64 [installed]
libxcb-keysyms1/jammy,now 0.4.0-1build3 amd64 [installed,automatic]
libxcb-keysyms1/jammy,now 0.4.0-1build3 i386 [installed,automatic]
libxcb-present0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-present0/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-randr0-dev/jammy,now 1.14-3ubuntu3 amd64 [installed]
libxcb-randr0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-randr0/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-render-util0-dev/jammy,now 0.3.9-1build3 amd64 [installed]
libxcb-render-util0/jammy,now 0.3.9-1build3 amd64 [installed,automatic]
libxcb-render-util0/jammy,now 0.3.9-1build3 i386 [installed,automatic]
libxcb-render0-dev/jammy,now 1.14-3ubuntu3 amd64 [installed]
libxcb-render0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-render0/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-res0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-shape0-dev/jammy,now 1.14-3ubuntu3 amd64 [installed]
libxcb-shape0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-shape0/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-shm0-dev/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-shm0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-shm0/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-sync-dev/jammy,now 1.14-3ubuntu3 amd64 [installed]
libxcb-sync1/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-sync1/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-util-dev/jammy,now 0.4.0-1build2 amd64 [installed]
libxcb-util1/jammy,now 0.4.0-1build2 amd64 [installed,automatic]
libxcb-util1/jammy,now 0.4.0-1build2 i386 [installed,automatic]
libxcb-xfixes0-dev/jammy,now 1.14-3ubuntu3 amd64 [installed]
libxcb-xfixes0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-xfixes0/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-xinerama0-dev/jammy,now 1.14-3ubuntu3 amd64 [installed]
libxcb-xinerama0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-xinerama0/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-xinput0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-xinput0/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-xkb-dev/jammy,now 1.14-3ubuntu3 amd64 [installed]
libxcb-xkb1/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-xkb1/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb-xtest0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-xv0/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb1-dev/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb1-dev/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxcb1/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb1/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
q@i5-3450:~$ apt list --installed | grep xkb

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libxcb-xkb-dev/jammy,now 1.14-3ubuntu3 amd64 [installed]
libxcb-xkb1/jammy,now 1.14-3ubuntu3 amd64 [installed,automatic]
libxcb-xkb1/jammy,now 1.14-3ubuntu3 i386 [installed,automatic]
libxkbcommon-dev/jammy,now 1.4.0-1 amd64 [installed,automatic]
libxkbcommon-dev/jammy,now 1.4.0-1 i386 [installed,automatic]
libxkbcommon-x11-0/jammy,now 1.4.0-1 amd64 [installed,automatic]
libxkbcommon-x11-0/jammy,now 1.4.0-1 i386 [installed,automatic]
libxkbcommon0/jammy,now 1.4.0-1 amd64 [installed,automatic]
libxkbcommon0/jammy,now 1.4.0-1 i386 [installed,automatic]
libxkbfile-dev/jammy,now 1:1.1.0-1build3 amd64 [installed]
libxkbfile1/jammy,now 1:1.1.0-1build3 amd64 [installed,automatic]
x11-xkb-utils/jammy,now 7.7+5build4 amd64 [installed,automatic]
xkb-data/jammy,jammy,now 2.33-1 all [installed]
@q4a q4a added the bug Something isn't working label Jul 17, 2022
@mourogurt
Copy link
Contributor

mourogurt commented Jul 19, 2022

Same with xkbcommon/1.4.1
Try to manually reproduce pkgconfig lookup. The output:
$ export PKG_CONFIG_PATH="/:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/h:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/o:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/m:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/e:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/c:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/n:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/a:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/.:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/d:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/t:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/x:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/k:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/b:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/1:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/4:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/_:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/u:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/i:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/l:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/5:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/0:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/7:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/f:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/2:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/9:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/3:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/6:/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/8"
$ pkg-config --modversion xcb-xkb
Duplicate definition of variable 'pcfiledir' in '/home/conan/.conan/data/xkbcommon/1.4.1/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/./xcb-xkb.pc'
It seems that the conan generates invalid .pc files instead of using system one.
Meson build log: meson-log.txt

@mourogurt
Copy link
Contributor

Reverted patch #11634 and now meson found libraries:

Run-time dependency xcb found: YES 1.14
Run-time dependency xcb-xkb found: YES 1.14

Now I'm pretty sure there is something wrong with pkg-config deps generator.

ericLemanissier added a commit to ericLemanissier/conan-center-index that referenced this issue Jul 20, 2022
@ericLemanissier
Copy link
Contributor

#11813 seems to fix the pkg-config generation on my end. Can you please try ?

@q4a
Copy link
Author

q4a commented Jul 20, 2022

@ericLemanissier I'm new with conan, so is there step-by-step guide how to test your changes?

@ericLemanissier
Copy link
Contributor

the easiest is to manually edit ~/.conan/data/xorg/system/_/_/export/conanfile.py and do this change: https://github.com/conan-io/conan-center-index/pull/11813/files
The cleaner would be clone the patch-1 branch of my fork https://github.com/ericLemanissier/conan-center-index, go in the local copy, and call conan export recipes/xorg/all xorg/system@
Finally, you can retry whatever conan command you where executing related to xkbcommon.

@q4a
Copy link
Author

q4a commented Jul 20, 2022

After changing ~/.conan/data/xorg/system/_/_/export/conanfile.py it moved forward: xcb was found but did not find/download wayland stuff: xkbcli programs require wayland-client >= 1.2.0, wayland-protocols >= 1.7 which were not found

Program scripts/map-to-def found: YES (/home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/source_subfolder/scripts/map-to-def)
Program bison found: YES (/home/q/.conan/data/bison/3.7.6/_/_/package/b8088004976f1a1b816acbd48c5d743f937abc13/bin/bison)
Run-time dependency xcb found: YES 1.14
Run-time dependency xcb-xkb found: YES 1.14
Run-time dependency libxml-2.0 found: YES 2.9.14
Header <getopt.h> has symbol "getopt_long" : YES 
Has header "linux/input.h" : YES 
Dependency wayland-client found: NO found None but need: '>=1.2.0'
Found CMake: /usr/bin/cmake (3.23.2)
Run-time dependency wayland-client found: NO (tried pkgconfig and cmake)
Run-time dependency wayland-protocols found: YES 1.24

source_subfolder/meson.build:482:12: ERROR: Problem encountered: The Wayland xkbcli programs require wayland-client >= 1.2.0, wayland-protocols >= 1.7 which were not found.
You can disable the Wayland xkbcli programs with -Denable-wayland=false.

A full log can be found at /home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/build_subfolder/meson-logs/meson-log.txt
xkbcommon/1.4.0: 
xkbcommon/1.4.0: ERROR: Package '5be0ab7f4075c1292d530560134fabd728caf6dc' build failed
xkbcommon/1.4.0: WARN: Build folder /home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc
ERROR: xkbcommon/1.4.0: Error in build() method, line 121
        meson = self._configure_meson()                                                                                                                                                       
while calling '_configure_meson', line 112                                                                                                                                                    
        self._meson.configure(                                                                                                                                                                
        ConanException: Error 1 while executing meson "/home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/source_subfolder" "/home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/build_subfolder" --backend=ninja -Dprefix="/home/q/.conan/data/xkbcommon/1.4.0/_/_/package/5be0ab7f4075c1292d530560134fabd728caf6dc" -Dlibdir="/home/q/.conan/data/xkbcommon/1.4.0/_/_/package/5be0ab7f4075c1292d530560134fabd728caf6dc/lib" -Dbindir="bin" -Dsbindir="bin" -Dlibexecdir="bin" -Dincludedir="include" -Ddefault_library="static" -Db_staticpic="true" -Denable-wayland="True" -Denable-docs="False" -Denable-x11="True" -Denable-xkbregistry="True" --buildtype=release

May be this is another error ??

@ericLemanissier
Copy link
Contributor

This is indeed an unrelated error (contrary to what my now-deleted previous message stated).
Can you please retry with https://github.com/conan-io/conan-center-index/pull/11821/files ?

@q4a
Copy link
Author

q4a commented Jul 20, 2022

Thanks a lot. After editing ~/.conan/data/wayland/1.20.0/_/_/export/conanfile.py - it works fine:

Program scripts/map-to-def found: YES (/home/q/.conan/data/xkbcommon/1.4.0/_/_/build/5be0ab7f4075c1292d530560134fabd728caf6dc/source_subfolder/scripts/map-to-def)
Program bison found: YES (/home/q/.conan/data/bison/3.7.6/_/_/package/b8088004976f1a1b816acbd48c5d743f937abc13/bin/bison)
Run-time dependency xcb found: YES 1.14
Run-time dependency xcb-xkb found: YES 1.14
Run-time dependency libxml-2.0 found: YES 2.9.14
Header <getopt.h> has symbol "getopt_long" : YES 
Has header "linux/input.h" : YES 
Run-time dependency wayland-client found: YES 1.20.0
Run-time dependency wayland-protocols found: YES 1.24
Program wayland-scanner found: YES (/home/q/.conan/data/wayland/1.20.0/_/_/package/6be46e35a793438f1eeda428266a8965ede2f288/bin/wayland-scanner)
Configuring xkeyboard-config-test using configuration
Configuring test-config.h using configuration

And my command export CC=clang-14 && export CXX=clang++-14 && CONAN_SYSREQUIRES_MODE=enabled conan install xkbcommon/1.4.0@ --build=missing finished without error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants