Skip to content

Commit

Permalink
coin: Unset DESTDIR after installation
Browse files Browse the repository at this point in the history
Keeping DESTDIR set to "{{.InstallRoot}}" after installation has
potential to break other unintended CMake file(INSTALL) calls that
take DESTDIR into account.

This already happened for the CMake macOS POST_BUILD deployment API,
which accidentally installed into the install root, when it shouldn't
have.

Unset the DESTDIR env var after we install Qt.

We already do that in the cross-compiling Coin instructions, so this
brings uniformity to the host builds as well.

Pick-to: 6.8
Task-number: QTBUG-90820
Task-number: QTBUG-96232
Change-Id: I6aca31e36c67c8d4b293efd746c37a42ea9ca834
Reviewed-by:  Alexey Edelev <[email protected]>
  • Loading branch information
alcroito committed Jul 24, 2024
1 parent 59645a4 commit 02cb165
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coin/instructions/cmake_module_build_instructions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ instructions:
variableName: DESTDIR
variableValue: "{{.InstallRoot}}"
- !include "{{qt/qtbase}}/call_host_install.yaml"
- type: EnvironmentVariable
variableName: DESTDIR
variableValue: ""
- type: SignPackage
enable_if:
condition: and
Expand Down
3 changes: 3 additions & 0 deletions coin/instructions/cmake_qtbase_build_instructions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ instructions:
variableName: DESTDIR
variableValue: "{{.InstallRoot}}"
- !include "{{qt/qtbase}}/call_host_install.yaml"
- type: EnvironmentVariable
variableName: DESTDIR
variableValue: ""
- type: SignPackage
enable_if:
condition: and
Expand Down

0 comments on commit 02cb165

Please sign in to comment.