gnome onda 2: libtiff-shared + libjpeg-turbo-shared para gtk4
gtk4 EXIGE libtiff-4 (meson.build:450, sin required:false) ⇒ removerlo no sirve (quiere bajar un wrap). Autoro libtiff-shared (dynamic, NEEDED libz.so/libjpeg.so) + copio libjpeg-turbo-shared de KDE. gtk4 los declara ⇒ sus loaders linkean las .so y la cadena zlib resuelve por NEEDED. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -36,7 +36,7 @@ install = "PYTHONPATH=/usr/lib/python3.12/site-packages DESTDIR=/out meson ins
|
||||
# Cierre C DINÁMICO (-shared) + gi-foreign-girs (cairo-1.0/etc.): mismo patrón que gjs/pango. pango/
|
||||
# gdk-pixbuf/graphene/harfbuzz resuelven a las ISLAS (shadow). wayland/mesa/libdrm/libepoxy/libjpeg/
|
||||
# libtiff quedan corpus (se embeben si son PIC; si no, el worker pide su -shared).
|
||||
# libtiff/libjpeg-turbo REMOVIDOS: sus loaders de imagen propios de gtk4 (gdktiff/gdkjpeg) linkean
|
||||
# libtiff.a→zlib estático no resuelto ('undefined inflate'). No los necesita gnome-shell (usa png/gdk-pixbuf).
|
||||
# Sin la dep, gtk4 los detecta ausentes y saltea esos loaders. Si vuelven, como -shared (NEEDED libz.so).
|
||||
build = ["meson", "samurai", "python3", "py3-setuptools", "pkgconf", "gi-foreign-girs", "glib", "glib-introspected", "gobject-introspection", "cairo-shared", "pango", "gdk-pixbuf", "graphene", "libepoxy", "wayland", "wayland-protocols", "libxkbcommon", "libdrm", "fontconfig-shared", "harfbuzz", "fribidi", "libpng-shared", "pixman", "freetype-shared", "expat", "libffi", "pcre2", "zlib-shared", "mesa"]
|
||||
# libtiff-shared/libjpeg-turbo-shared: gtk4 EXIGE libtiff-4/libjpeg (loaders gdktiff/gdkjpeg, sin
|
||||
# required:false ⇒ no se pueden quitar). El .a estático arrastra zlib no resuelto ('undefined inflate')
|
||||
# ⇒ variantes .so (NEEDED libz.so/libjpeg.so). libtiff-shared autorado; libjpeg-turbo-shared de KDE.
|
||||
build = ["meson", "samurai", "python3", "py3-setuptools", "pkgconf", "gi-foreign-girs", "glib", "glib-introspected", "gobject-introspection", "cairo-shared", "pango", "gdk-pixbuf", "graphene", "libepoxy", "wayland", "wayland-protocols", "libxkbcommon", "libdrm", "fontconfig-shared", "harfbuzz", "fribidi", "libpng-shared", "pixman", "freetype-shared", "expat", "libffi", "pcre2", "zlib-shared", "libtiff-shared", "libjpeg-turbo-shared", "mesa"]
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# libjpeg-turbo-shared 3.1.3 — variante DINÁMICA (libjpeg.so.8 + libturbojpeg.so.0, PIC) para el
|
||||
# escritorio KDE. El canónico (recipes/incoming-kde/libjpeg-turbo.toml) es ENABLE_SHARED=0 (sólo .a sin
|
||||
# PIC) ⇒ no enlaza dentro de un .so ('R_X86_64_32S ... recompile with -fPIC', jpeg_nbits_table). Como
|
||||
# zlib-shared/bzip2-shared. Nombre distinto para no colisionar con el canónico. gwenview lo linkea.
|
||||
name = "libjpeg-turbo-shared"
|
||||
version = "3.1.3"
|
||||
|
||||
[source]
|
||||
tarball = "https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.1.3/libjpeg-turbo-3.1.3.tar.gz"
|
||||
sha256 = "075920b826834ac4ddf97661cc73491047855859affd671d52079c6867c1c6c0"
|
||||
|
||||
[build]
|
||||
compiler = "zig-cc"
|
||||
target = "x86_64-linux-musl"
|
||||
link = "dynamic"
|
||||
flags = []
|
||||
|
||||
[build.phases]
|
||||
configure = "cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DENABLE_SHARED=1 -DENABLE_STATIC=0 -DWITH_SIMD=0"
|
||||
compile = "cmake --build build"
|
||||
install = "DESTDIR=/out cmake --install build"
|
||||
|
||||
[deps]
|
||||
build = ["cmake", "samurai"]
|
||||
@@ -0,0 +1,24 @@
|
||||
# libtiff-shared 4.7.0 — variante DINÁMICA (libtiff.so, NEEDED libz.so/libjpeg.so) para la isla GNOME.
|
||||
# gtk4 EXIGE libtiff-4 (meson.build:450, sin required:false ⇒ no se puede quitar). El canónico es
|
||||
# BUILD_SHARED_LIBS=OFF: su libtiff.a arrastra zlib/jpeg como cadena estática que gtk4 (dinámico) no
|
||||
# resuelve ('undefined inflate'). La .so lo resuelve por NEEDED. Ver [[gnome-introspection-dinamica]].
|
||||
name = "libtiff-shared"
|
||||
version = "4.7.0"
|
||||
|
||||
[source]
|
||||
tarball = "https://download.osgeo.org/libtiff/tiff-4.7.0.tar.gz"
|
||||
sha256 = "67160e3457365ab96c5b3286a0903aa6e78bdc44c4bc737d2e486bcecb6ba976"
|
||||
|
||||
[build]
|
||||
compiler = "zig-cc"
|
||||
target = "x86_64-linux-musl"
|
||||
link = "dynamic"
|
||||
|
||||
[build.phases]
|
||||
configure = "cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -Dtiff-tools=OFF -Dtiff-tests=OFF -Dtiff-contrib=OFF -Dtiff-docs=OFF -Dzlib=ON -Djpeg=ON -Dlzma=OFF -Dzstd=OFF -Dwebp=OFF -Djbig=OFF -Dlerc=OFF -Dlibdeflate=OFF -Dcxx=OFF"
|
||||
compile = "cmake --build build --target tiff"
|
||||
install = "DESTDIR=/out cmake --install build"
|
||||
|
||||
# zlib-shared/libjpeg-turbo-shared: la .so de tiff los enlaza por NEEDED (libz.so/libjpeg.so).
|
||||
[deps]
|
||||
build = ["cmake", "zlib-shared", "libjpeg-turbo-shared"]
|
||||
@@ -36,7 +36,7 @@ install = "PYTHONPATH=/usr/lib/python3.12/site-packages DESTDIR=/out meson ins
|
||||
# Cierre C DINÁMICO (-shared) + gi-foreign-girs (cairo-1.0/etc.): mismo patrón que gjs/pango. pango/
|
||||
# gdk-pixbuf/graphene/harfbuzz resuelven a las ISLAS (shadow). wayland/mesa/libdrm/libepoxy/libjpeg/
|
||||
# libtiff quedan corpus (se embeben si son PIC; si no, el worker pide su -shared).
|
||||
# libtiff/libjpeg-turbo REMOVIDOS: sus loaders de imagen propios de gtk4 (gdktiff/gdkjpeg) linkean
|
||||
# libtiff.a→zlib estático no resuelto ('undefined inflate'). No los necesita gnome-shell (usa png/gdk-pixbuf).
|
||||
# Sin la dep, gtk4 los detecta ausentes y saltea esos loaders. Si vuelven, como -shared (NEEDED libz.so).
|
||||
build = ["meson", "samurai", "python3", "py3-setuptools", "pkgconf", "gi-foreign-girs", "glib", "glib-introspected", "gobject-introspection", "cairo-shared", "pango", "gdk-pixbuf", "graphene", "libepoxy", "wayland", "wayland-protocols", "libxkbcommon", "libdrm", "fontconfig-shared", "harfbuzz", "fribidi", "libpng-shared", "pixman", "freetype-shared", "expat", "libffi", "pcre2", "zlib-shared", "mesa"]
|
||||
# libtiff-shared/libjpeg-turbo-shared: gtk4 EXIGE libtiff-4/libjpeg (loaders gdktiff/gdkjpeg, sin
|
||||
# required:false ⇒ no se pueden quitar). El .a estático arrastra zlib no resuelto ('undefined inflate')
|
||||
# ⇒ variantes .so (NEEDED libz.so/libjpeg.so). libtiff-shared autorado; libjpeg-turbo-shared de KDE.
|
||||
build = ["meson", "samurai", "python3", "py3-setuptools", "pkgconf", "gi-foreign-girs", "glib", "glib-introspected", "gobject-introspection", "cairo-shared", "pango", "gdk-pixbuf", "graphene", "libepoxy", "wayland", "wayland-protocols", "libxkbcommon", "libdrm", "fontconfig-shared", "harfbuzz", "fribidi", "libpng-shared", "pixman", "freetype-shared", "expat", "libffi", "pcre2", "zlib-shared", "libtiff-shared", "libjpeg-turbo-shared", "mesa"]
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# libjpeg-turbo-shared 3.1.3 — variante DINÁMICA (libjpeg.so.8 + libturbojpeg.so.0, PIC) para el
|
||||
# escritorio KDE. El canónico (recipes/incoming-kde/libjpeg-turbo.toml) es ENABLE_SHARED=0 (sólo .a sin
|
||||
# PIC) ⇒ no enlaza dentro de un .so ('R_X86_64_32S ... recompile with -fPIC', jpeg_nbits_table). Como
|
||||
# zlib-shared/bzip2-shared. Nombre distinto para no colisionar con el canónico. gwenview lo linkea.
|
||||
name = "libjpeg-turbo-shared"
|
||||
version = "3.1.3"
|
||||
|
||||
[source]
|
||||
tarball = "https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.1.3/libjpeg-turbo-3.1.3.tar.gz"
|
||||
sha256 = "075920b826834ac4ddf97661cc73491047855859affd671d52079c6867c1c6c0"
|
||||
|
||||
[build]
|
||||
compiler = "zig-cc"
|
||||
target = "x86_64-linux-musl"
|
||||
link = "dynamic"
|
||||
flags = []
|
||||
|
||||
[build.phases]
|
||||
configure = "cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DENABLE_SHARED=1 -DENABLE_STATIC=0 -DWITH_SIMD=0"
|
||||
compile = "cmake --build build"
|
||||
install = "DESTDIR=/out cmake --install build"
|
||||
|
||||
[deps]
|
||||
build = ["cmake", "samurai"]
|
||||
@@ -0,0 +1,24 @@
|
||||
# libtiff-shared 4.7.0 — variante DINÁMICA (libtiff.so, NEEDED libz.so/libjpeg.so) para la isla GNOME.
|
||||
# gtk4 EXIGE libtiff-4 (meson.build:450, sin required:false ⇒ no se puede quitar). El canónico es
|
||||
# BUILD_SHARED_LIBS=OFF: su libtiff.a arrastra zlib/jpeg como cadena estática que gtk4 (dinámico) no
|
||||
# resuelve ('undefined inflate'). La .so lo resuelve por NEEDED. Ver [[gnome-introspection-dinamica]].
|
||||
name = "libtiff-shared"
|
||||
version = "4.7.0"
|
||||
|
||||
[source]
|
||||
tarball = "https://download.osgeo.org/libtiff/tiff-4.7.0.tar.gz"
|
||||
sha256 = "67160e3457365ab96c5b3286a0903aa6e78bdc44c4bc737d2e486bcecb6ba976"
|
||||
|
||||
[build]
|
||||
compiler = "zig-cc"
|
||||
target = "x86_64-linux-musl"
|
||||
link = "dynamic"
|
||||
|
||||
[build.phases]
|
||||
configure = "cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -Dtiff-tools=OFF -Dtiff-tests=OFF -Dtiff-contrib=OFF -Dtiff-docs=OFF -Dzlib=ON -Djpeg=ON -Dlzma=OFF -Dzstd=OFF -Dwebp=OFF -Djbig=OFF -Dlerc=OFF -Dlibdeflate=OFF -Dcxx=OFF"
|
||||
compile = "cmake --build build --target tiff"
|
||||
install = "DESTDIR=/out cmake --install build"
|
||||
|
||||
# zlib-shared/libjpeg-turbo-shared: la .so de tiff los enlaza por NEEDED (libz.so/libjpeg.so).
|
||||
[deps]
|
||||
build = ["cmake", "zlib-shared", "libjpeg-turbo-shared"]
|
||||
Reference in New Issue
Block a user