aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/gcc-4.9-libsanitizer-ustat.patch
blob: 795881ab9b660cd35f454653b2fca572d57d9a27 (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
Remove use of deprecated ustat interface in glibc 2.28:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85835

Adapted to GCC 4 series from this upstream patch:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=260684

--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
@@ -81,7 +81,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>
@@ -163,7 +162,19 @@
   unsigned struct_old_utsname_sz = sizeof(struct old_utsname);
   unsigned struct_oldold_utsname_sz = sizeof(struct oldold_utsname);
   unsigned struct_itimerspec_sz = sizeof(struct itimerspec);
-  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;
 #endif // SANITIZER_LINUX
 
 #if SANITIZER_LINUX && !SANITIZER_ANDROID
Add 'move-doc. [outputs]: Add doc. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: dblatex: Add libxslt native-search-paths to its own.Bruno Victal * gnu/packages/xml.scm (dblatex)[native-search-paths]: Set to %libxslt-search-paths. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: libxml2: Rewrite using G-Expressions.Bruno Victal * gnu/packages/xml.scm (libxml2): Use G-Expressions. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook2x: Use search-path-as-list for wrapping.Bruno Victal * gnu/packages/docbook.scm (docbook2x)[arguments]<#:phases>: Refactor 'wrap-programs phase to use search-path-as-list. <#:modules>: Add (srfi srfi-26). Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook2x: Set search-paths for XML and SGML catalogs.Bruno Victal According to the manpage, it has both XML and SGML catalog support through the XML_CATALOG_FILES (resp. SGML_CATALOG_FILES) environment variables through db2x_xsltproc. * gnu/packages/docbook.scm (docbook2x)[arguments]<#:phases>: Don't hardcode XML_CATALOG_FILES environmment variable. [native-search-paths]: Add %libxslt-search-paths. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook2x: Split documentation.Bruno Victal * gnu/packages/docbook.scm (docbook2x)[arguments]<#:phases>: Add 'move-doc phase. [outputs]: Add 'doc output. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook2x: Fix sgml2xml-isoent and add test dependencies.Bruno Victal * gnu/packages/docbook.scm (docbook2x)[arguments]<#:phases>: Add 'sgml-check phase. [inputs]: Add opensp. [native-inputs]: Add docbook-xml-4.1.2, docbook-xml-4.2, docbook-xml-4.4, tidy-html, groff-minimal and libxml2. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook2x: Import patches from debian.Bruno Victal * gnu/packages/docbook.scm (docbook2x)[source]: Import patches from debian. Prefer patching in source over 'patch-sources phase. Drop docbook-xml workaround. [arguments]<#:phases>: Drop 'patch-sources. [inputs]: Move after arguments. Remove docbook-xml-4.5. [natine-inputs]: Add autoconf, automake and libtool. * gnu/packages/patches/docbook2x-filename-handling.patch: New file. * gnu/packages/patches/docbook2x-fix-synopsis.patch: Ditto. * gnu/packages/patches/docbook2x-manpage-typo.patch: Ditto. * gnu/packages/patches/docbook2x-preprocessor-declaration.patch: Ditto. * gnu/packages/patches/docbook2x-static-datadir-evaluation.patch: Ditto. * gnu/local.mk: Register it. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook-utils: Import patches from debian.Bruno Victal * gnu/packages/docbook.scm (docbook-utils)[source]: Import patches from debian. Drop snippet for patching OpenSP and OpenJade. [native-inputs]: Add autoconf, automake and libtool. * gnu/packages/patches/docbook-utils-documentation-edits.patch: New file. * gnu/packages/patches/docbook-utils-escape-characters.patch: Ditto. * gnu/packages/patches/docbook-utils-remove-jade-sp.patch: Ditto. * gnu/packages/patches/docbook-utils-respect-refentry-for-name.patch: Ditto. * gnu/packages/patches/docbook-utils-source-date-epoch.patch: Ditto. * gnu/packages/patches/docbook-utils-use-date-element.patch: Ditto. * gnu/local.mk: Register them. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook: Remove leftovers.Bruno Victal docbook-xsl patches are probably remnants from 1f7d94597f1e78776f854eeca46c03a3aded8466. * gnu/packages/docbook.scm: Remove unused import. * gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch: Remove. * gnu/packages/patches/docbook-xsl-support-old-url.patch: Ditto. * gnu/local.mk: Unregister it. * gnu/packages/moreutils.scm (moreutils)[native-inputs]: Drop obsolete comment. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook-xsl: Add rewrite entries for http.Bruno Victal Refactored 'patch-catalog.xml to reduce code duplication. The catalog for docbook-xsl hosted on the CDN [1] have entries for the 'http' scheme yet when building from source only 'https' entries are generated. Patch the XML catalog to provide them both. [1]: <https://cdn.docbook.org/release/xsl/current/catalog.xml> * gnu/packages/docbook.scm (docbook-xsl)[arguments]<#:phases>: Rename 'patch-catalog-xml to 'patch-catalog.xml. Refactor this phase for deduplication and add 'https' entries. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook-xsl: Add compatibility entry.Bruno Victal Remap "http://docbook.sourceforge.net/release/xsl-ns/" to "http://docbook.sourceforge.net/release/xsl/". * gnu/packages/docbook.scm (docbook-xsl)[arguments]<#:phases>: Add compatibility entry. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook-xml-5.1: Fix URIs in catalog.xml.Bruno Victal * gnu/packages/docbook.scm (docbook-xml-5.1)[source]: Patch version in URI. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: Add docbook-xml-5.0.1.Bruno Victal * gnu/packages/docbook.xml (docbook-xml-5.0.1): New variable. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook-xml: Fix installation paths.Bruno Victal Using xml/dtd/docbook as installation path had two problems: * The paths would conflict in profile, which made it impossible for two different docbook-xml packages to coexist within the XML_CATALOG_FILES variable. * It was technically incorrect since non-DTD schemas were also placed here. This commit makes docbook-xml use versioned paths instead. Additionally the store URI for docbook-xml-4.1.2 was adjusted to conform to RFC8089 as according to RFC1738 the double slash "//" is intended for schemes that involve the direct use of an IP-based protocol. * gnu/packages/docbook.scm (docbook-xml-package, docbook-xml-4.x-package): New procedure. (docbook-xml): Make docbook-xml an alias for docbook-xml-5.1. (docbook-xml-5.1): New variable. (docbook-xml-4.5, docbook-xml-4.4, docbook-xml-4.3, docbook-xml-4.2) (docbook-xml-4.1.2): Refactor to use docbook-xml-4.x-package procedure. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: libxslt: Set search-paths for XML and SGML catalogs.Bruno Victal According to xsltproc manpage it supports both XML_CATALOG_FILES and SGML_CATALOG_FILES for catalog lookup. Since the native-search-paths field is not thunked, doing (package-native-search-paths libxslt) can lead to module import cycles so we define a %libxslt-search-paths variable to avoid this kind of trouble. * guix/search-paths.scm (%libxslt-search-paths): New variable. * gnu/packages/xml.scm (libxslt)[native-search-paths]: Set to %libxslt-search-paths. * gnu/packages/perl.scm (perl-app-xml-docbook-builder)[native-search-paths]: Ditto. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: libxml2: Add $SGML_CATALOG_FILES to native-search-path.Bruno Victal According to the xmllint manpage it also makes use of the SGML_CATALOG_FILES environment variable. * gnu/packages/xml.scm (libxml2)[native-search-paths]: Add $SGML_CATALOG_FILES. Co-authored-by: gemmaro <gemmaro.dev@gmail.com> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: I7b4befe352ba10b7a4e134f0806331b63bb4f855 2024-08-31search-paths: Add $XML_CATALOG_FILES and $SGML_CATALOG_FILES.Bruno Victal These variables are used by some packages for XML/SGML catalog lookups. * guix/search-paths ($XML_CATALOG_FILES, $SGML_CATALOG_FILES): New variable, extracted from … * gnu/packages/xml.scm (libxml2, opensp)[native-search-paths]: … here. Refer to the variables from (guix search-paths) respectively. * gnu/packages/perl.scm (perl-app-xml-docbook-builder)[native-search-paths]: Use $XML_CATALOG_FILES. * doc/guix.texi (Search Paths): Update documentation to reflect changes. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: git: Install zsh completions and git-prompt.Liliana Marie Prikler * gnu/packages/version-control.scm (git)[#:phases]<install-shell-completion>: Also install git-prompt and zsh _git site function. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: I76c45e117715a13db96ef0dda4ad6ea9af3a1882 2024-08-31gnu: git-minimal: Add coreutils and sed to PATH.Maxim Cournoyer Fixes <https://issues.guix.gnu.org/65924>. * gnu/packages/version-control.scm (git-minimal) [arguments] <imported-modules>: New field. <modules>: Augment with (ice-9 match), (ice-9 textual-ports) and (guix search-paths). <phases>: Add patch-commands phase. [inputs]: Add coreutils-minimal and sed. Reviewed-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Change-Id: I8e3dbbd24ef7f8fa98a392a36617b07fe632cd15 2024-08-31gnu: git: Invert inheritance relationship.Maxim Cournoyer It's simpler to add features on top of a minimal variant than to remove them, and helps avoiding mistakenly changing git-minimal, which has many dependents. * gnu/packages/version-control.scm (git-minimal): Move above git and severe inheritance. Remove input label. Repatriate most fields from... (git): ... here. Define as package/inherit to inherit from git-minimal. Extend minimal values instead of overriding them whole. Reviewed-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Change-Id: Ia0ef0e7e4f007c2fafad3550344638b6661a408b 2024-08-31gnu: git: Remove labels and use gexps.Maxim Cournoyer * gnu/packages/version-control.scm (git) [native-inputs, inputs]: Remove labels. [arguments]: Use gexps. Use gexp variables input searching procedures where it makes sense. Reviewed-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Change-Id: I1c5d0bb5eb9639342c11af94dca2ae2174496459 2024-08-31gnu: socat: Update to 1.7.4.4.Bruno Victal * gnu/packages/networking.scm (socat): Update to 1.7.4.4. [inputs]: Add readline for READLINE support. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: perl-xml-xpath: Update to 1.48.Bruno Victal * gnu/packages/xml.scm (perl-xml-xpath): Update to 1.48. [native-inputs]: Add perl-test-leaktrace. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: perl-xml-xpath: Wrap xpath command.Bruno Victal * gnu/packages/xml.scm (perl-xml-xpath)[arguments]: Wrap xpath. Add test for wrapped xpath. [description]: Document xpath command presence. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: %objc++-search-paths: Express using $LIBRARY_PATH.Maxim Cournoyer * gnu/packages/gcc.scm (%objc++-search-paths): Express using $LIBRARY_PATH. 2024-08-31gnu: gccgo-4.9: Express search paths via (guix search-paths) variables.Maxim Cournoyer * gnu/packages/gcc.scm (gccgo-4.9) [native-search-paths]: Express search paths via (guix search-paths) variables. 2024-08-31gnu: gcc-2.95: Express search paths via (guix search-paths) variables.Maxim Cournoyer * gnu/packages/gcc.scm (gcc-2.95) [native-search-paths]: Express search paths via (guix search-paths) variables. 2024-08-31gnu: gcc-4.7: Use %gcc-search-paths for native-search-paths.Maxim Cournoyer * gnu/packages/gcc.scm (gcc-4.7) [native-search-paths]: Use %gcc-search-paths. Change-Id: Ia9acc98c2f7c7bc101ac43a4288ee4368c2b3dfa 2024-08-31gnu: gawk: Update to 5.2.2.Efraim Flashner * gnu/packages/gawk.scm (gawk): Update to 5.2.2. 2024-08-31gnu: gzip: Update to 1.13.Efraim Flashner * gnu/packages/compression.scm (gzip): Update to 1.13. 2024-08-31gnu: libgccjit: Track the default GCC version.Efraim Flashner * gnu/packages/gcc.scm (libgccjit): Rewrite to use the default gcc version. 2024-08-31gnu: doxygen: Update to 1.9.8.Maxim Cournoyer * gnu/packages/documentation.scm (doxygen): Update to 1.9.8. 2024-08-31gnu: glibc: Add $TZDIR native search path.Maxim Cournoyer * gnu/packages/base.scm (glibc) [native-search-paths]: Add $TZDIR. 2024-08-31gnu: pcsc-lite: Update to 2.0.0.Arjan Adriaanse * gnu/packages/security-token.scm (pcsc-lite): Update to 2.0.0. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook-dsssl: Switch to copy-build-system.Bruno Victal * gnu/packages/docbook.scm (docbook-dsssl)[build-system]: Switch to copy-build-system. [arguments]: Add phase to install documentation as separate output. (docbook-dsssl-doc)[build-system]: Switch to copy-build-system. [arguments]: Adapt to new build-system. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook: Refactor dblatex packages.Bruno Victal * gnu/packages/docbook.scm (dblatex): Rewrite using G-Expressions. (dblatex/stable): Use modify-inputs. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Change-Id: Ic4c974c60a80871c5bf4764b88b913c871208b3f 2024-08-31gnu: docbook: Refactor docbook-sgml packages.Bruno Victal * gnu/packages/docbook.scm (docbook-sgml)[build-system]: Switch to copy-build-system. [arguments]: Replace #:builder with #:install-plan. Add phases 'fix-permission and 'patch-iso-entities. [sources]: Use url-fetch/zipbomb. (docbook-sgml-4.1, docbook-sgml-3.1)[sources]: Ditto. (iso-8879-entities)[source]: Ditto. [build-system]: Switch to copy-build-system. [native-inputs]: Restyle. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook-utils: Refactor package.Bruno Victal * gnu/packages/docbook.scm (docbook-utils)[description]: Fix description. [source]: Patch source in snippet. [arguments]: Remove. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook-xsl-1.79.1: Refactor package.Bruno Victal * gnu/packages/docbook.scm (docbook-xsl-1.79.1)[source]: Remove bundled binary files. [arguments]: Use #:install-plan. Patch catalog.xml using xmlcatalog. Add phase 'install-doc. [native-inputs]: Add libxml2. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: docbook-xsl: Refactor package.Bruno Victal * gnu/packages/docbook.scm (docbook-xsl)[source]: Patch in snippet. [arguments]: Use sxml representation for xmlc file. Use xmlcatalog to manipulate catalog.xml instead of substitute*. Use #:install-plan instead of replacing 'install phase. [native-inputs]: Add docbook-xml-4.4 and libxml2, required for tests. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: wget: Update to 1.21.4.Andreas Enge * gnu/packages/wget.scm (wget): Update to 1.21.4. 2024-08-31gnu: psutils: Stop installing broken scripts.Tobias Geerinckx-Rice * gnu/packages/ghostscript.scm (psutils)[inputs]: Add perl-ipc-run3. [arguments]: Add a new 'wrap-scripts phase. 2024-08-31gnu: libinput: Add missing file-name.From: Hilton Chain * gnu/packages/freedesktop.scm (libinput)[source]: Use GIT-FILE-NAME. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr> 2024-08-31gnu: libinput: Update to 1.23.0.Hilton Chain * gnu/packages/freedesktop.scm (libinput): Update to 1.23.0. [native-inputs]: Add python-minimal-wrapper and python-pytest. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr> Change-Id: I207898dc6971e9fa7be24b7ba9c8fc1887ec930e 2024-08-31gnu: kexec-tools: Update to 2.0.26.Tobias Geerinckx-Rice * gnu/packages/linux.scm (kexec-tools): Update to 2.0.26.