lto1 segfaults (internal compiler error) on libAnacondaWidgets. Both packages compile widgets/, so both need it.
49 lines
2.3 KiB
Bash
49 lines
2.3 KiB
Bash
# Maintainer: FWS
|
|
# Widgets GTK3 de l'installateur Anaconda (rhinstaller). Lib C + introspection
|
|
# GObject (AnacondaWidgets-1.0.typelib) + overrides gi. Le sous-dossier widgets/
|
|
# du source anaconda est un projet autotools AUTONOME (son propre configure.ac,
|
|
# AC_INIT([AnacondaWidgets],[3.4])) → on le construit seul depuis le tarball
|
|
# anaconda-45.8. Paquet versionné sur la release anaconda (comme le sous-paquet
|
|
# Fedora anaconda-widgets).
|
|
pkgname=anaconda-widgets
|
|
pkgver=45.8
|
|
pkgrel=1
|
|
pkgdesc="GTK3 UI widgets for the Anaconda installer (introspection inclus)"
|
|
arch=('x86_64')
|
|
url="https://github.com/rhinstaller/anaconda"
|
|
license=('GPL-2.0-or-later')
|
|
depends=('gtk3' 'glib2' 'pango' 'gdk-pixbuf2' 'python-gobject')
|
|
# NB : pas de 'glade' — on désactive le module Glade (catalogue pour le designer,
|
|
# inutile au runtime). Sur Arch le paquet s'appelle 'glade' (pas 'gladeui').
|
|
# glib2-devel : fournit gdbus-codegen / glib-mkenums / glib-genmarshal (outils
|
|
# 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"
|
|
|
|
build() {
|
|
cd "$srcdir/$_srcdir/widgets"
|
|
# Glade désactivé : le flag doit être posé À LA FOIS pour autoreconf (variable
|
|
# d'env lue par m4 dans configure.ac) ET pour configure (--disable-glade).
|
|
export ANACONDA_DISABLE_GLADE=yes
|
|
# autogen.sh : autoreconf -vfi + copie /usr/share/gettext/gettext.h dans src/.
|
|
./autogen.sh
|
|
./configure --prefix=/usr --libdir=/usr/lib \
|
|
--disable-static --disable-gtk-doc --disable-glade --enable-introspection
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$_srcdir/widgets"
|
|
make DESTDIR="$pkgdir" install
|
|
find "$pkgdir" -name '*.la' -delete
|
|
# NB : on inclut aussi les fichiers -devel (.so/.h/.pc + catalogue glade) ;
|
|
# inoffensif sur l'ISO et évite de manquer un fichier runtime. Le paquet
|
|
# « anaconda » retirera ces mêmes fichiers de son propre pkgdir.
|
|
}
|