Menu

#5 Lack of Flexibility in Installation Directories

wont-fix
nobody
None
2015-06-09
2015-06-07
Zachary L
No

This bug is an easy one. Some distributions are quite unclear on what the correct library directory is for 32 or 64 bit counterparts. In the case of Arch Linux, /usr/lib is the correct 64-bit library directory and /usr/lib64 is a symlink to /usr/lib.

However, pacman, Arch Linux's package manager, no longer allows to install into symlink directories due to complications in file conflicts. So, each package needs to be adjusted slightly to install into the correct folder.

I'm not too familiar with cmake and I'm not really that fond of it. From the looks of it though, you can include the GNUInstallDirs module which would allow package maintainers to specify where everything ends up during installation.

Discussion

  • Stefan Achatz

    Stefan Achatz - 2015-06-07

    The following is an excerpt from libgaminggears install instructions:

      * optional cmake entries you can set with -D:
    
    
        * INSTALL_CMAKE_MODULESDIR If cmake doesn't find the right install directory
          for cmake modules, you can set it manually. Normally it's /usr/share/cmake/Modules.
    
    
        * INSTALL_LIBDIR           If cmake doesn't find the right install directory
          for libraries, you can set it manually. For 64bit systems that's normally
          $PREFIX/lib64 but Ubuntu uses $PREFIX/lib/x86_64-linux-gnu/.
    
    
        * INSTALL_PKGCONFIGDIR     If cmake doesn't find the right install directory
          for pkg-config, you can set it manually. Normally it's /usr/share/pkgconfig
          or /usr/lib*/pkgconfig.
    
    
        * UINPUTDIR                If cmake doesn't find the right location of the
          uinput device, you can set it manually. Autodetection needs module uinput
          loaded. Normally it's in /dev or /dev/input.
    

    This and CMAKE_INSTALL_PREFIX should allow you to specify everything you need to get your files in the right directory.
    Anything else?

     
  • Zachary L

    Zachary L - 2015-06-07

    Nope. Works perfectly. Will make sure this applies to roccat packages for Arch Linux as well... sorry for the pointless bug.

     
  • Stefan Achatz

    Stefan Achatz - 2015-06-09
    • status: open --> wont-fix
     

Log in to post a comment.