]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build: remove --with-rootlibdir toggle
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Aug 2024 16:04:20 +0000 (17:04 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 23 Aug 2024 18:11:16 +0000 (13:11 -0500)
At a glance this option was introduced with distributions migrating from
/lib to /usr/lib.

Checking with Debian, Arch, Alpine, Fedora and Gentoo - only Debian and
Alpine set it. In the former - it's explicitly set to the default
(libdir), while the latter uses /lib and /usr/lib respectively.

Looking at the implementation itself, we don't adjust the libkmod.pc
which lists libdir, while libkmod.so is installed in rootlibdir.

Considering the negligible user base and somewhat broken state, drop the
option.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/86
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Makefile.am
autogen.sh
configure.ac

index be8d8fbd160f53cb42cccc4cf9a368396188fa4f..c76b90d67cb7a6fa9a92953e51d0b7bfa081fa66 100644 (file)
@@ -117,13 +117,6 @@ dist_bashcompletion_DATA = \
        shell-completion/bash/kmod
 
 install-exec-hook:
-       if test "$(libdir)" != "$(rootlibdir)"; then \
-               $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
-               so_img_name=$$(readlink $(DESTDIR)$(libdir)/libkmod.so) && \
-               so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
-               ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libkmod.so && \
-               mv $(DESTDIR)$(libdir)/libkmod.so.* $(DESTDIR)$(rootlibdir); \
-       fi
 if BUILD_TOOLS
        for tool in insmod lsmod rmmod depmod modprobe modinfo; do \
                $(LN_S) -f kmod $(DESTDIR)$(bindir)/$$tool; \
@@ -131,7 +124,6 @@ if BUILD_TOOLS
 endif
 
 uninstall-hook:
-       rm -f $(DESTDIR)$(rootlibdir)/libkmod.so*
 if BUILD_TOOLS
        for tool in insmod lsmod rmmod depmod modprobe modinfo; do \
                rm -f $(DESTDIR)$(bindir)/$$tool; \
index a7a6022d250c38a2b8f9fee95813ca884e6107c9..95c6544753f7d60616c31f03197575f3c6e44e47 100755 (executable)
@@ -23,12 +23,6 @@ if [ -f "$topdir/.config.args" ]; then
     args="$args $(cat $topdir/.config.args)"
 fi
 
-if [ ! -L /bin ]; then
-    args="$args \
-        --with-rootlibdir=$(libdir /lib) \
-        "
-fi
-
 cd $oldpwd
 
 hackargs="\
index 2f1c52521e745172849b9f31d229c65f63c29027..ec99cf4f7878eea4be1b7ea2370b6f67d05990dc 100644 (file)
@@ -86,11 +86,6 @@ AC_ARG_WITH([distconfdir], AS_HELP_STRING([--with-distconfdir=DIR], [directory t
         [], [with_distconfdir='${prefix}/lib'])
 AC_SUBST([distconfdir], [$with_distconfdir])
 
-AC_ARG_WITH([rootlibdir],
-        AS_HELP_STRING([--with-rootlibdir=DIR], [rootfs directory to install shared libraries]),
-        [], [with_rootlibdir=$libdir])
-AC_SUBST([rootlibdir], [$with_rootlibdir])
-
 # Ideally this would be $prefix/lib/modules but default to /lib/modules for compatibility with earlier versions
 AC_ARG_WITH([module_directory],
         AS_HELP_STRING([--with-module-directory=DIR], [directory in which to look for kernel modules @<:@default=/lib/modules@:>@]),
@@ -98,7 +93,7 @@ AC_ARG_WITH([module_directory],
 AC_SUBST([module_directory], [$with_module_directory])
 
 # Check all directory arguments for consistency.
-for ac_var in  distconfdir rootlibdir module_directory
+for ac_var in  distconfdir module_directory
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -330,7 +325,6 @@ AC_MSG_RESULT([
        sysconfdir:             ${sysconfdir}
        distconfdir:            ${distconfdir}
        libdir:                 ${libdir}
-       rootlibdir:             ${rootlibdir}
        includedir:             ${includedir}
        bindir:                 ${bindir}
        Bash completions dir:   ${with_bashcompletiondir}