<?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>211144</bug_id>
          
          <creation_ts>2020-04-28 13:42:02 -0700</creation_ts>
          <short_desc>[GTK] update-webkitgtk-libs: TypeError: cannot use a string pattern on a bytes-like object</short_desc>
          <delta_ts>2020-04-28 17:26:42 -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>PC</rep_platform>
          <op_sys>Linux</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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Lauro Moura">lmoura</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>lmoura</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1646660</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-04-28 13:42:02 -0700</bug_when>
    <thetext>Looks like this script was written for python2 (in 2018!) and then never updated:

$ update-webkitgtk-libs 
Adding repo webkit-sdk
Updating Flatpak Debug environment
Installing from webkit-sdk org.webkit.Platform x86_64 0.2
Looking for matches…


        ID                         Branch Op Remote     Download
 1. [✓] org.webkit.Platform.Locale 0.2    i  webkit-sdk  16.9 kB / 1.3 GB
 2. [✓] org.webkit.Platform        0.2    i  webkit-sdk 367.1 MB / 1.2 GB

Installation complete.
Installing from webkit-sdk org.webkit.Sdk x86_64 0.2
Looking for matches…


        ID                      Branch   Op   Remote      Download
 1. [✓] org.webkit.Sdk.Locale   0.2      i    webkit-sdk   16.9 kB / 1.4 GB
 2. [✓] org.webkit.Sdk          0.2      i    webkit-sdk  489.9 MB / 2.3 GB

Installation complete.
Installing from flathub org.freedesktop.Platform.GL.default x86_64 19.08
Looking for matches…


        ID                                  Branch Op Remote  Download
 1. [✓] org.freedesktop.Platform.GL.default 19.08  i  flathub 94.4 MB / 94.9 MB

Installation complete.
Installing from webkit-sdk org.webkit.Sdk.Debug x86_64 0.2
Looking for matches…


        ID                     Branch   Op   Remote       Download
 1. [✓] org.webkit.Sdk.Debug   0.2      i    webkit-sdk   2.3 GB / 3.7 GB

Installation complete.
bwrap: Can&apos;t find source path /run/user/b&apos;1000&apos;/doc: No such file or directory
Traceback (most recent call last):
  File &quot;Tools/Scripts/update-webkit-flatpak&quot;, line 28, in &lt;module&gt;
    WebkitFlatpak.load_from_args([&quot;--update&quot;] + sys.argv[1:]).run()
  File &quot;./Tools/flatpak/flatpakutils.py&quot;, line 805, in run
    return self.main()
  File &quot;./Tools/flatpak/flatpakutils.py&quot;, line 797, in main
    self.setup_icecc(&quot;gcc&quot;)
  File &quot;./Tools/flatpak/flatpakutils.py&quot;, line 826, in setup_icecc
    icc_version_filename, = re.findall(r&apos;.*creating (.*)&apos;, tmpfile.read())
  File &quot;/usr/lib64/python3.8/re.py&quot;, line 239, in findall
    return _compile(pattern, flags).findall(string)
TypeError: cannot use a string pattern on a bytes-like object
Died at /home/mcatanzaro/Projects/WebKit/Tools/Scripts/update-webkitgtk-libs line 28.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1646715</commentid>
    <comment_count>1</comment_count>
      <attachid>397893</attachid>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-04-28 15:52:21 -0700</bug_when>
    <thetext>Created attachment 397893
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1646729</commentid>
    <comment_count>2</comment_count>
      <attachid>397893</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-04-28 16:13:30 -0700</bug_when>
    <thetext>Comment on attachment 397893
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=397893&amp;action=review

LGTM, thanks.

&gt; Tools/ChangeLog:12
&gt; +        Also check if the doc directory exists before passing it to bwrap.
&gt; +        Should avoid errors like these:
&gt; +
&gt; +        bwrap: Can&apos;t find source path /run/user/1000/doc: No such file or directory

Hm, well I actually do have /run/user/1000/doc. That error must have been caused because the script was not mounting /run/user/1000/doc, it was mounting /run/user/b&apos;1000&apos;/doc. Oops. :) I&apos;ll let you decide whether it&apos;s still worth checking if that exists.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1646737</commentid>
    <comment_count>3</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-04-28 16:26:53 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #2)
&gt; Comment on attachment 397893 [details]
&gt; Hm, well I actually do have /run/user/1000/doc. That error must have been
&gt; caused because the script was not mounting /run/user/1000/doc, it was
&gt; mounting /run/user/b&apos;1000&apos;/doc. Oops. :) I&apos;ll let you decide whether it&apos;s
&gt; still worth checking if that exists.

Yeah, this is an issue that is happening in the WPE Debug test bot (and can happen if the dir does not exist).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1646738</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-04-28 16:27:35 -0700</bug_when>
    <thetext>/Volumes/Data/worker/Commit-Queue/build/Tools/ChangeLog neither lists a valid reviewer nor contains the string &quot;Unreviewed&quot; or &quot;Rubber stamp&quot; (case insensitive).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1646776</commentid>
    <comment_count>5</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-04-28 17:26:42 -0700</bug_when>
    <thetext>Committed r260859: &lt;https://trac.webkit.org/changeset/260859&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>397893</attachid>
            <date>2020-04-28 15:52:21 -0700</date>
            <delta_ts>2020-04-28 16:27:35 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-211144-20200428195219.patch</filename>
            <type>text/plain</type>
            <size>2139</size>
            <attacher name="Lauro Moura">lmoura</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjYwODQ5CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggZDYxNWIyYWY1YjcyMWEzYTNiYjg3MGNiNjUwZjBiYjdj
MTQ3ZTNkZC4uNTJkNWM1NTQwYjY4MWIwMGVmZGEwOGY4NzUxYmI4NzkxYWI1MDI2MyAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE5
IEBACisyMDIwLTA0LTI4ICBMYXVybyBNb3VyYSAgPGxtb3VyYUBpZ2FsaWEuY29tPgorCisgICAg
ICAgIFtHVEtdIHVwZGF0ZS13ZWJraXRndGstbGliczogVHlwZUVycm9yOiBjYW5ub3QgdXNlIGEg
c3RyaW5nIHBhdHRlcm4gb24gYSBieXRlcy1saWtlIG9iamVjdAorICAgICAgICBodHRwczovL2J1
Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjExMTQ0CisKKyAgICAgICAgVW5jb25kaXRp
b25hbGx5IGRlY29kZSB0aGUgb3V0cHV0IGZyb20gdGhlICdpZCcgY29tbWFuZCB0byBtYWtlIGl0
CisgICAgICAgIHdvcmsgd2l0aCBweXRob24zLgorCisgICAgICAgIEFsc28gY2hlY2sgaWYgdGhl
IGRvYyBk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oZWNrX291dHB1dCgoImlkIiwgIi11IiksIHN0ZGVycj1kZXZudWxsKS5zdHJpcCgp
Ci0gICAgICAgICAgICAgICAgICAgIGZsYXRwYWtfY29tbWFuZC5hcHBlbmQoIi0tYmluZC1tb3Vu
dD0vcnVuL3VzZXIve3VpZH0vZG9jPS9ydW4vdXNlci97dWlkfS9kb2MiLmZvcm1hdCh1aWQ9dWlk
KSkKKyAgICAgICAgICAgICAgICAgICAgdWlkID0gc3VicHJvY2Vzcy5jaGVja19vdXRwdXQoKCJp
ZCIsICItdSIpLCBzdGRlcnI9ZGV2bnVsbCkuc3RyaXAoKS5kZWNvZGUoKQorICAgICAgICAgICAg
ICAgICAgICB1aWRfZG9jX3BhdGggPSAnL3J1bi91c2VyL3t1aWR9L2RvYycuZm9ybWF0KHVpZD11
aWQpCisgICAgICAgICAgICAgICAgICAgIGlmIG9zLnBhdGguZXhpc3RzKHVpZF9kb2NfcGF0aCk6
CisgICAgICAgICAgICAgICAgICAgICAgICBmbGF0cGFrX2NvbW1hbmQuYXBwZW5kKCItLWJpbmQt
bW91bnQ9e3VpZF9kb2NfcGF0aH09e3VpZF9kb2NfcGF0aH0iLmZvcm1hdCh1aWRfZG9jX3BhdGg9
dWlkX2RvY19wYXRoKSkKKyAgICAgICAgICAgICAgICAgICAgZWxzZToKKyAgICAgICAgICAgICAg
ICAgICAgICAgIF9sb2cuZGVidWcoIkNhbid0IGZpbmQgdXNlciBkb2N1bWVudCBwYXRoIGF0ICd7
dWlkX2RvY19wYXRofScuIE5vdCBtb3VudGluZyBpdC4iLmZvcm1hdCh1aWRfZG9jX3BhdGg9dWlk
X2RvY19wYXRoKSkKICAgICAgICAgICAgIGV4Y2VwdCBzdWJwcm9jZXNzLkNhbGxlZFByb2Nlc3NF
cnJvcjoKICAgICAgICAgICAgICAgICBwYXNzCiAK
</data>
<flag name="review"
          id="413259"
          type_id="1"
          status="+"
          setter="mcatanzaro"
    />
    <flag name="commit-queue"
          id="413260"
          type_id="3"
          status="-"
          setter="ews-feeder"
    />
          </attachment>
      

    </bug>

</bugzilla>