Git Product home page Git Product logo

Comments (7)

kupsch avatar kupsch commented on July 18, 2024 1

@hainest, what do you think about include(GNUInstallDirs) and then use the variables: CMAKE_INSTALL_BINDIR, CMAKE_INSTALL_INCLUDEDIR and CMAKE_INSTALL_LIBDIR as defaults for the dyninst variables. These are advanced cached options and are supposed use pick lib or lib64 depending on the platform and would allow user definitions.

from dyninst.

hainest avatar hainest commented on July 18, 2024

Looking at the old code, it's not clear to me that DYNINST_INSTALL_LIBDIR would have had any influence on the install paths. Previously, they were hard-coded in INSTALL_{LIB,INCLUDE}_DIR and then extended to be absolute paths relative to CMAKE_INSTALL_PREFIX. This has never been the correct method of setting installation paths in CMake, so it was removed.

The current DYNINST_INSTALL_{LIB,BIN,INCLUDE,CMAKE}DIR are internal variables that cannot be set by users. At one point, I had thought it might be useful to let users set the installation structure, but ultimately decided against it as it would make the resulting CMake package non-portable. The downside is that all libraries are installed in 'lib' and not 'lib64', but both are generally in linker/loader default search paths. We've been testing on Fedora 37-39 with both the default /usr/lib and a custom CMAKE_INSTALL_PREFIX/lib without any trouble.

If there is a need to have them in */lib64, I could add a config variable for that.

from dyninst.

fche avatar fche commented on July 18, 2024

Hi, Tim, thanks for the response. Yeah I don't doubt that what you have there works (installing 64-bit binaries into /usr/lib). The problem is that as a distro packager, that's outside the guidelines used for cohesion of the whole system. I suppose the packaging scripts could move these files into /usr/lib64 after all your cmake stuff is finished. But it would be better if the package could be made to fit directly into distro filesystem standards.

from dyninst.

fche avatar fche commented on July 18, 2024

Similarly, installing dyninst headers right under /usr/include kinda works, but /usr/include/dyninst would let it cohabit with the many other system libraries better.

from dyninst.

hainest avatar hainest commented on July 18, 2024

@kupsch That works for me. Did you want to take this one?

from dyninst.

kupsch avatar kupsch commented on July 18, 2024

I'll take care of it.

Thanks.

from dyninst.

kupsch avatar kupsch commented on July 18, 2024

@fche let us know if the fix for this works for your use case.

from dyninst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.