]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Avoid double slashes in paths created by pkg-config
authorRalf Habacker <ralf.habacker@freenet.de>
Fri, 26 Oct 2018 13:12:29 +0000 (15:12 +0200)
committerSimon McVittie <smcv@collabora.com>
Thu, 15 Nov 2018 13:12:48 +0000 (13:12 +0000)
If in a .pc variable a path is created from another
variable, such as exec_prefix=${prefix}/lib, prefix
must not contain a trailing slash to avoid double
slashes in the generated path.

cmake/CMakeLists.txt
configure.ac

index d7b9c438c3580d16db2080ce884e91380917523c..53fa45611bff66dd34895ac157c1229c290be7a3 100644 (file)
@@ -671,7 +671,7 @@ if(UNIX)
         endforeach()
         set(original_prefix "${CMAKE_INSTALL_PREFIX}")
         if(DBUS_RELOCATABLE)
-            set(pkgconfig_prefix "\${pcfiledir}/../../")
+            set(pkgconfig_prefix "\${pcfiledir}/../..")
         else()
             set(pkgconfig_prefix "\${original_prefix}")
         endif()
index 51a016dc7c7f1b1a5d40ceb6b39294a6fa6c0e2a..916633d81226255fe8fe7c4e5895d0f5e0a05cb1 100644 (file)
@@ -1584,7 +1584,7 @@ AS_IF([test "x$enable_relocation" = xauto],
 
 
 AS_IF([test "x$enable_relocation" = xyes],
-  [AC_SUBST([pkgconfig_prefix], ['${pcfiledir}/../../'])],
+  [AC_SUBST([pkgconfig_prefix], ['${pcfiledir}/../..'])],
   [AC_SUBST([pkgconfig_prefix], ['${original_prefix}'])])
 
 #### Directory to source sysconfdir configuration from