File: fix_ftcbfs.patch

package info (click to toggle)
ploop 1.15-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,372 kB
  • sloc: ansic: 16,133; sh: 413; makefile: 222; python: 144
file content (31 lines) | stat: -rw-r--r-- 841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Fix FTCBFS

Author: Helmut Grohne <helmut@subdivi.de>
Bug-Debian: https://bugs.debian.org/905741

---

--- ploop-1.15.orig/Makefile.inc
+++ ploop-1.15/Makefile.inc
@@ -3,6 +3,7 @@ VERSION=1.15
 RELEASE=
 
 CC=gcc
+PKG_CONFIG ?= pkg-config
 INSTALL=install
 SBINDIR=/sbin
 USRSBINDIR=/usr/sbin
--- ploop-1.15.orig/lib/Makefile
+++ ploop-1.15/lib/Makefile
@@ -37,9 +37,9 @@ LIBOBJS=uuid.o \
 SOURCES=$(LIBOBJS:.o=.c)
 GENERATED=symbols.c
 
-CFLAGS += $(shell pkg-config libxml-2.0 --cflags) -fPIC -fvisibility=hidden
+CFLAGS += $(shell $(PKG_CONFIG) libxml-2.0 --cflags) -fPIC -fvisibility=hidden
 LDFLAGS+= -shared -Wl,-soname,$(LIBPLOOP_SO_X)
-LDLIBS += $(shell pkg-config libxml-2.0 --libs) -lpthread -lrt
+LDLIBS += $(shell $(PKG_CONFIG) libxml-2.0 --libs) -lpthread -lrt
 
 all: $(LIBPLOOP) $(LIBPLOOP_SO) $(PC)
 .PHONY: all