Skip to content

Set CMAKE_INSTALL_LIBDIR in CMake build type #29

Merged
merged 1 commit into from Feb 13, 2019

Commits on Feb 11, 2019

  1. buildtypes/cmake: Set CMAKE_INSTALL_LIBDIR to configured LIBDIR

    It’s `lib64` by default [1].
    
    > object code libraries (lib or lib64 or lib/<multiarch-tuple> on Debian)
    
    This conflicts with the symbolic link in MarIuX.
    
        $ ls -ld /usr/lib*
        drwxr-xr-x 240 root root 143360 Feb 11 18:44 /usr/lib
        lrwxrwxrwx   1 root root      3 Mar  7  2011 /usr/lib64 -> lib
        drwxr-xr-x  21 root root   4096 Feb  5 16:45 /usr/libexec
    
    Consider the current package has `/usr/lib/pkgconfig/libzip.pc`
    installed, and the newer version installs the same file into
    `/usr/lib64/pkgconfig/libzip.pc`. On upgrade, when removing the file
    from the old package, bee will remove `/usr/lib64/pkgconfig/libzip.pc`
    because of the symbolic link, which is unwanted.
    
    So set it to `LIBDIR`, so that the system configuration is applied.
    
    [1]: https://cmake.org/cmake/help/v3.8/module/GNUInstallDirs.html
    pmenzel committed Feb 11, 2019
    Copy the full SHA
    13daff2 View commit details
    Browse the repository at this point in the history