diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-01-12 20:06:25 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-01-12 20:06:25 +0530 |
commit | 70dc623bf5070bcc49f7d20f0b8d0dfac53c9314 (patch) | |
tree | 617ca17472299719ca4713cddd74b1bcf9130e18 /recipes/build-tools | |
parent | 89330a89d6708f78399f54ae7577e75afa6151c3 (diff) |
meson.recipe: Write out DLL/EXE checksums with MSVC
Discovered in https://gitlab.freedesktop.org/gstreamer/cerbero/issues/221
Not essential, but it's good hygiene, helps detect data corruption,
and also reduces the chances that our binaries will be detected as
malware.
Diffstat (limited to 'recipes/build-tools')
-rw-r--r-- | recipes/build-tools/meson.recipe | 2 | ||||
-rw-r--r-- | recipes/build-tools/meson/0001-vs-Write-out-checksums-but-not-timestamps.patch | 30 |
2 files changed, 32 insertions, 0 deletions
diff --git a/recipes/build-tools/meson.recipe b/recipes/build-tools/meson.recipe index d0b0ea4a..f8834884 100644 --- a/recipes/build-tools/meson.recipe +++ b/recipes/build-tools/meson.recipe @@ -31,6 +31,8 @@ class Recipe(recipe.Recipe): 'meson/0001-flatten-list-to-subprocess.Popen-necessary-for-Pytho.patch', # Already fixed differently upstream: https://github.com/mesonbuild/meson/pull/4445 'meson/0001-modules-windows-Allow-passing-arguments-to-WINDRES.patch', + # https://github.com/mesonbuild/meson/pull/6451, in 0.54.* + 'meson/0001-vs-Write-out-checksums-but-not-timestamps.patch', ] deps = ['ninja'] diff --git a/recipes/build-tools/meson/0001-vs-Write-out-checksums-but-not-timestamps.patch b/recipes/build-tools/meson/0001-vs-Write-out-checksums-but-not-timestamps.patch new file mode 100644 index 00000000..9d454580 --- /dev/null +++ b/recipes/build-tools/meson/0001-vs-Write-out-checksums-but-not-timestamps.patch @@ -0,0 +1,30 @@ +From cba72ac0d542ec5ece716d945b9072dc0a80a9ca Mon Sep 17 00:00:00 2001 +From: Nirbheek Chauhan <nirbheek@centricular.com> +Date: Sun, 12 Jan 2020 19:45:16 +0530 +Subject: [PATCH] vs: Write out checksums but not timestamps + +This is upstream in 0.54.x: +https://github.com/mesonbuild/meson/pull/6451 + +Checksums issue was discovered in: +https://gitlab.freedesktop.org/gstreamer/cerbero/issues/221 +--- + mesonbuild/compilers/c.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py +index d47694e..ea9b728 100644 +--- a/mesonbuild/compilers/c.py ++++ b/mesonbuild/compilers/c.py +@@ -1389,7 +1389,7 @@ class VisualStudioCCompiler(CCompiler): + return ['link'] + + def get_linker_always_args(self): +- return ['/nologo'] ++ return ['/nologo', '/release', '/Brepro'] + + def get_linker_output_args(self, outputname): + return ['/OUT:' + outputname] +-- +2.24.1.windows.2 + |