From 86fe32787fc2a482cc73043d111086518e80bb0f Mon Sep 17 00:00:00 2001 From: nocode Date: Tue, 22 Sep 2026 11:26:53 +0200 Subject: [PATCH] build(anaconda): disable LTO, GCC 16 crashes linking the widgets lto1 segfaults (internal compiler error) on libAnacondaWidgets. Both packages compile widgets/, so both need it. --- pkgbuilds/anaconda-widgets/PKGBUILD | 3 +++ pkgbuilds/anaconda/PKGBUILD | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pkgbuilds/anaconda-widgets/PKGBUILD b/pkgbuilds/anaconda-widgets/PKGBUILD index f2fd008..95da49a 100644 --- a/pkgbuilds/anaconda-widgets/PKGBUILD +++ b/pkgbuilds/anaconda-widgets/PKGBUILD @@ -19,6 +19,9 @@ depends=('gtk3' 'glib2' 'pango' 'gdk-pixbuf2' 'python-gobject') # de codegen GLib, scindés de glib2 sur Arch). Indispensable au build des widgets. makedepends=('autoconf' 'automake' 'libtool' 'gettext' 'intltool' 'gobject-introspection' 'gtk-doc' 'glib2-devel' 'python') +# GCC 16 segfaults in lto1 while linking libAnacondaWidgets (internal compiler +# error in cl_optimization_restore). LTO buys nothing measurable here. +options=('!lto') source=("anaconda-$pkgver.tar.gz::https://github.com/rhinstaller/anaconda/archive/refs/tags/anaconda-$pkgver.tar.gz") sha256sums=('5ef1464bff7f28a4a09a821cbb0121f09ef504ec169288d742373f86807ec4ed') _srcdir="anaconda-anaconda-$pkgver" diff --git a/pkgbuilds/anaconda/PKGBUILD b/pkgbuilds/anaconda/PKGBUILD index 11c58c0..1ca0bbb 100644 --- a/pkgbuilds/anaconda/PKGBUILD +++ b/pkgbuilds/anaconda/PKGBUILD @@ -53,6 +53,9 @@ makedepends=( 'gobject-introspection' 'python' 'gdk-pixbuf2' 'libxml2' 'desktop-file-utils' 'glib2-devel' 'libarchive' 'rpm-tools' ) +# GCC 16 segfaults in lto1 while linking libAnacondaWidgets (internal compiler +# error in cl_optimization_restore). LTO buys nothing measurable here. +options=('!lto') source=("anaconda-$pkgver.tar.gz::https://github.com/rhinstaller/anaconda/archive/refs/tags/anaconda-$pkgver.tar.gz") sha256sums=('5ef1464bff7f28a4a09a821cbb0121f09ef504ec169288d742373f86807ec4ed') _srcdir="anaconda-anaconda-$pkgver"