Skip to contentSkip to conversation

build: Fix double-prefix w/ pkgconfig

PATCH In review Sam James 2 participants 2 messages Sep 20, 2023

Subsystems (2)
lore
Share & tools
lore

Sam James

author
#0 lore raw

PATCH 1/1 build: Fix double-prefix w/ pkgconfig

First, apologies - 326932be0c4f47756f9809cad5a103ac310f700d clearly introduced a double prefix and I can't tell you what my thought process was 9 months ago but it was obviously wrong (my guess is I rebased some old patch and didn't think properly, no idea).

Anyway, let's just drop the extraneous pkgconfigdir definition and use the proper one from pkg.m4 via PKG_INSTALLDIR.

Fixes 326932be0c4f47756f9809cad5a103ac310f700d
---
 configure.ac    | 1 +
 lib/Makefile.am | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -0
index cad93af..6c26645 100644
@@ -14,6 +14,7 @@ LT_CONFIG_LTDL_DIR([libltdl])
 LTDL_INIT([nonrecursive])
 
 PKG_PROG_PKG_CONFIG
+PKG_INSTALLDIR
 
 dnl Shortcut: Linux supported alone
 case "$host" in
lib/Makefile.am +0 -1
index 50d937d..a9edf95 100644
@@ -46,7 +46,6 @@ EXTRA_libipset_la_SOURCES = \
 
 EXTRA_DIST = $(IPSET_SETTYPE_LIST) libipset.map
 
-pkgconfigdir = $(prefix)/$(libdir)/pkgconfig
 pkgconfig_DATA = libipset.pc
 
 dist_man_MANS = libipset.3
Signature · 1 line
2.42.0
reviewer
#1 lore raw
Quoted 4 lines · Sam James

First, apologies - 326932be0c4f47756f9809cad5a103ac310f700d clearly introduced a double prefix and I can't tell you what my thought process was 9 months ago but it was obviously wrong (my guess is I rebased some old patch and didn't think properly, no idea).

Not much use having this in the commit message. Maybe state the actual problem you're trying to solve instead?

Quoted 38 lines

Anyway, let's just drop the extraneous pkgconfigdir definition and use the proper one from pkg.m4 via PKG_INSTALLDIR.

Fixes 326932be0c4f47756f9809cad5a103ac310f700d
---
 configure.ac    | 1 +
 lib/Makefile.am | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -0
index cad93af..6c26645 100644
@@ -14,6 +14,7 @@ LT_CONFIG_LTDL_DIR([libltdl])
 LTDL_INIT([nonrecursive])
 
 PKG_PROG_PKG_CONFIG
+PKG_INSTALLDIR
 
 dnl Shortcut: Linux supported alone
 case "$host" in
lib/Makefile.am +0 -1
index 50d937d..a9edf95 100644
@@ -46,7 +46,6 @@ EXTRA_libipset_la_SOURCES = \
 
 EXTRA_DIST = $(IPSET_SETTYPE_LIST) libipset.map
 
-pkgconfigdir = $(prefix)/$(libdir)/pkgconfig
 pkgconfig_DATA = libipset.pc
 
 dist_man_MANS = libipset.3
Signature · 1 line
2.42.0