Source: yabar Version: 0.4.0-1 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
yabar fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. Making it substitutable is sufficient to fix this, but the cross build fails due to #853713 then. Please consider applying the attached patch. Helmut
--- yabar-0.4.0.orig/Makefile +++ yabar-0.4.0/Makefile @@ -1,8 +1,9 @@ VERSION ?= $(shell git describe) CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_POSIX_C_SOURCE=199309L -DYA_INTERNAL -DYA_DYN_COL \ -DYA_ENV_VARS -DYA_INTERNAL_EWMH -CFLAGS += -std=c99 -Iinclude -pedantic -Wall -Os `pkg-config --cflags pango pangocairo libconfig` -LDLIBS += -lxcb -lpthread -lxcb-randr -lxcb-ewmh `pkg-config --libs pango pangocairo libconfig` +PKG_CONFIG ?= pkg-config +CFLAGS += -std=c99 -Iinclude -pedantic -Wall -Os `$(PKG_CONFIG) --cflags pango pangocairo libconfig` +LDLIBS += -lxcb -lpthread -lxcb-randr -lxcb-ewmh `$(PKG_CONFIG) --libs pango pangocairo libconfig` PROGRAM := yabar PREFIX ?= /usr BINPREFIX ?= $(PREFIX)/bin