-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: package system runtime dependencies #9662
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python | ||
# xfail-license | ||
|
||
# Copies Rust runtime dependencies to the specified directory | ||
|
||
import snapshot, sys, os, shutil | ||
|
||
def copy_runtime_deps(dest_dir): | ||
for path in snapshot.get_winnt_runtime_deps(): | ||
shutil.copy(path, dest_dir) | ||
|
||
lic_dest = os.path.join(dest_dir, "third-party") | ||
shutil.rmtree(lic_dest) # copytree() won't overwrite existing files | ||
shutil.copytree(os.path.join(os.path.dirname(__file__), "third-party"), lic_dest) | ||
|
||
copy_runtime_deps(sys.argv[1]) |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
GCC RUNTIME LIBRARY EXCEPTION | ||
|
||
Version 3.1, 31 March 2009 | ||
|
||
Copyright (C) 2009 Free Software Foundation, Inc. <http://fsf.org/> | ||
|
||
Everyone is permitted to copy and distribute verbatim copies of this | ||
license document, but changing it is not allowed. | ||
|
||
This GCC Runtime Library Exception ("Exception") is an additional | ||
permission under section 7 of the GNU General Public License, version | ||
3 ("GPLv3"). It applies to a given file (the "Runtime Library") that | ||
bears a notice placed by the copyright holder of the file stating that | ||
the file is governed by GPLv3 along with this Exception. | ||
|
||
When you use GCC to compile a program, GCC may combine portions of | ||
certain GCC header files and runtime libraries with the compiled | ||
program. The purpose of this Exception is to allow compilation of | ||
non-GPL (including proprietary) programs to use, in this way, the | ||
header files and runtime libraries covered by this Exception. | ||
|
||
0. Definitions. | ||
|
||
A file is an "Independent Module" if it either requires the Runtime | ||
Library for execution after a Compilation Process, or makes use of an | ||
interface provided by the Runtime Library, but is not otherwise based | ||
on the Runtime Library. | ||
|
||
"GCC" means a version of the GNU Compiler Collection, with or without | ||
modifications, governed by version 3 (or a specified later version) of | ||
the GNU General Public License (GPL) with the option of using any | ||
subsequent versions published by the FSF. | ||
|
||
"GPL-compatible Software" is software whose conditions of propagation, | ||
modification and use would permit combination with GCC in accord with | ||
the license of GCC. | ||
|
||
"Target Code" refers to output from any compiler for a real or virtual | ||
target processor architecture, in executable form or suitable for | ||
input to an assembler, loader, linker and/or execution | ||
phase. Notwithstanding that, Target Code does not include data in any | ||
format that is used as a compiler intermediate representation, or used | ||
for producing a compiler intermediate representation. | ||
|
||
The "Compilation Process" transforms code entirely represented in | ||
non-intermediate languages designed for human-written code, and/or in | ||
Java Virtual Machine byte code, into Target Code. Thus, for example, | ||
use of source code generators and preprocessors need not be considered | ||
part of the Compilation Process, since the Compilation Process can be | ||
understood as starting with the output of the generators or | ||
preprocessors. | ||
|
||
A Compilation Process is "Eligible" if it is done using GCC, alone or | ||
with other GPL-compatible software, or if it is done without using any | ||
work based on GCC. For example, using non-GPL-compatible Software to | ||
optimize any GCC intermediate representations would not qualify as an | ||
Eligible Compilation Process. | ||
|
||
1. Grant of Additional Permission. | ||
|
||
You have permission to propagate a work of Target Code formed by | ||
combining the Runtime Library with Independent Modules, even if such | ||
propagation would otherwise violate the terms of GPLv3, provided that | ||
all Target Code was generated by Eligible Compilation Processes. You | ||
may then convey such a combination under terms of your choice, | ||
consistent with the licensing of the Independent Modules. | ||
|
||
2. No Weakening of GCC Copyleft. | ||
|
||
The availability of this Exception does not imply any general | ||
presumption that third-party software is unaffected by the copyleft | ||
requirements of the license of GCC. | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found that if you omit the shebang you can include the correct license in here (we ideally don't want
xfail-license
). You're invoking this viaCFG_PYTHON
as well so the shebang shouldn't be necessary.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just imitating other python scripts :)
Perhaps license check should allow license to start on the second line. But this is probably something for another PR.