Git Product home page Git Product logo

Comments (6)

dg0yt avatar dg0yt commented on June 15, 2024 1

With vcpkg in /opt, you trigger a special CMake GNUInstallDirs behvavior of redirecting certain system prefixes.
https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html#special-cases
I suggest you choose a different dir for vcpgk.

from vcpkg.

Tengs-Fan avatar Tengs-Fan commented on June 15, 2024 1

I'm using Arch with yay, it's the default behaviour to install vcpkg in /opt. I configured it to /usr/local and the problem solved, will push this to yay

from vcpkg.

ZSWyummy avatar ZSWyummy commented on June 15, 2024

OK thank you for your suggestion

from vcpkg.

Tengs-Fan avatar Tengs-Fan commented on June 15, 2024

I met the same question, don't really understand why it's happening, is there any other way to solve this ? it's a common practice to put extra software under /opt .

from vcpkg.

dg0yt avatar dg0yt commented on June 15, 2024

It happens because CMake thinks that this is what you want when you build for installation to /opt.
You can use your own patched CMake.
You can open an issue at CMake.

IMO it is not good practice to develop in /opt. Note that vcpkg is not meant to be a generic package manager, but /opt is a location for all users of a system.

from vcpkg.

Tengs-Fan avatar Tengs-Fan commented on June 15, 2024

I sent this issue to the maintainer of vcpkg package of AUR, he suggests we set the installation path to /usr/lib, which is better

I've read the issue, and I agree with your proposal. However, I'm certain that /usr/lib/vcpkg would be a better installation directory. According to FHS, /usr/local should be used for software installed by the system administrator, not the package manager (more info here). At the same time, FHS allows putting applications in their subdirectory in /usr/lib, as mentioned here. Firefox is probably the best example.

I have tested dbus, it's working by default now

from vcpkg.

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.