Skip to content

build: enforce minimum required Windows version (7) - #18956

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
fanquake:window_enforce_runtime_version
May 20, 2020
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
fanquake:window_enforce_runtime_version

Conversation

@fanquake

Copy link
Copy Markdown
Member

Instruct the linker to set the major & minor subsystem versions in the PE
header to 6 & 1 (NT 6.1 which corresponds to Windows 7). Similar to
the behaviour on macOS, the binary will now refuse to run on
unsupported versions of Windows, which, for us, is XP & Vista.

windows_no_run

Comment thread configure.ac Resolved
@fanquake fanquake changed the title build: enforce minumim required Windows version (7) build: enforce minimum required Windows version (7) May 12, 2020
Instruct the linker to set the major & minor subsystem versions in the PE
header to 6 & 1 (NT 6.1 which corresponds to Windows 7). Similar to
macOS, the binary will now refuse to run on unsupported versions of
Windows.
@laanwj

laanwj commented May 14, 2020

Copy link
Copy Markdown
Member

ACK e8a8cff

@DrahtBot

Copy link
Copy Markdown
Contributor

Gitian builds

File commit b9c504c
(master)
commit 2ed12495b8b31fe388643d7ad91eb9b78b7cf7d1
(master and this pull)
*-aarch64-linux-gnu-debug.tar.gz 94a88c135b4bd4ef... 406a49f874bbd105...
*-aarch64-linux-gnu.tar.gz 6ff297c01ad4551d... fde69638b82adbdd...
*-arm-linux-gnueabihf-debug.tar.gz 7595450dd52c4273... 9d0f84beeb23cc15...
*-arm-linux-gnueabihf.tar.gz 3295a8b448e9cfd4... 9c1bcf778eb04f63...
*-osx-unsigned.dmg 0db6d42a3d8c7335... d686cecdbb3e604c...
*-osx64.tar.gz bf5affe81dc66460... 9b95dcdb7fa35c68...
*-riscv64-linux-gnu-debug.tar.gz 61a05c7ce736db37... 35d727e512f650dd...
*-riscv64-linux-gnu.tar.gz 0051c9de20b0bef8... 9f6871812f1f0fd6...
*-win64-debug.zip 386057acc27b1ccc... fe5a00db78150294...
*-win64-setup-unsigned.exe ac21e749be4cafa3... 041b63d5f8396ece...
*-win64.zip 0c2ac25f6a355524... 309449e0eec55636...
*-x86_64-linux-gnu-debug.tar.gz fb29924a032ac246... ffcdece57520c455...
*-x86_64-linux-gnu.tar.gz 4b466bd543d9c428... d5ec65a0bd8f8864...
*.tar.gz 18453ab9a66f97f6... 0c2c024f5b5370f0...
bitcoin-core-linux-0.21-res.yml f6aed4fa441f9f2d... 0a4cd0628ab919ae...
bitcoin-core-osx-0.21-res.yml a89514ea39e52dad... ef95feea477d162d...
bitcoin-core-win-0.21-res.yml fe744fb4bf08796a... 60fe9fb7ce0b865d...
linux-build.log 05ac055606fc8683... 9f2d6fd520e218cf...
osx-build.log 2ebda0c91fb89d2f... d0c5d431595d0bbf...
win-build.log 33d99f59901749d3... 1c6bc7b8a818715e...
bitcoin-core-linux-0.21-res.yml.diff af2ec9c9ff4c6469...
bitcoin-core-osx-0.21-res.yml.diff 2eaac34febb736c6...
bitcoin-core-win-0.21-res.yml.diff 293a3b8712fe05b9...
linux-build.log.diff b9c43f2d9c16b82b...
osx-build.log.diff ff49d4e86fe2e510...
win-build.log.diff 8847755755751d1e...

@DrahtBot

Copy link
Copy Markdown
Contributor

Guix builds

File commit e2f6866
(master)
commit fd3d84936356405ff8cebcb515c2bf2e8daafc12
(master and this pull)
*-aarch64-linux-gnu-debug.tar.gz b9317425f5ae0772... a255aeff3c504df3...
*-aarch64-linux-gnu.tar.gz 8547167d635a159b... 7f9d211ecdf30400...
*-arm-linux-gnueabihf-debug.tar.gz a7442351bad62f78... 8123de153e941d00...
*-arm-linux-gnueabihf.tar.gz 20084ed9d25bbb7c... 19407e334a2b1cf2...
*-riscv64-linux-gnu-debug.tar.gz 559e9188e5298f47... 3df2b8b47ef9bbe7...
*-riscv64-linux-gnu.tar.gz 37f7a3b7985894ee... 80571aa3d4ffd601...
*-win-unsigned.tar.gz 3704d8e6a872997b... e3594188d0c2a009...
*-win64-debug.zip 97843e42b686ff12... 751d85d698ca7403...
*-win64-setup-unsigned.exe 63ab03762282c5e7... b2c01f324c885f28...
*-win64.zip dc80c6a8ff8a9987... 21b082cef705426e...
*-x86_64-linux-gnu-debug.tar.gz 2b929524c920119e... d8ae53e330128d8e...
*-x86_64-linux-gnu.tar.gz 9e3d98012136c821... d10c49084a197bcf...
*.tar.gz 90f83c125c189853... 649e1115546ef849...
guix_build.log 7948626ab6c30044... 0c0b68dabfd61664...
guix_build.log.diff 76bea9d318d40bfd...

@michaelfolkson

Copy link
Copy Markdown
Contributor

Concept ACK. Seems like reasonable timing though I have no idea how many users this will affect and regardless it may be in the best interests of that small group of users anyway.

@maflcko

maflcko commented May 19, 2020

Copy link
Copy Markdown
Member

the binary will now refuse to run on unsupported versions of Windows, which, for us, is XP & Vista

Concpet ACK

@fanquake

Copy link
Copy Markdown
Member Author

Seems like reasonable timing though I have no idea how many users this will affect and regardless it may be in the best interests of that small group of users anyway.

If in another 6 months time (at the 0.21 release), there are a significant number of users who can now no-longer run Bitcoin Core, because (against our suggestion) they were running it on Windows XP or Vista, we can re-evaluate this change and likely our backwards compatibility requirements.

@fanquake
fanquake merged commit 0aa2ff0 into bitcoin:master May 20, 2020
@fanquake
fanquake deleted the window_enforce_runtime_version branch May 20, 2020 02:16
luke-jr pushed a commit to bitcoinknots/bitcoin that referenced this pull request Jun 9, 2020
Instruct the linker to set the major & minor subsystem versions in the PE
header to 6 & 1 (NT 6.1 which corresponds to Windows 7). Similar to
macOS, the binary will now refuse to run on unsupported versions of
Windows.

Github-Pull: bitcoin#18956
Rebased-From: e8a8cff
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 1, 2021
e8a8cff build: enforce minimum required Windows version (7) (fanquake)

Pull request description:

  Instruct the linker to set the major & minor subsystem versions in the PE
  header to 6 & 1 (NT 6.1 which corresponds to Windows 7). Similar to
  the behaviour on macOS, the binary will now refuse to run on
  unsupported versions of Windows, which, for us, is XP & Vista.

  ![windows_no_run](https://user-images.githubusercontent.com/863730/81654555-38e0fd00-9468-11ea-9cc8-caf37dec5713.png)

ACKs for top commit:
  laanwj:
    ACK e8a8cff

Tree-SHA512: 2f7c6443b79b1c6b995e337452aa177e95b0a9c48e47bcf1893aad6fd598e45940ab8eaa5ee1c5d994a521239b4e1b55a55bb3e8ffe367e1349db2a46892a6d4
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Sep 19, 2021
e8a8cff build: enforce minimum required Windows version (7) (fanquake)

Pull request description:

  Instruct the linker to set the major & minor subsystem versions in the PE
  header to 6 & 1 (NT 6.1 which corresponds to Windows 7). Similar to
  the behaviour on macOS, the binary will now refuse to run on
  unsupported versions of Windows, which, for us, is XP & Vista.

  ![windows_no_run](https://user-images.githubusercontent.com/863730/81654555-38e0fd00-9468-11ea-9cc8-caf37dec5713.png)

ACKs for top commit:
  laanwj:
    ACK e8a8cff

Tree-SHA512: 2f7c6443b79b1c6b995e337452aa177e95b0a9c48e47bcf1893aad6fd598e45940ab8eaa5ee1c5d994a521239b4e1b55a55bb3e8ffe367e1349db2a46892a6d4
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants