Don't install 'LICENSE' or 'README.md' directly to the installation directory.#51
Don't install 'LICENSE' or 'README.md' directly to the installation directory.#51adishavit merged 1 commit intoadishavit:masterfrom BillyONeal:no-install-readme
Conversation
…irectory. This change unconditionally uses GNUInstallDirs which will correctly 'namespace' these files with the 'argh' project name. ========= The names 'LICENSE' and 'README.md' are extremely common and likely to be taken by other ports. This happened in a recent full vcpkg catalog rebuild: Starting package 757/1254: qt-advanced-docking-system:x86-windows Building package qt-advanced-docking-system[core]:x86-windows... Could not locate cached archive: C:\agent\_work\1\s\archives\a1\a1507296ead5788137561997571557204aaac78f.zip -- Downloading https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/archive/661d0c4356ab61d155b53718aa1bf6bab86dad13.tar.gz... -- Extracting source C:/agent/_work/1/s/downloads/githubuser0xFFFF-Qt-Advanced-Docking-System-661d0c4356ab61d155b53718aa1bf6bab86dad13.tar.gz -- Applying patch config_changes.patch -- Using source at C:/agent/_work/1/s/buildtrees/qt-advanced-docking-system/src/bab86dad13-3088149a9b -- Configuring x86-windows -- Building x86-windows-dbg -- Building x86-windows-rel -- Installing: C:/agent/_work/1/s/packages/qt-advanced-docking-system_x86-windows/share/qt-advanced-docking-system/copyright -- Performing post-build validation -- Performing post-build validation done Stored binary cache: C:\agent\_work\1\s\archives\a1\a1507296ead5788137561997571557204aaac78f.zip Building package qt-advanced-docking-system[core]:x86-windows... done Installing package qt-advanced-docking-system[core]:x86-windows... The following files are already installed in C:/agent/_work/1/s/installed/x86-windows and are in conflict with qt-advanced-docking-system:x86-windows Installed by argh:x86-windows license/LICENSE Elapsed time for package qt-advanced-docking-system:x86-windows: 11.09 s
|
Thanks Billy. I accepted the PR regardless 🙂. |
|
The fix changes the license file to be installed into something like |
|
Thanks for the explanation 👍 |
|
This wasn't caused by a dependency. This was two completely unrelated package trying to stomp on the same file name. I know there's some kind of 'cone of destruction' analysis to rebuild everyone who depends on you when you push a change to a vcpkg port but I don't know if there's an easy way to just dump that. |
|
Some package must have requested/pulled argh. |
|
Right now no other library in vcpkg requires argh as a dependency. There was a change that required us to rebuild all packages in vcpkg and so argh got built. |
|
This PR added argh microsoft/vcpkg#5266. So maybe @myd7349 is using it/was using it for something. |
This change unconditionally uses GNUInstallDirs which will correctly 'namespace' these files with the 'argh' project name.
=========
The names 'LICENSE' and 'README.md' are extremely common and likely to be taken by other ports. This happened in a recent full vcpkg catalog rebuild:
Starting package 757/1254: qt-advanced-docking-system:x86-windows
Building package qt-advanced-docking-system[core]:x86-windows...
Could not locate cached archive: C:\agent_work\1\s\archives\a1\a1507296ead5788137561997571557204aaac78f.zip
-- Downloading https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/archive/661d0c4356ab61d155b53718aa1bf6bab86dad13.tar.gz...
-- Extracting source C:/agent/_work/1/s/downloads/githubuser0xFFFF-Qt-Advanced-Docking-System-661d0c4356ab61d155b53718aa1bf6bab86dad13.tar.gz
-- Applying patch config_changes.patch
-- Using source at C:/agent/_work/1/s/buildtrees/qt-advanced-docking-system/src/bab86dad13-3088149a9b
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Installing: C:/agent/_work/1/s/packages/qt-advanced-docking-system_x86-windows/share/qt-advanced-docking-system/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: C:\agent_work\1\s\archives\a1\a1507296ead5788137561997571557204aaac78f.zip
Building package qt-advanced-docking-system[core]:x86-windows... done
Installing package qt-advanced-docking-system[core]:x86-windows...
The following files are already installed in C:/agent/_work/1/s/installed/x86-windows and are in conflict with qt-advanced-docking-system:x86-windows
Installed by argh:x86-windows
license/LICENSE
Elapsed time for package qt-advanced-docking-system:x86-windows: 11.09 s