-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bitcoin/bitcoin#31042: build: Rename
PACKAGE_*
variables to `…
…CLIENT_*` 7071330 scripted-diff: Rename `PACKAGE_*` variables to `CLIENT_*` (Hennadii Stepanov) 332655c build: Rename `PACKAGE_*` variables to `CLIENT_*` (Hennadii Stepanov) e6e29e3 scripted-diff: Clarify "user agent" variable name (Hennadii Stepanov) Pull request description: The use of `PACKAGE_NAME` for the project's variable name is problematic, as this name is commonly used in CMake's [interface variables](https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-version-selection). If third-party CMake code handles with scopes improperly, our `PACKAGE_NAME` variable could end up with an unexpected value. This PR avoids such conflicts by renaming all `PACKAGE_*` variables to `CLIENT_*`. The code in the master branch works correctly only incidentally. It is definitely broken in bitcoin/bitcoin#30997. ACKs for top commit: TheCharlatan: Re-ACK 7071330 Tree-SHA512: f0992fb9a1ac4a41125b223f97bcaae50f521c813f334e606693dd0113a4732f12451bbcfb158df8bed44f34b37dadac478b2f5661e8b2588b401f43ae4bc1a4
- Loading branch information
Showing
55 changed files
with
151 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Name "@PACKAGE_NAME@ (64-bit)" | ||
Name "@CLIENT_NAME@ (64-bit)" | ||
|
||
RequestExecutionLevel highest | ||
SetCompressor /SOLID lzma | ||
|
@@ -11,8 +11,8 @@ Unicode true | |
|
||
# General Symbol Definitions | ||
!define REGKEY "SOFTWARE\$(^Name)" | ||
!define COMPANY "@PACKAGE_NAME@ project" | ||
!define URL @PACKAGE_URL@ | ||
!define COMPANY "@CLIENT_NAME@ project" | ||
!define URL @CLIENT_URL@ | ||
|
||
# MUI Symbol Definitions | ||
!define MUI_ICON "@abs_top_srcdir@/share/pixmaps/bitcoin.ico" | ||
|
@@ -24,7 +24,7 @@ Unicode true | |
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM | ||
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY} | ||
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup | ||
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "@PACKAGE_NAME@" | ||
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "@CLIENT_NAME@" | ||
!define MUI_FINISHPAGE_RUN "$WINDIR\explorer.exe" | ||
!define MUI_FINISHPAGE_RUN_PARAMETERS $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@ | ||
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" | ||
|
@@ -58,12 +58,12 @@ XPStyle on | |
BrandingText " " | ||
ShowInstDetails show | ||
VIProductVersion @CLIENT_VERSION_MAJOR@.@CLIENT_VERSION_MINOR@.@[email protected] | ||
VIAddVersionKey ProductName "@PACKAGE_NAME@" | ||
VIAddVersionKey ProductVersion "@PACKAGE_VERSION@" | ||
VIAddVersionKey ProductName "@CLIENT_NAME@" | ||
VIAddVersionKey ProductVersion "@CLIENT_VERSION_STRING@" | ||
VIAddVersionKey CompanyName "${COMPANY}" | ||
VIAddVersionKey CompanyWebsite "${URL}" | ||
VIAddVersionKey FileVersion "@PACKAGE_VERSION@" | ||
VIAddVersionKey FileDescription "Installer for @PACKAGE_NAME@" | ||
VIAddVersionKey FileVersion "@CLIENT_VERSION_STRING@" | ||
VIAddVersionKey FileDescription "Installer for @CLIENT_NAME@" | ||
VIAddVersionKey LegalCopyright "Copyright (C) 2009-@COPYRIGHT_YEAR@ @COPYRIGHT_HOLDERS_FINAL@" | ||
InstallDirRegKey HKCU "${REGKEY}" Path | ||
ShowUninstDetails show | ||
|
@@ -95,23 +95,23 @@ Section -post SEC0001 | |
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application | ||
CreateDirectory $SMPROGRAMS\$StartMenuGroup | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@ | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 1 | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (test signet).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-signet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 2 | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet4).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet4" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 3 | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@CLIENT_NAME@ (testnet).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 1 | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@CLIENT_NAME@ (test signet).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-signet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 2 | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@CLIENT_NAME@ (testnet4).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet4" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 3 | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" $INSTDIR\uninstall.exe | ||
!insertmacro MUI_STARTMENU_WRITE_END | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "@PACKAGE_VERSION@" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "@CLIENT_VERSION_STRING@" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" Publisher "${COMPANY}" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" URLInfoAbout "${URL}" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayIcon $INSTDIR\bitcoin-qt.exe | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe | ||
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1 | ||
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1 | ||
WriteRegStr HKCR "@PACKAGE_TARNAME@" "URL Protocol" "" | ||
WriteRegStr HKCR "@PACKAGE_TARNAME@" "" "URL:Bitcoin" | ||
WriteRegStr HKCR "@PACKAGE_TARNAME@\DefaultIcon" "" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@ | ||
WriteRegStr HKCR "@PACKAGE_TARNAME@\shell\open\command" "" '"$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "%1"' | ||
WriteRegStr HKCR "@CLIENT_TARNAME@" "URL Protocol" "" | ||
WriteRegStr HKCR "@CLIENT_TARNAME@" "" "URL:Bitcoin" | ||
WriteRegStr HKCR "@CLIENT_TARNAME@\DefaultIcon" "" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@ | ||
WriteRegStr HKCR "@CLIENT_TARNAME@\shell\open\command" "" '"$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "%1"' | ||
SectionEnd | ||
|
||
# Macro for selecting uninstaller sections | ||
|
@@ -142,9 +142,9 @@ Section -un.post UNSEC0001 | |
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet).lnk" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet4).lnk" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (test signet).lnk" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@CLIENT_NAME@ (testnet).lnk" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@CLIENT_NAME@ (testnet4).lnk" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@CLIENT_NAME@ (test signet).lnk" | ||
Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk" | ||
Delete /REBOOTOK $INSTDIR\uninstall.exe | ||
Delete /REBOOTOK $INSTDIR\debug.log | ||
|
@@ -153,7 +153,7 @@ Section -un.post UNSEC0001 | |
DeleteRegValue HKCU "${REGKEY}" Path | ||
DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components" | ||
DeleteRegKey /IfEmpty HKCU "${REGKEY}" | ||
DeleteRegKey HKCR "@PACKAGE_TARNAME@" | ||
DeleteRegKey HKCR "@CLIENT_TARNAME@" | ||
RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup | ||
RmDir /REBOOTOK $INSTDIR | ||
Push $R0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.