aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/clang-3.5-libsanitizer-ustat-fix.patch
blob: cfb09a8ce3d2419ddd70749e61f85f59f2039714 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From d9d97cac3702b99a00cd113de98c41eb535d47ed Mon Sep 17 00:00:00 2001
From: Efraim Flashner <efraim@flashner.co.il>
Date: Sun, 14 Oct 2018 12:11:30 +0300
Subject: [PATCH] patch modified from the gcc patch series, also dealing with
 ustat.

---
 .../sanitizer_platform_limits_posix.cc            | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
index 29fea6e..570b9a5 100644
--- a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
+++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
@@ -129,7 +129,6 @@
 #include <sys/statvfs.h>
 #include <sys/timex.h>
 #include <sys/user.h>
-#include <sys/ustat.h>
 #include <linux/cyclades.h>
 #include <linux/if_eql.h>
 #include <linux/if_plip.h>
@@ -222,7 +221,19 @@ namespace __sanitizer {
 #endif  // SANITIZER_LINUX || SANITIZER_FREEBSD
 
 #if SANITIZER_LINUX && !SANITIZER_ANDROID
-  unsigned struct_ustat_sz = sizeof(struct ustat);
+  // Use pre-computed size of struct ustat to avoid <sys/ustat.h> which
+  // has been removed from glibc 2.28.
+#if defined(__aarch64__) || defined(__s390x__) || defined (__mips64) \
+  || defined(__powerpc64__) || defined(__arch64__) || defined(__sparcv9) \
+  || defined(__x86_64__)
+#define SIZEOF_STRUCT_USTAT 32
+#elif defined(__arm__) || defined(__i386__) || defined(__mips__) \
+  || defined(__powerpc__) || defined(__s390__)
+#define SIZEOF_STRUCT_USTAT 20
+#else
+#error Unknown size of struct ustat
+#endif
+  unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
 #endif  // SANITIZER_LINUX && !SANITIZER_ANDROID
-- 
2.19.1

2024-03-28gnu: python-pynacl: Update to 1.5.0....* gnu/packages/python-crypto.scm (python-pynacl): Update to 1.5.0. Change-Id: Iadf81b8d67a5d4fa08fbcb9937afa86de33385dc Signed-off-by: Ricardo Wurmus <rekado@elephly.net> nafkhamdc 2024-02-20gnu: rust-asn1: Move to (gnu packages crates-tls)....* gnu/packages/crates-io.scm (rust-asn1-0.15, rust-asn1-0.13, rust-asn1-derive-0.15, rust-asn1-derive-0.13, rust-asn1-rs-0.5, rust-asn1-rs-0.3, rust-asn1-rs-derive-0.4, rust-asn1-rs-derive-0.1, rust-asn1-rs-impl-0.1): Move from here ... * gnu/packages/crates-tls.scm: ... to here. Change-Id: I1293490ef4afe2a9609337e996bc8f2b0eb0e3e6 Efraim Flashner 2023-10-18Revert "build: cargo-build-system: Disable tests by default."...This reverts commit 37667443074a6de29f7665868f102111d62f0af9. This change needs more discussion. Efraim Flashner 2023-10-18build: cargo-build-system: Disable tests by default....* guix/build-system/cargo.scm (cargo-build): Disable tests by default. * gnu/packages/admin.scm (greetd, wlgreet, du-dust), * gnu/packages/bioinformatics.scm (circtools, python-gseapy), * gnu/packages/crypto.scm (rust-minisign, b3sum), * gnu/packages/gnome.scm (librsvg), * gnu/packages/python-crypto.scm (python-blake3, python-cryptography-rust), * gnu/packages/python-xyz.scm (python-orjson), * gnu/packages/rust-apps.scm (agate, alfis, bat, diffr, drill, dutree, exa, fd, hexyl, hyperfine, i3status-rust, just, maturin, ripgrep, rot8, rust-swc, rust-cargo-edit, git-interactive-rebase-tool, rust-cbindgen, rust-cbindgen-0.24, rust-cbindgen-0.19, sniffglue, tectonic, treefmt, hex, tokei, vivid, watchexec, rbw, rust-analyzer, rust-cargo-c, rtss, skim, skim-0.7, svd2rust, swayhide, tealdeer, git-absorb, zoxide, htmlq), * gnu/packages/sequoia.scm (sequoia-sqv), * gnu/packages/syndication.scm (newsboat), * gnu/packages/terminals.scm (alacritty), * gnu/packages/text-editors.scm (kak-lsp, parinfer-rust), * gnu/packages/tree-sitter.scm (tree-sitter-cli), * gnu/packages/video.scm (rav1e), * gnu/packages/web.scm (monolith, castor) [arguments]: Enable tests. Efraim Flashner 2023-10-18gnu: python-pyopenssl: Update to 23.2.0....* gnu/packages/python-crypto.scm (python-pyopenssl): Update to 23.2.0. Efraim Flashner 2023-10-18gnu: python-cryptography-rust: Use cargo-test-flags....* gnu/packages/python-crypto.scm (python-cryptography-rust) [arguments]: Replace custom 'check phase with cargo-test-flags. Efraim Flashner 2023-10-18gnu: python-cryptography: Update to 41.0.4....* gnu/packages/python-crypto.scm (python-cryptography): Update to 41.0.4. (python-cryptography-rust)[arguments]: Don't install source. [cargo-inputs]: Add rust-foreign-types-0.3 Replace rust-asn1-0.13 with 0.15, rust-pyo3-0.15 with 0.18. Remove rust-chrono-0.4. Efraim Flashner 2023-10-18gnu: python-cryptography-vectors: Update to 41.0.4....* gnu/packages/python-crypto.scm (python-cryptography-vectors): Update to 41.0.4. [build-system]: Switch to pyproject-build-system. [arguments]: Disable tests. Efraim Flashner 2023-10-17gnu: python-pgpy: Update to 0.6.0....* gnu/packages/python-crypto.scm (python-pgpy): Update to 0.6.0. [propagated-inputs]: Remove python-singledispatch and python-six. Efraim Flashner 2023-09-27gnu: python-pyotp: Update to 2.9.0....* gnu/packages/python-crypto.scm (python-pyotp): Update to 2.9.0. Signed-off-by: Christopher Baines <mail@cbaines.net> fanquake 2023-09-22gnu: python-libnacl: Update to 2.1.0....* gnu/packages/python-crypto.scm (python-libnacl): Update to 2.1.0. [build-system]: Switch to PYPROJECT-BUILD-SYSTEM. [arguments]: Adjust hack for locating libsodium. Add custom check phase. [native-inputs]: Remove PYTHON-PYHAMCREST. Add PYTHON-POETRY-CORE. Marius Bakke 2023-09-22gnu: python-certauth: Fix test failure with newer PyOpenSSL....* gnu/packages/python-crypto.scm (python-certauth)[arguments]: New field. Marius Bakke 2023-08-24gnu: python-asn1crypto: Respect #:tests?....* gnu/packages/python-crypto.scm (python-asn1crypto)[#:phases]<check>: Honor argument #:tests?. Hilton Chain 2023-08-24gnu: python-asn1crypto: Update to 1.5.1....* gnu/packages/python-crypto.scm (python-asn1crypto): Update to 1.5.1. [description]: Adjust according to lint warning. Signed-off-by: Hilton Chain <hako@ultrarare.space> fanquake 2023-08-14gnu: python-cryptography-rust: Enable tests....* gnu/packages/python-crypto.scm (python-cryptography-rust) [arguments]: Don't skip the tests. Add a custom 'check phase. Efraim Flashner 2023-08-14gnu: python-cryptography: Update to 40.0.2....* gnu/packages/python-crypto.scm (python-cryptography): Update to 40.0.2. (python-cryptography-rust)[cargo-inputs]: Move rust-cc-1 here from cargo-development-inputs. [cargo-development-inputs]: Remove field. Efraim Flashner 2023-08-14gnu: python-cryptography-vectors: Update to 40.0.2....* gnu/packages/python-crypto.scm (python-cryptography-vectors): Update to 40.0.2. Efraim Flashner 2023-06-12gnu: python-m2crypto: Update to 0.38.0....* gnu/packages/python-crypto.scm (python-m2crypto): Update to 0.38.0. [build-system]: switch to PYPROJECT-BUILD-SYSTEM. Signed-off-by: Christopher Baines <mail@cbaines.net> Z572 2023-05-23gnu: Add python-crcmod....* gnu/packages/python-crypto.scm (python-crcmod): New variable. Co-authored-by: jgart <jgart@dismail.de> Signed-off-by: jgart <jgart@dismail.de> Rikard Nordgren 2023-05-22gnu: python-txtorcon: Update to 23.0.0....* gnu/packages/python-crypto.scm (python-txtorcon): Update to 23.0.0. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Juliana Sims 2023-05-22gnu: python-txtorcon: Run guix style....* gnu/packages/python-crypto.scm (python-txtorcon): Run guix style. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Juliana Sims 2023-05-22gnu: python-txtorcon: Fix failing build....Oops, I forgot to add a copyright line - this version fixes that. * gnu/packages/python-crypto.scm (python-txtorcon): Fix failing build. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Juliana Sims 2023-04-23gnu: python-ecdsa: Fix faulty commit....Fix previous commit, which did not properly add the test to be skipped and repeated the existing skipped test. There is only one new test to be skipped. * gnu/packages/python-crypto.scm (python-ecdsa)[arguments]: In the 'check' phase, properly format the string for skipped tests. John Kehayias 2023-04-23gnu: python-ecdsa: Skip two failing tests....* gnu/packages/python-crypto.scm (python-ecdsa)[arguments]: In 'check' phase, skip a couple more tests. John Kehayias 2023-04-22Merge remote-tracking branch 'origin/master' into core-updatesAndreas Enge 2023-04-21gnu: python-txtorcon: Fix build....gnu/packages/python-crypto.scm (python-txtorcon): Fix build failure. [propagated-inputs]: Add PYTHON-PYOPENSSL. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Brendan Tildesley 2023-04-17Merge remote-tracking branch 'origin/master' into core-updatesAndreas Enge 2023-04-17gnu: python-jeepney: Update to 0.8.0....* gnu/packages/python-crypto.scm (python-jeepney): Update to 0.8.0. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-async-timeout, python-pytest-asyncio, python-flit-core. Remove python-tornado. Efraim Flashner 2023-04-17gnu: python-secretstorage: Update to 3.3.3....* gnu/packages/python-crypto.scm (python-secretstorage): Update to 3.3.3. Efraim Flashner 2023-04-14gnu: python-pytest-7.1: Deprecate package....The source was adjusted using the following command: $ git grep -rl python-pytest-7.1 | xargs sed -i 's/python-pytest-7.1/python-pytest/g' * gnu/packages/check.scm (python-pytest-7.1): Delete variable. Maxim Cournoyer 2023-04-14Merge branch 'master' into core-updates....Conflicts: gnu/local.mk gnu/packages/build-tools.scm gnu/packages/certs.scm gnu/packages/check.scm gnu/packages/compression.scm gnu/packages/cups.scm gnu/packages/fontutils.scm gnu/packages/gnuzilla.scm gnu/packages/guile.scm gnu/packages/ibus.scm gnu/packages/image-processing.scm gnu/packages/linux.scm gnu/packages/music.scm gnu/packages/nss.scm gnu/packages/pdf.scm gnu/packages/python-xyz.scm gnu/packages/qt.scm gnu/packages/ruby.scm gnu/packages/shells.scm gnu/packages/tex.scm gnu/packages/video.scm gnu/packages/vulkan.scm gnu/packages/web.scm gnu/packages/webkit.scm gnu/packages/wm.scm Maxim Cournoyer 2023-04-14gnu: python-service-identity: Update to 21.1.0....* gnu/packages/python-crypto.scm (python-service-identity): Update to 21.1.0. [build-system]: Use pyproject-build-system. [native-inputs]: New field. [propagated-inputs]: Remove python-pyopenssl. Add python-cryptography and python-six. Maxim Cournoyer 2023-04-14gnu: python-pyopenssl: Update to 23.1.1....* gnu/packages/python-crypto.scm (python-pyopenssl): Update to 23.1.1. [source]: Remove patches. [arguments]: Update faketime date in check phase. Normalize pytest invocation in check phase override. [propagated-inputs]: Remove python-six. Maxim Cournoyer 2023-04-14gnu: python-cryptography: Update to 40.0.1 [fixes CVE-2023-23931]....* gnu/packages/python-crypto.scm (python-cryptography-vectors): Delete variable. (python-cryptography-vectors-next): Rename to... (python-cryptography-vectors): ... this. Update to 40.0.1. (python-cryptography): Delete variable. (python-cryptography-next): Rename to... (python-cryptography): ... this. Update to 40.0.1. [build-system]: Use pyproject-build-system. [arguments]: Remove #:imported-modules and #:modules arguments. Remove check phase override. Remove adjust-pyo3-requirement and configure-cargo phases. Add disable-rust-extension-build and symlink-rust-library phases. [native-inputs]: Replace python-cryptography-vectors-next with python-cryptography-vectors. Add python-iso8601. Remove python-pytz. Replace python-pytest with python-pytest-7.1. Remove rust, rust:cargo and python-setuptools-rust. [inputs]: Remove all inputs. Add python-cryptography-rust. [propagated-inputs]: Remove python-asn1crypto, python-six, python-idna and python-iso8601. [description]: Start description with @code to avoid a lint warning. Maxim Cournoyer 2023-04-14gnu: Add python-cryptography-rust....* gnu/packages/python-crypto.scm (python-cryptography-rust): New variable. Maxim Cournoyer 2023-04-11gnu: python-service-identity: Update to 21.1.0....* gnu/packages/python-crypto.scm (python-service-identity): Update to 21.1.0. [build-system]: Use pyproject-build-system. [native-inputs]: New field. [propagated-inputs]: Remove python-pyopenssl. Add python-cryptography and python-six. Maxim Cournoyer 2023-04-11gnu: python-pyopenssl: Update to 23.1.1....* gnu/packages/python-crypto.scm (python-pyopenssl): Update to 23.1.1. [source]: Remove patches. [arguments]: Update faketime date in check phase. Normalize pytest invocation in check phase override. [propagated-inputs]: Remove python-six. Maxim Cournoyer 2023-04-11gnu: python-cryptography: Update to 40.0.1 [fixes CVE-2023-23931]....* gnu/packages/python-crypto.scm (python-cryptography-vectors): Delete variable. (python-cryptography-vectors-next): Rename to... (python-cryptography-vectors): ... this. Update to 40.0.1. (python-cryptography): Delete variable. (python-cryptography-next): Rename to... (python-cryptography): ... this. Update to 40.0.1. [build-system]: Use pyproject-build-system. [arguments]: Remove #:imported-modules and #:modules arguments. Remove check phase override. Remove adjust-pyo3-requirement and configure-cargo phases. Add disable-rust-extension-build and symlink-rust-library phases. [native-inputs]: Replace python-cryptography-vectors-next with python-cryptography-vectors. Add python-iso8601. Remove python-pytz. Replace python-pytest with python-pytest-7.1. Remove rust, rust:cargo and python-setuptools-rust. [inputs]: Remove all inputs. Add python-cryptography-rust. [propagated-inputs]: Remove python-asn1crypto, python-six, python-idna and python-iso8601. [description]: Start description with @code to avoid a lint warning. Maxim Cournoyer 2023-04-11gnu: Add python-cryptography-rust....* gnu/packages/python-crypto.scm (python-cryptography-rust): New variable. Maxim Cournoyer 2023-03-29gnu: python-trustme: Update to 0.9.0....* gnu/packages/python-crypto.scm (python-trustme): Update to 0.9.0. [build-system]: Use pyproject-build-system. [arguments]: Delete field. [propagated-inputs]: Add python-idna and python-ipaddress. Maxim Cournoyer