From 159d5f03dc7182aefb31b0c1921590a45aba8b80 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Sat, 7 Jun 2025 01:33:19 -0600 Subject: [PATCH] llvm-toolchain-19: restore armhf rt runtime. --- ...86f572c7efff994eb748f52f505edfe31bcb.patch | 75 +++++++++++++++++++ ...2cbf9ba5762c815c8f893349754e2ee01ac9.patch | 25 +++++++ helpers/make-llvm-toolchain-19 | 33 ++++++++ 3 files changed, 133 insertions(+) create mode 100644 helpers/DATA/llvm-toolchain-19/patch_changes/00-01c886f572c7efff994eb748f52f505edfe31bcb.patch create mode 100644 helpers/DATA/llvm-toolchain-19/patch_changes/01-09aa2cbf9ba5762c815c8f893349754e2ee01ac9.patch create mode 100644 helpers/make-llvm-toolchain-19 diff --git a/helpers/DATA/llvm-toolchain-19/patch_changes/00-01c886f572c7efff994eb748f52f505edfe31bcb.patch b/helpers/DATA/llvm-toolchain-19/patch_changes/00-01c886f572c7efff994eb748f52f505edfe31bcb.patch new file mode 100644 index 0000000..79b2fb0 --- /dev/null +++ b/helpers/DATA/llvm-toolchain-19/patch_changes/00-01c886f572c7efff994eb748f52f505edfe31bcb.patch @@ -0,0 +1,75 @@ +From 01c886f572c7efff994eb748f52f505edfe31bcb Mon Sep 17 00:00:00 2001 +From: Matthias Klose +Date: Fri, 8 Mar 2024 15:44:50 +0100 +Subject: [PATCH] Enable compiler-rt runtime again for 32bit time_t64 + architectures. + +--- + debian/changelog | 1 + + debian/libclang-common-X.Y-dev.install.in | 4 ++-- + debian/rules | 3 +-- + 3 files changed, 4 insertions(+), 4 deletions(-) + +#diff --git a/debian/changelog b/debian/changelog +#index e39fbda2e..cd8a61bc8 100644 +#--- a/debian/changelog +#+++ b/debian/changelog +#@@ -6,6 +6,7 @@ llvm-toolchain-19 (1:19.1.2-2) UNRELEASED; urgency=medium +# +# [ Sylvestre Ledru ] +# * Use the | hello trick for g++-multilib for s390x / Ubuntu Oracular +#+ * Enable compiler-rt runtime again for 32bit time_t64 architectures. +# +# -- Sylvestre Ledru Mon, 21 Oct 2024 10:20:12 +0200 + +#diff --git a/debian/libclang-common-X.Y-dev.install.in b/debian/libclang-common-X.Y-dev.install.in +#index 7b9dc1723..e15ef67ae 100644 +#--- a/debian/libclang-common-X.Y-dev.install.in +#+++ b/debian/libclang-common-X.Y-dev.install.in +#@@ -2,8 +2,8 @@ +# +# usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/*.h +# usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/module.modulemap +#-[!armel !armhf !powerpc !x32 !hurd-any] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/xray/ +#-[!armel !armhf !powerpc !x32 !hurd-any] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/profile/ +#+[!powerpc !x32 !hurd-any] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/xray/ +#+[!powerpc !x32 !hurd-any] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/profile/ +# usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/ppc_wrappers/ +# usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/openmp_wrappers/ +# usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/cuda_wrappers/ +diff --git a/debian/rules b/debian/rules +index 5e4aba682..32b372bf4 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -31,12 +31,11 @@ ifeq ($(DEB_HOST_ARCH),i386) + RUNTIMES = compiler-rt;libcxx;libcxxabi + export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath,-fixdebugpath optimize=-lto + else ++ RUNTIMES = compiler-rt;libcxx;libcxxabi + ifeq ($(DEB_HOST_ARCH_BITS),32) +- RUNTIMES = libcxx;libcxxabi + export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath,-fixdebugpath optimize=-lto abi=+time64,+lfs + skip_packages = -Nlibclang-rt-$(LLVM_VERSION)-dev + else +- RUNTIMES = compiler-rt;libcxx;libcxxabi + ifeq ($(DEB_HOST_ARCH),mips64el) + export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath,-fixdebugpath optimize=-lto hardening=-stackprotector,-stackprotectorstrong + else +-- +GitLab + +diff --git a/debian/libclang-common-X.Y-dev.install.in b/debian/libclang-common-X.Y-dev.install.in +index 571a6619..a6451d70 100644 +--- a/debian/libclang-common-X.Y-dev.install.in ++++ b/debian/libclang-common-X.Y-dev.install.in +@@ -2,8 +2,8 @@ + + usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/*.h + usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/module.modulemap +-[!armel !armhf !x32] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/xray/ +-[!armel !armhf !x32] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/profile/ ++[!x32] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/xray/ ++[!x32] usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/profile/ + usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/ppc_wrappers/ + usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/openmp_wrappers/ + usr/lib/llvm-@LLVM_VERSION@/lib/clang/@LLVM_VERSION@*/include/cuda_wrappers/ diff --git a/helpers/DATA/llvm-toolchain-19/patch_changes/01-09aa2cbf9ba5762c815c8f893349754e2ee01ac9.patch b/helpers/DATA/llvm-toolchain-19/patch_changes/01-09aa2cbf9ba5762c815c8f893349754e2ee01ac9.patch new file mode 100644 index 0000000..1af5444 --- /dev/null +++ b/helpers/DATA/llvm-toolchain-19/patch_changes/01-09aa2cbf9ba5762c815c8f893349754e2ee01ac9.patch @@ -0,0 +1,25 @@ +From 09aa2cbf9ba5762c815c8f893349754e2ee01ac9 Mon Sep 17 00:00:00 2001 +From: Samuel Thibault +Date: Sun, 27 Oct 2024 10:45:40 +0100 +Subject: [PATCH] Really re-enable compiler-rt for 32bit time_t64 + architectures. + +--- + debian/rules | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/debian/rules b/debian/rules +index 1e4e4726c..cc4a1696a 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -34,7 +34,6 @@ else + RUNTIMES = compiler-rt;libcxx;libcxxabi + ifeq ($(DEB_HOST_ARCH_BITS),32) + export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath,-fixdebugpath optimize=-lto abi=+time64,+lfs +- skip_packages = -Nlibclang-rt-$(LLVM_VERSION)-dev + else + ifeq ($(DEB_HOST_ARCH),mips64el) + export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath,-fixdebugpath optimize=-lto hardening=-stackprotector,-stackprotectorstrong +-- +GitLab + diff --git a/helpers/make-llvm-toolchain-19 b/helpers/make-llvm-toolchain-19 new file mode 100644 index 0000000..e5890be --- /dev/null +++ b/helpers/make-llvm-toolchain-19 @@ -0,0 +1,33 @@ +#!/bin/sh +# +# Copyright (C) 2025 Luis Guzmán +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +VERSION=1 +EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu $UPSTREAM main universe' +BACKPORTS=true + +. ./config + +# Set distro as part of matching upstream one. +sed -i "s|$UPSTREAM|$UPSTREAM $CODENAME|" debian/rules + +apply_patch_changes + +changelog "Import as dependency of newer abrowser/icedove deb dependencies. | Enable compiler-rt runtime again for 32bit time_t64 architectures." + +package