diff mbox series

[iproute2] Makefile: ensure CONF_USR_DIR honours the libdir config

Message ID 156bb2949a091c8daa1ce1f4a8c6d7125eaad7f3.1694807902.git.aclaudi@redhat.com (mailing list archive)
State Accepted
Commit 946753a4459bd035132a27bb2eb87529c1979b90
Delegated to: Stephen Hemminger
Headers show
Series [iproute2] Makefile: ensure CONF_USR_DIR honours the libdir config | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Andrea Claudi Sept. 15, 2023, 7:59 p.m. UTC
Following commit cee0cf84bd32 ("configure: add the --libdir option"),
iproute2 lib directory is configurable using the --libdir option on the
configure script. However, CONF_USR_DIR does not honour the configured
lib path in its default value.

This fixes the issue simply using $(LIBDIR) instead of $(PREFIX)/lib.
Please note that the default value for $(LIBDIR) is exactly
$(PREFIX)/lib, so this does not change the default value for
CONF_USR_DIR.

Fixes: 0a0a8f12fa1b ("Read configuration files from /etc and /usr")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Petr Machata Sept. 18, 2023, 4:36 p.m. UTC | #1
Andrea Claudi <aclaudi@redhat.com> writes:

> Following commit cee0cf84bd32 ("configure: add the --libdir option"),
> iproute2 lib directory is configurable using the --libdir option on the
> configure script. However, CONF_USR_DIR does not honour the configured
> lib path in its default value.
>
> This fixes the issue simply using $(LIBDIR) instead of $(PREFIX)/lib.
> Please note that the default value for $(LIBDIR) is exactly
> $(PREFIX)/lib, so this does not change the default value for
> CONF_USR_DIR.
>
> Fixes: 0a0a8f12fa1b ("Read configuration files from /etc and /usr")
> Signed-off-by: Andrea Claudi <aclaudi@redhat.com>

Reviewed-by: Petr Machata <petrm@nvidia.com>
patchwork-bot+netdevbpf@kernel.org Sept. 18, 2023, 4:53 p.m. UTC | #2
Hello:

This patch was applied to iproute2/iproute2.git (main)
by Stephen Hemminger <stephen@networkplumber.org>:

On Fri, 15 Sep 2023 21:59:06 +0200 you wrote:
> Following commit cee0cf84bd32 ("configure: add the --libdir option"),
> iproute2 lib directory is configurable using the --libdir option on the
> configure script. However, CONF_USR_DIR does not honour the configured
> lib path in its default value.
> 
> This fixes the issue simply using $(LIBDIR) instead of $(PREFIX)/lib.
> Please note that the default value for $(LIBDIR) is exactly
> $(PREFIX)/lib, so this does not change the default value for
> CONF_USR_DIR.
> 
> [...]

Here is the summary with links:
  - [iproute2] Makefile: ensure CONF_USR_DIR honours the libdir config
    https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=946753a4459b

You are awesome, thank you!
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 7d1819ce..54539ce4 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@  endif
 PREFIX?=/usr
 SBINDIR?=/sbin
 CONF_ETC_DIR?=/etc/iproute2
-CONF_USR_DIR?=$(PREFIX)/lib/iproute2
+CONF_USR_DIR?=$(LIBDIR)/iproute2
 NETNS_RUN_DIR?=/var/run/netns
 NETNS_ETC_DIR?=/etc/netns
 DATADIR?=$(PREFIX)/share