Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1042489: webkit2gtk: Please build with -DENABLE_INTROSPECTION=OFF on ia64

1 view
Skip to first unread message

John Paul Adrian Glaubitz

unread,
Jul 29, 2023, 4:50:05 AM7/29/23
to
Source: webkit2gtk
Version: 2.40.4-1
Severity: normal
Tags: patch
User: debia...@lists.debian.org
Usertags: ia64
X-Debbugs-Cc: debia...@lists.debian.org

Hi!

On ia64, webkit2gtk FTBFS due to g-ir-scanner not understading the syntax used
in the <sys/uncontext.h> header [1]:

/usr/include/ia64-linux-gnu/sys/ucontext.h:92: syntax error, unexpected typedef-name in ' \
unsigned long _pad[__builtin_offsetof (mcontext_t, sc_gr[0])/8];' at 'mcontext_t'
/usr/include/ia64-linux-gnu/sys/ucontext.h:94: syntax error, unexpected '}' in ' }' at '}'

To work around this, webkit2gtk should be built with introspection disabled:

--- old/webkit2gtk-2.40.4/debian/rules 2023-07-06 11:51:25.000000000 +0200
+++ new/webkit2gtk-2.40.4/debian/rules 2023-07-29 10:35:19.934123170 +0200
@@ -55,6 +55,11 @@
EXTRA_CMAKE_ARGUMENTS += -DENABLE_WEBGL=OFF
endif

+# https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/471
+ifneq (,$(filter $(DEB_HOST_ARCH),ia64))
+ EXTRA_CMAKE_ARGUMENTS += -DENABLE_INTROSPECTION=OFF
+endif
+
# libgbm-dev is not available in the Hurd (#1033999)
ifneq (,$(filter $(DEB_HOST_ARCH),hurd-i386))
EXTRA_CMAKE_ARGUMENTS += -DUSE_GBM=OFF

Can you apply this change for the next upload of webkit2gtk?

Thanks,
Adrian

[1] https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/471

--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
webkit2gtk-ia64-disable-introspection.diff

John Paul Adrian Glaubitz

unread,
Jul 30, 2023, 2:30:03 AM7/30/23
to
Hi!

On Sat, 2023-07-29 at 10:44 +0200, John Paul Adrian Glaubitz wrote:
> On ia64, webkit2gtk FTBFS due to g-ir-scanner not understading the syntax used
> in the <sys/uncontext.h> header [1]:
>
> /usr/include/ia64-linux-gnu/sys/ucontext.h:92: syntax error, unexpected typedef-name in ' \
> unsigned long _pad[__builtin_offsetof (mcontext_t, sc_gr[0])/8];' at 'mcontext_t'
> /usr/include/ia64-linux-gnu/sys/ucontext.h:94: syntax error, unexpected '}' in ' }' at '}'
>
> To work around this, webkit2gtk should be built with introspection disabled:
>
> --- old/webkit2gtk-2.40.4/debian/rules 2023-07-06 11:51:25.000000000 +0200
> +++ new/webkit2gtk-2.40.4/debian/rules 2023-07-29 10:35:19.934123170 +0200
> @@ -55,6 +55,11 @@
> EXTRA_CMAKE_ARGUMENTS += -DENABLE_WEBGL=OFF
> endif
>
> +# https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/471
> +ifneq (,$(filter $(DEB_HOST_ARCH),ia64))
> + EXTRA_CMAKE_ARGUMENTS += -DENABLE_INTROSPECTION=OFF
> +endif
> +
> # libgbm-dev is not available in the Hurd (#1033999)
> ifneq (,$(filter $(DEB_HOST_ARCH),hurd-i386))
> EXTRA_CMAKE_ARGUMENTS += -DUSE_GBM=OFF
>
> Can you apply this change for the next upload of webkit2gtk?

I just noticed that there will be a number of files missing in dh_install when
introspection is disabled. So, better not apply this fix at the moment and I
will just build webkit2gtk on ia64 manually with a patched <sys/ucontext.h>.

We will have to wait until the upstream bug in g-ir-scanner has been fixed
upstream.

Adrian
0 new messages