Rebuild package

This commit is contained in:
2026-07-10 19:15:51 +03:00
parent 1dd0185c34
commit eea0b3c4c9
3 changed files with 65 additions and 2 deletions
+4 -2
View File
@@ -1,9 +1,11 @@
name: gcc name: gcc
description: The GNU C Compiler description: The GNU C Compiler
version: 15.2.0 version: 15.2.0
revision: 8 revision: 9
url: https://gcc.gnu.org/ url: https://gcc.gnu.org/
license: GPL3-or-later,LGPL3-or-later,GPL3 with GCC-exception license: GPL3-or-later,LGPL3-or-later,GPL3 with GCC-exception
maintainers:
- [email protected]
architecture: any architecture: any
type: source type: source
make_depends: make_depends:
@@ -19,7 +21,7 @@ check_depends:
- inetutils - inetutils
- tcl - tcl
downloads: downloads:
- url: https://ftpmirror.gnu.org/gcc/gcc-${BPM_PKG_VERSION}/gcc-${BPM_PKG_VERSION}.tar.xz - url: https://ftp.gnu.org/gnu/gcc/gcc-${BPM_PKG_VERSION}/gcc-${BPM_PKG_VERSION}.tar.xz
extract_to: ${BPM_SOURCE} extract_to: ${BPM_SOURCE}
extract_strip_components: 1 extract_strip_components: 1
checksum: 438fd996826b0c82485a29da03a72d71d6e3541a83ec702df4271f6fe025d24e checksum: 438fd996826b0c82485a29da03a72d71d6e3541a83ec702df4271f6fe025d24e
+1
View File
@@ -6,6 +6,7 @@
# This function is used for putting downloaded files to the correct location or applying patches # This function is used for putting downloaded files to the correct location or applying patches
prepare() { prepare() {
cd "$BPM_SOURCE" cd "$BPM_SOURCE"
patch -Np1 -i "$BPM_WORKDIR"/fix-missing-linux-header-scc.h.patch
# Fix building with glibc-2.43 # Fix building with glibc-2.43
sed -i 's/char [*]q/const &/' libgomp/affinity-fmt.c sed -i 's/char [*]q/const &/' libgomp/affinity-fmt.c
# Install libraries to /usr/lib instead of /usr/lib64 # Install libraries to /usr/lib instead of /usr/lib64
@@ -0,0 +1,60 @@
From 259d5c6ef7ca0b7fb07acf97538fa7ba590c8e8b Mon Sep 17 00:00:00 2001
From: Jakub Jelinek <[email protected]>
Date: Wed, 29 Apr 2026 11:14:03 +0200
Subject: [PATCH] libsanitizer: Fix up build against latest kernel headers
The Linux kernel recently removed the linux/scc.h header, so gcc (both
16.1-rc2 and trunk) fails to build e.g. on Fedora rawhide now.
The following patch cherry picks a recent upstream fix for this, the macros
defined in that header haven't been really used since 2013-ish.
2026-04-29 Jakub Jelinek <[email protected]>
* sanitizer_common/sanitizer_platform_limits_posix.cpp: Cherry picked
from LLVM commit 3dc4fd6dd41100f051a63642f449b16324389c96.
Reviewed-by: Richard Biener <[email protected]>
---
.../sanitizer_platform_limits_posix.cpp | 21 ++++++++-----------
1 file changed, 9 insertions(+), 12 deletions(-)
diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
index 5872e3396f053..47eb1dc326772 100644
--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
@@ -152,16 +152,15 @@ typedef struct user_fpregs elf_fpregset_t;
#if defined(__mips64)
# include <sys/procfs.h>
#endif
-#include <sys/user.h>
-#include <linux/if_eql.h>
-#include <linux/if_plip.h>
-#include <linux/lp.h>
-#include <linux/mroute.h>
-#include <linux/mroute6.h>
-#include <linux/scc.h>
-#include <linux/serial.h>
-#include <sys/msg.h>
-#include <sys/ipc.h>
+# include <linux/if_eql.h>
+# include <linux/if_plip.h>
+# include <linux/lp.h>
+# include <linux/mroute.h>
+# include <linux/mroute6.h>
+# include <linux/serial.h>
+# include <sys/ipc.h>
+# include <sys/msg.h>
+# include <sys/user.h>
#endif // SANITIZER_ANDROID
#include <link.h>
@@ -534,8 +533,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
unsigned struct_kbsentry_sz = sizeof(struct kbsentry);
unsigned struct_mtconfiginfo_sz = sizeof(struct mtconfiginfo);
unsigned struct_nr_parms_struct_sz = sizeof(struct nr_parms_struct);
- unsigned struct_scc_modem_sz = sizeof(struct scc_modem);
- unsigned struct_scc_stat_sz = sizeof(struct scc_stat);
unsigned struct_serial_multiport_struct_sz
= sizeof(struct serial_multiport_struct);
unsigned struct_serial_struct_sz = sizeof(struct serial_struct);