Fabian Bornschein pushed to branch main at Arch Linux / Packaging / Packages / 
gjs


Commits:
69344ff1 by Fabian Bornschein at 2024-12-28T21:26:42+01:00
upgpkg: 2:1.82.1-2

* Meson disables code optimization (sets -O0) during the dependency-check 
phase, which triggers a warning due to the default Arch build flag 
-D_FORTIFY_SOURCE=3. The implementation of the dependency-check's 'printf() 
supports %I alternative int syntax' uses the -Werror flag, causing the 
dependency check to fail. As a result, numbers won't be localized, such as in 
the shutdown counter of gnome-shell. This workaround addresses the issue for 
now. -> https://gitlab.gnome.org/GNOME/gjs/-/issues/671

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = gjs
        pkgdesc = Javascript Bindings for GNOME
        pkgver = 1.82.1
-       pkgrel = 1
+       pkgrel = 2
        epoch = 2
        url = https://wiki.gnome.org/Projects/Gjs
        arch = x86_64


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
 
 pkgname=gjs
 pkgver=1.82.1
-pkgrel=1
+pkgrel=2
 epoch=2
 pkgdesc="Javascript Bindings for GNOME"
 url="https://wiki.gnome.org/Projects/Gjs";
@@ -50,6 +50,15 @@ prepare() {
   git submodule init
   git submodule set-url subprojects/gobject-introspection-tests 
"${srcdir}/gobject-introspection-tests"
   git -c protocol.file.allow=always -c protocol.allow=never submodule update
+
+  # printf() supports %I alternative int syntax
+  ## Meson disables code optimization (sets -O0) during the dependency-check 
phase.
+  ## This causes conflicts with the default Arch build flag 
-D_FORTIFY_SOURCE=3,
+  ## leading to the following warning (and a failed dependency check due to 
-Werror):
+  ##     # warning: _FORTIFY_SOURCE requires compiling with optimization (-O)
+  ## This adjustment offers a workaround for the issue.
+  ## https://gitlab.gnome.org/GNOME/gjs/-/issues/671
+  sed -i "s/'-Werror'/'-Werror=format'/" meson.build
 }
 
 build() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gjs/-/commit/69344ff1138c061f86620c835f605da70b706008

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gjs/-/commit/69344ff1138c061f86620c835f605da70b706008
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to