Source: dmrconfig Version: 1.1+git20190919.e47491e-1 Tags: patch upstream User: debian-cr...@lists.debian.org Usertags: ftcbfs
dmrconfig fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. Please consider applying the attached patch to fix that. Helmut
--- dmrconfig-1.1+git20190919.e47491e.orig/Makefile +++ dmrconfig-1.1+git20190919.e47491e/Makefile @@ -1,4 +1,5 @@ CC ?= gcc +PKG_CONFIG ?= pkg-config VERSION = $(shell git describe --tags --abbrev=0) GITCOUNT = $(shell git rev-list HEAD --count) @@ -8,14 +9,14 @@ gd77.o hid.o serial.o d868uv.o dm1801.o CFLAGS ?= -g -O -Wall -Werror CFLAGS += -DVERSION='"$(VERSION).$(GITCOUNT)"' \ - $(shell pkg-config --cflags libusb-1.0) + $(shell $(PKG_CONFIG) --cflags libusb-1.0) LDFLAGS ?= -g -LIBS = $(shell pkg-config --libs --static libusb-1.0) +LIBS = $(shell $(PKG_CONFIG) --libs --static libusb-1.0) # # Make sure pkg-config is installed. # -ifeq ($(shell pkg-config --version),) +ifeq ($(shell $(PKG_CONFIG) --version),) $(error Fatal error: pkg-config is not installed) endif