Source: sway Version: 1.0-1 Severity: important Tags: experimental, ftbfs, upstream
Dear Maintainer, My attempt to build Salsa VCS checkout with `dpkg-buildpackage -us -uc` will fail there: ``` Dependency scdoc found: YES 1.9.4 Called `/usr/bin/pkg-config --variable=scdoc scdoc` -> 0 /usr/local/bin/scdoc Got pkgconfig variable scdoc : /usr/local/bin/scdoc Program /usr/local/bin/scdoc found: NO meson.build:100:1: ERROR: Program(s) ['/usr/local/bin/scdoc'] not found or not executable ``` It looks like it finds /usr/bin/scdoc, but then pkg-config changes to look for /usr/local/bin/scdoc and subsequently fails. The relevant part of upstream's meson.build is: ``` scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: get_option('man-pages')) if scdoc.found() scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true) [...] endif ``` I'm attaching Meson build logs. Thanks. -- System Information: Debian Release: 10.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled $ apt policy scdoc scdoc: Installed: 1.9.4-1 Candidate: 1.9.4-1 Version table: *** 1.9.4-1 500 500 http://deb.debian.org/debian sid/main amd64 Packages 100 /var/lib/dpkg/status
Build started at 2019-04-25T02:45:02.424601 Main binary: /usr/bin/python3 Python system: Linux The Meson build system Version: 0.49.2 Source dir: /home/wub/.local/src/sway/sway Build dir: /home/wub/.local/src/sway/sway/obj-x86_64-linux-gnu Build type: native build Project name: sway Project version: 1.0 Sanity testing C compiler: cc Is cross compiler: False. Sanity check compiler command line: cc /home/wub/.local/src/sway/sway/obj-x86_64-linux-gnu/meson-private/sanitycheckc.c -o /home/wub/.local/src/sway/sway/obj-x86_64-linux-gnu/meson-private/sanitycheckc.exe Sanity check compile stdout: ----- Sanity check compile stderr: ----- Running test binary command: /home/wub/.local/src/sway/sway/obj-x86_64-linux-gnu/meson-private/sanitycheckc.exe Appending CFLAGS from environment: '-g -O2 -fdebug-prefix-map=/home/wub/.local/src/sway/sway=. -fstack-protector-strong -Wformat -Werror=format-security' Appending LDFLAGS from environment: '-Wl,-z,relro -Wl,-z,now' Appending CPPFLAGS from environment: '-Wdate-time -D_FORTIFY_SOURCE=2' Native C compiler: cc (gcc 8.3.0 "cc (Debian 8.3.0-6) 8.3.0") Build machine cpu family: x86_64 Build machine cpu: x86_64 Found pkg-config: /usr/bin/pkg-config (1.6.0) Determining dependency 'json-c' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion json-c` -> 0 0.13.1 Called `/usr/bin/pkg-config --cflags json-c` -> 0 -I/usr/include/json-c Called `/usr/bin/pkg-config json-c --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -ljson-c Called `/usr/bin/pkg-config json-c --libs` -> 0 -ljson-c Running compile: Working directory: /tmp/tmp7u9sl240 Command line: cc /tmp/tmp7u9sl240/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmp7u9sl240/output.exe -g -O2 -fdebug-prefix-map=/home/wub/.local/src/sway/sway=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -O0 Code: #include<stdio.h> int main(int argc, char **argv) { printf("%ld\n", (long)(sizeof(void *))); return 0; }; Compiler stdout: Compiler stderr: Program stdout: 8 Program stderr: Running compile: Working directory: /tmp/tmp0zuflusu Command line: cc /tmp/tmp0zuflusu/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmp0zuflusu/output.obj -g -O2 -fdebug-prefix-map=/home/wub/.local/src/sway/sway=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O0 --print-search-dirs Code: Compiler stdout: install: /usr/lib/gcc/x86_64-linux-gnu/8/ programs: =/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/ libraries: =/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../lib/:/lib/x86_64-linux-gnu/8/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/8/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/lib/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../:/lib/:/usr/lib/ Compiler stderr: Dependency json-c found: YES 0.13.1 Determining dependency 'libpcre' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion libpcre` -> 0 8.39 Called `/usr/bin/pkg-config --cflags libpcre` -> 0 Called `/usr/bin/pkg-config libpcre --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lpcre Called `/usr/bin/pkg-config libpcre --libs` -> 0 -lpcre Dependency libpcre found: YES 8.39 Determining dependency 'wayland-server' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion wayland-server` -> 0 1.16.0 Called `/usr/bin/pkg-config --cflags wayland-server` -> 0 Called `/usr/bin/pkg-config wayland-server --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lwayland-server Called `/usr/bin/pkg-config wayland-server --libs` -> 0 -lwayland-server Dependency wayland-server found: YES 1.16.0 Determining dependency 'wayland-client' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion wayland-client` -> 0 1.16.0 Called `/usr/bin/pkg-config --cflags wayland-client` -> 0 Called `/usr/bin/pkg-config wayland-client --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lwayland-client Called `/usr/bin/pkg-config wayland-client --libs` -> 0 -lwayland-client Dependency wayland-client found: YES 1.16.0 Determining dependency 'wayland-cursor' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion wayland-cursor` -> 0 1.16.0 Called `/usr/bin/pkg-config --cflags wayland-cursor` -> 0 Called `/usr/bin/pkg-config wayland-cursor --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lwayland-cursor Called `/usr/bin/pkg-config wayland-cursor --libs` -> 0 -lwayland-cursor Dependency wayland-cursor found: YES 1.16.0 Determining dependency 'wayland-egl' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion wayland-egl` -> 0 18.1.0 Called `/usr/bin/pkg-config --cflags wayland-egl` -> 0 Called `/usr/bin/pkg-config wayland-egl --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lwayland-egl -lwayland-client Called `/usr/bin/pkg-config wayland-egl --libs` -> 0 -lwayland-egl -lwayland-client Dependency wayland-egl found: YES 18.1.0 Determining dependency 'wayland-protocols' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion wayland-protocols` -> 0 1.17 Called `/usr/bin/pkg-config --cflags wayland-protocols` -> 0 Called `/usr/bin/pkg-config wayland-protocols --libs` -> 0 Called `/usr/bin/pkg-config wayland-protocols --libs` -> 0 Dependency wayland-protocols found: YES 1.17 Determining dependency 'xkbcommon' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion xkbcommon` -> 0 0.8.2 Called `/usr/bin/pkg-config --cflags xkbcommon` -> 0 Called `/usr/bin/pkg-config xkbcommon --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lxkbcommon Called `/usr/bin/pkg-config xkbcommon --libs` -> 0 -lxkbcommon Dependency xkbcommon found: YES 0.8.2 Determining dependency 'cairo' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion cairo` -> 0 1.16.0 Called `/usr/bin/pkg-config --cflags cairo` -> 0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid Called `/usr/bin/pkg-config cairo --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lcairo Called `/usr/bin/pkg-config cairo --libs` -> 0 -lcairo Dependency cairo found: YES 1.16.0 Determining dependency 'pango' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion pango` -> 0 1.42.3 Called `/usr/bin/pkg-config --cflags pango` -> 0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/fribidi Called `/usr/bin/pkg-config pango --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lpango-1.0 -lgobject-2.0 -lglib-2.0 Called `/usr/bin/pkg-config pango --libs` -> 0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 Dependency pango found: YES 1.42.3 Determining dependency 'pangocairo' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion pangocairo` -> 0 1.42.3 Called `/usr/bin/pkg-config --cflags pangocairo` -> 0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/harfbuzz Called `/usr/bin/pkg-config pangocairo --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo Called `/usr/bin/pkg-config pangocairo --libs` -> 0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo Dependency pangocairo found: YES 1.42.3 Determining dependency 'gdk-pixbuf-2.0' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion gdk-pixbuf-2.0` -> 0 2.38.1 Called `/usr/bin/pkg-config --cflags gdk-pixbuf-2.0` -> 0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid Called `/usr/bin/pkg-config gdk-pixbuf-2.0 --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 Called `/usr/bin/pkg-config gdk-pixbuf-2.0 --libs` -> 0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 Dependency gdk-pixbuf-2.0 found: YES 2.38.1 Determining dependency 'pixman-1' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion pixman-1` -> 0 0.36.0 Called `/usr/bin/pkg-config --cflags pixman-1` -> 0 -I/usr/include/pixman-1 Called `/usr/bin/pkg-config pixman-1 --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lpixman-1 Called `/usr/bin/pkg-config pixman-1 --libs` -> 0 -lpixman-1 Dependency pixman-1 found: YES 0.36.0 Determining dependency 'libevdev' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion libevdev` -> 0 1.6.0 Called `/usr/bin/pkg-config --cflags libevdev` -> 0 -I/usr/include/libevdev-1.0/ Called `/usr/bin/pkg-config libevdev --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -levdev Called `/usr/bin/pkg-config libevdev --libs` -> 0 -levdev Dependency libevdev found: YES 1.6.0 Determining dependency 'libinput' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion libinput` -> 0 1.12.6 Called `/usr/bin/pkg-config --cflags libinput` -> 0 Called `/usr/bin/pkg-config libinput --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -linput Called `/usr/bin/pkg-config libinput --libs` -> 0 -linput Dependency libinput found: YES 1.12.6 Determining dependency 'libsystemd' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion libsystemd` -> 0 241 Called `/usr/bin/pkg-config --cflags libsystemd` -> 0 Called `/usr/bin/pkg-config libsystemd --libs` -> 0 -L/lib/x86_64-linux-gnu -lsystemd Called `/usr/bin/pkg-config libsystemd --libs` -> 0 -lsystemd Dependency libsystemd found: YES 241 Determining dependency 'libelogind' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion libelogind` -> 1 Found CMake: NO Dependency libelogind found: NO (tried pkgconfig and cmake) Determining dependency 'xcb' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion xcb` -> 0 1.13.1 Called `/usr/bin/pkg-config --cflags xcb` -> 0 Called `/usr/bin/pkg-config xcb --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lxcb Called `/usr/bin/pkg-config xcb --libs` -> 0 -lxcb Dependency xcb found: YES 1.13.1 Running compile: Working directory: /tmp/tmpt_6lgtvy Command line: cc /tmp/tmpt_6lgtvy/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpt_6lgtvy/output.exe -g -O2 -fdebug-prefix-map=/home/wub/.local/src/sway/sway=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -O0 -Wl,--start-group -lm -Wl,--end-group -Wl,--allow-shlib-undefined Code: int main(int argc, char **argv) { return 0; } Compiler stdout: Compiler stderr: Library m found: YES Running compile: Working directory: /tmp/tmpo2_a_lt1 Command line: cc /tmp/tmpo2_a_lt1/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmpo2_a_lt1/output.exe -g -O2 -fdebug-prefix-map=/home/wub/.local/src/sway/sway=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -O0 -Wl,--start-group -lrt -Wl,--end-group -Wl,--allow-shlib-undefined Code: int main(int argc, char **argv) { return 0; } Compiler stdout: Compiler stderr: Library rt found: YES Program git found: YES (/usr/bin/git) Subproject subprojects/wlroots is buildable: NO (disabling) Determining dependency 'wlroots' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion wlroots` -> 0 0.5.0 Called `/usr/bin/pkg-config --cflags wlroots` -> 0 -I/usr/include/libdrm -I/usr/include/pixman-1 Called `/usr/bin/pkg-config wlroots --libs` -> 0 -L/usr/lib/x86_64-linux-gnu -lwlroots Called `/usr/bin/pkg-config wlroots --libs` -> 0 -lwlroots Dependency wlroots found: YES 0.5.0 Running compile: Working directory: /tmp/tmprs7g79_a Command line: cc -I/usr/include/libdrm -I/usr/include/pixman-1 /tmp/tmprs7g79_a/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -E -P -Wdate-time -D_FORTIFY_SOURCE=2 -O0 -std=c11 Code: #include <wlr/config.h> #ifndef WLR_HAS_XWAYLAND # define WLR_HAS_XWAYLAND #endif "MESON_GET_DEFINE_DELIMITER" WLR_HAS_XWAYLAND Compiler stdout: "MESON_GET_DEFINE_DELIMITER" 1 Compiler stderr: Fetching value of define "WLR_HAS_XWAYLAND" with dependency wlroots: 1 Determining dependency 'scdoc' with pkg-config executable '/usr/bin/pkg-config' Called `/usr/bin/pkg-config --modversion scdoc` -> 0 1.9.4 Called `/usr/bin/pkg-config --cflags scdoc` -> 0 Called `/usr/bin/pkg-config scdoc --libs` -> 0 Called `/usr/bin/pkg-config scdoc --libs` -> 0 Dependency scdoc found: YES 1.9.4 Called `/usr/bin/pkg-config --variable=scdoc scdoc` -> 0 /usr/local/bin/scdoc Got pkgconfig variable scdoc : /usr/local/bin/scdoc Program /usr/local/bin/scdoc found: NO meson.build:100:1: ERROR: Program(s) ['/usr/local/bin/scdoc'] not found or not executable