<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>202790</bug_id>
          
          <creation_ts>2019-10-10 03:14:11 -0700</creation_ts>
          <short_desc>update-webkitgtk-libs fails to run in Fedora 31</short_desc>
          <delta_ts>2019-10-17 11:49:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Emilio Cobos Álvarez (:emilio)">emilio</reporter>
          <assigned_to name="Emilio Cobos Álvarez (:emilio)">emilio</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>clopez</cc>
    
    <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1578583</commentid>
    <comment_count>0</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2019-10-10 03:14:11 -0700</bug_when>
    <thetext>Errors like:

./Tools/Scripts/update-webkitgtk-libs                                                                                                                                                                                     
Updating GTK+ port dependencies using jhbuild...
Traceback (most recent call last):
  File &quot;./jhbuild-wrapper&quot;, line 21, in &lt;module&gt;
    import jhbuildutils
  File &quot;/home/emilio/src/WebKit/Tools/jhbuild/jhbuildutils.py&quot;, line 5, in &lt;module&gt;
    import __builtin__
ModuleNotFoundError: No module named &apos;__builtin__&apos;
Failed to build GTK+ port dependencies with jhbuild
Died at ./Tools/Scripts/update-webkitgtk-libs line 25

This patch fixes it:

diff --git a/Tools/jhbuild/jhbuild-wrapper b/Tools/jhbuild/jhbuild-wrapper
index ed1be88191b..02616db4ce1 100755
--- a/Tools/jhbuild/jhbuild-wrapper
+++ b/Tools/jhbuild/jhbuild-wrapper
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
 # Copyright (C) 2011 Igalia S.L.
 # Copyright (C) 2012 Gustavo Noronha Silva &lt;gns@gnome.org&gt;
 # Copyright (C) 2012 Intel Corporation

But not sure if it&apos;s acceptable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1578587</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-10-10 03:23:22 -0700</bug_when>
    <thetext>From a debian/ubuntu based perspective that patch is acceptable.

Not sure about arch. CC&apos;ing adrian.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1578606</commentid>
    <comment_count>2</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2019-10-10 05:31:08 -0700</bug_when>
    <thetext>Hmm, that only actually got me a bit further:

gawk -f /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/mkerrcodes1.awk /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/errnos.in &gt;_mkerrcodes.h
gawk -f /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/mkstrtable.awk -v textidx=2 -v nogettext=1 \
	/home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/err-sources.h.in &gt;err-sources-sym.h
gawk -f /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/mkstrtable.awk -v textidx=2 -v nogettext=1 \
	/home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/err-codes.h.in &gt;err-codes-sym.h
gawk -f /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/mkstrtable.awk -v textidx=2 -v nogettext=1 \
	-v prefix=GPG_ERR_ -v namespace=errnos_ \
	/home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/errnos.in &gt;errnos-sym.h
/usr/lib64/ccache/gcc -g -O0 -I. -I/home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src -o mkheader /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/mkheader.c
/usr/lib64/ccache/gcc -DHAVE_CONFIG_H -I. -I/home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src -I..     -Wno-error -O2 -g1 -Wall -Wpointer-arith -Wno-psabi -fvisibility=hidden -MT gen-posix-lock-obj.o -MD -MP -MF .deps/gen-posix-lock-obj.Tpo -c -o gen-posix-lock-obj.o /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/gen-posix-lock-obj.c
gawk: fatal: cannot use gawk builtin `namespace&apos; as variable name
gawk: /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/mkerrnos.awk:86: warning: regexp escape sequence `\#&apos; is not a known regexp operator
gawk: /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/mkerrcodes1.awk:84: warning: regexp escape sequence `\#&apos; is not a known regexp operator
gawk: /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/mkstrtable.awk:113: warning: regexp escape sequence `\#&apos; is not a known regexp operator
cat /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/src/gpg-error.def.in &gt;_gpg-error.def.h
make[2]: *** [Makefile:1324: errnos-sym.h] Error 2


Looks like that&apos;s fixed upstream per https://dev.gnupg.org/T4459, is there any way to update that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1578616</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2019-10-10 06:21:29 -0700</bug_when>
    <thetext>(In reply to Emilio Cobos Álvarez (:emilio) from comment #2)
&gt; Hmm, that only actually got me a bit further:
&gt; 
&gt; gawk -f
&gt; /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/
&gt; src/mkerrcodes1.awk
&gt; /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/
&gt; src/errnos.in &gt;_mkerrcodes.h
&gt; gawk -f
&gt; /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/
&gt; src/mkstrtable.awk -v textidx=2 -v nogettext=1 \
&gt; 	/home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.
&gt; 27/src/err-sources.h.in &gt;err-sources-sym.h
&gt; gawk -f
&gt; /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/
&gt; src/mkstrtable.awk -v textidx=2 -v nogettext=1 \
&gt; 	/home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.
&gt; 27/src/err-codes.h.in &gt;err-codes-sym.h
&gt; gawk -f
&gt; /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/
&gt; src/mkstrtable.awk -v textidx=2 -v nogettext=1 \
&gt; 	-v prefix=GPG_ERR_ -v namespace=errnos_ \
&gt; 	/home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.
&gt; 27/src/errnos.in &gt;errnos-sym.h
&gt; /usr/lib64/ccache/gcc -g -O0 -I.
&gt; -I/home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.
&gt; 27/src -o mkheader
&gt; /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/
&gt; src/mkheader.c
&gt; /usr/lib64/ccache/gcc -DHAVE_CONFIG_H -I.
&gt; -I/home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.
&gt; 27/src -I..     -Wno-error -O2 -g1 -Wall -Wpointer-arith -Wno-psabi
&gt; -fvisibility=hidden -MT gen-posix-lock-obj.o -MD -MP -MF
&gt; .deps/gen-posix-lock-obj.Tpo -c -o gen-posix-lock-obj.o
&gt; /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/
&gt; src/gen-posix-lock-obj.c
&gt; gawk: fatal: cannot use gawk builtin `namespace&apos; as variable name
&gt; gawk:
&gt; /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/
&gt; src/mkerrnos.awk:86: warning: regexp escape sequence `\#&apos; is not a known
&gt; regexp operator
&gt; gawk:
&gt; /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/
&gt; src/mkerrcodes1.awk:84: warning: regexp escape sequence `\#&apos; is not a known
&gt; regexp operator
&gt; gawk:
&gt; /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/
&gt; src/mkstrtable.awk:113: warning: regexp escape sequence `\#&apos; is not a known
&gt; regexp operator
&gt; cat
&gt; /home/emilio/src/WebKit/WebKitBuild/DependenciesGTK/Source/libgpg-error-1.27/
&gt; src/gpg-error.def.in &gt;_gpg-error.def.h
&gt; make[2]: *** [Makefile:1324: errnos-sym.h] Error 2
&gt; 
&gt; 
&gt; Looks like that&apos;s fixed upstream per https://dev.gnupg.org/T4459, is there
&gt; any way to update that?


If there is a small patch that fixes the build error, it can be applied on the JHBuild for the affected recipe.

On the other hand if for fixing the build error, upgrading the version of the package is required on the JHBuild that can be done as well, but that is tricky because it may require upgrading dependencies that depend on this one. It may require updating hundred of layout test results and this can only be done from Debian 10 because it what the bots run and the expectations have to match on the bots..... so, its tricky.


On the other hand, why are you trying to use the internal JHBuild? Fedora 31 should have already even newer version of all the required dependencies to build WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1578618</commentid>
    <comment_count>4</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2019-10-10 06:23:43 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #3)
&gt; On the other hand, why are you trying to use the internal JHBuild? Fedora 31
&gt; should have already even newer version of all the required dependencies to
&gt; build WebKit.

/me was just following instructions[1]; do they need to get updated?

[1]: https://trac.webkit.org/wiki/BuildingGtk#BuildingWebKitGTKfromgit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1578629</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-10-10 07:07:43 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #1)
&gt; From a debian/ubuntu based perspective that patch is acceptable.
&gt; 
&gt; Not sure about arch. CC&apos;ing adrian.

The suggested patch would be fine for Arch as well. I think that
I haven&apos;t hit this before because here I am using a Python 2
virtualenv for WebKit development. I&apos;ll give it a try without.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1578631</commentid>
    <comment_count>6</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-10-10 07:10:53 -0700</bug_when>
    <thetext>(In reply to Emilio Cobos Álvarez (:emilio) from comment #4)
&gt; (In reply to Carlos Alberto Lopez Perez from comment #3)
&gt; &gt; On the other hand, why are you trying to use the internal JHBuild? Fedora 31
&gt; &gt; should have already even newer version of all the required dependencies to
&gt; &gt; build WebKit.
&gt; 
&gt; /me was just following instructions[1]; do they need to get updated?
&gt; 
&gt; [1]: https://trac.webkit.org/wiki/BuildingGtk#BuildingWebKitGTKfromgit

Using the JHBuild is recommended if you are going to run tests locally
and want to have the same environment (library versions, for example)
that the build bots use — which is a good idea in general, so that is
why it&apos;s recommended in the instructions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1578659</commentid>
    <comment_count>7</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-10-10 08:29:46 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #5)
&gt; (In reply to Carlos Alberto Lopez Perez from comment #1)
&gt; &gt; From a debian/ubuntu based perspective that patch is acceptable.
&gt; &gt; 
&gt; &gt; Not sure about arch. CC&apos;ing adrian.
&gt; 
&gt; The suggested patch would be fine for Arch as well. I think that
&gt; I haven&apos;t hit this before because here I am using a Python 2
&gt; virtualenv for WebKit development. I&apos;ll give it a try without.

Without using the virtualenv, changing the shebangs to use “python2”,
and installing the “python2” package from the Arch repository, both
running “update-webkitgtk-flatpak” and “update-webkitgtk-libs” seem
to work fine here. Probably I will hit the gpg-error build issue in
a moment (the “update-webkitgtk-libs” script is still running).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1579538</commentid>
    <comment_count>8</comment_count>
      <attachid>380854</attachid>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2019-10-13 14:59:22 -0700</bug_when>
    <thetext>Created attachment 380854
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1581052</commentid>
    <comment_count>9</comment_count>
      <attachid>380854</attachid>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2019-10-17 10:57:51 -0700</bug_when>
    <thetext>Comment on attachment 380854
Patch

I tested days ago and worked well. We&apos;ll need to make this (and the
rest of Python scripts) run on 3.x at some point, but for now this
will do.

Thanks for the patch!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1581078</commentid>
    <comment_count>10</comment_count>
      <attachid>380854</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-10-17 11:49:54 -0700</bug_when>
    <thetext>Comment on attachment 380854
Patch

Clearing flags on attachment: 380854

Committed r251250: &lt;https://trac.webkit.org/changeset/251250&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1581079</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-10-17 11:49:55 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>380854</attachid>
            <date>2019-10-13 14:59:22 -0700</date>
            <delta_ts>2019-10-17 11:49:54 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-202790-20191013235921.patch</filename>
            <type>text/plain</type>
            <size>1158</size>
            <attacher name="Emilio Cobos Álvarez (:emilio)">emilio</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjUwOTYyCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggMTViMzEzZmFlZWRmMzJkZGZiMmRiMjgwMDkwYTMwOWE5
Nzc5Nzg0Yy4uNWM1NDExYjU1Nzc4N2IzNjYyN2I4NzBiZTVlNmNiYWFmYTBmODM2ZCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1
IEBACisyMDE5LTEwLTExICBFbWlsaW8gQ29ib3Mgw4FsdmFyZXogIDxlbWlsaW9AY3Jpc2FsLmlv
PgorCisgICAgICAgIFtHVEtdIEV4cGxpY2l0bHkgdXNlIFB5dGhvbiAyIGluIGpoYnVpbGQtd3Jh
cHBlcgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjAy
NzkwCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgamhi
dWlsZHV0aWxzLnB5IHJlcXVpcmVzIFB5dGhvbiAyIGZvciB0aGUgbW9tZW50LCBzbyB1c2luZyBq
dXN0CisgICAgICAgIGBweXRob25gIGZhaWxzIGluIGRpc3Ryb3Mgd2hlcmUgUHl0aG9uIDMgaXMg
dGhlIGRlZmF1bHQuCisKKyAgICAgICAgKiBqaGJ1aWxkL2poYnVpbGQtd3JhcHBlcjoKKwogMjAx
OS0xMC0wOSAgUnVzc2VsbCBFcHN0ZWluICA8cmVwc3RlaW5AYXBwbGUuY29tPgogCiAgICAgICAg
IFVucmV2aWV3ZWQsIHJvbGxpbmcgb3V0IHIyNTA5MzAuCmRpZmYgLS1naXQgYS9Ub29scy9qaGJ1
aWxkL2poYnVpbGQtd3JhcHBlciBiL1Rvb2xzL2poYnVpbGQvamhidWlsZC13cmFwcGVyCmluZGV4
IGVkMWJlODgxOTFiMDI5MWY3MDhjZDA4NjQ2MDRjMGViM2NlZDk3YmEuLjAyNjE2ZGI0Y2UxYTdi
OTVkNzY1ZDY5NDExOGNiZWVlZDg1ODY2ZjEgMTAwNzU1Ci0tLSBhL1Rvb2xzL2poYnVpbGQvamhi
dWlsZC13cmFwcGVyCisrKyBiL1Rvb2xzL2poYnVpbGQvamhidWlsZC13cmFwcGVyCkBAIC0xLDQg
KzEsNCBAQAotIyEvdXNyL2Jpbi9lbnYgcHl0aG9uCisjIS91c3IvYmluL2VudiBweXRob24yCiAj
IENvcHlyaWdodCAoQykgMjAxMSBJZ2FsaWEgUy5MLgogIyBDb3B5cmlnaHQgKEMpIDIwMTIgR3Vz
dGF2byBOb3JvbmhhIFNpbHZhIDxnbnNAZ25vbWUub3JnPgogIyBDb3B5cmlnaHQgKEMpIDIwMTIg
SW50ZWwgQ29ycG9yYXRpb24K
</data>

          </attachment>
      

    </bug>

</bugzilla>