<?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>195251</bug_id>
          
          <creation_ts>2019-03-02 15:54:55 -0800</creation_ts>
          <short_desc>[GTK] No rule to make target &apos;JavaScriptCore-4.0.gir&apos;</short_desc>
          <delta_ts>2020-02-15 07:15:51 -0800</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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Alberto Garcia">berto</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cedric.bellegarde</cc>
    
    <cc>don.olmstead</cc>
    
    <cc>dpa-webkit</cc>
    
    <cc>ht990332</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1511870</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2019-03-02 15:54:55 -0800</bug_when>
    <thetext>This error happens if you try to build WebKitGTK with make -j1 (I&apos;m using plain cmake, without ninja):

make -f Source/WebKit/CMakeFiles/WebKit2WebExtension-4-gir.dir/build.make Source/WebKit/CMakeFiles/WebKit2WebExtension-4-gir.dir/build
make[3]: Entering directory &apos;/tmp/webkit2gtk-2.22.7/obj-x86_64-linux-gnu&apos;
make[3]: *** No rule to make target &apos;JavaScriptCore-4.0.gir&apos;, needed by &apos;WebKit2-4.0.gir&apos;.  Stop.
make[3]: Leaving directory &apos;/tmp/webkit2gtk-2.22.7/obj-x86_64-linux-gnu&apos;
make[2]: *** [CMakeFiles/Makefile2:1605: Source/WebKit/CMakeFiles/WebKit2WebExtension-4-gir.dir/all] Error 2
make[2]: Leaving directory &apos;/tmp/webkit2gtk-2.22.7/obj-x86_64-linux-gnu&apos;
make[1]: *** [CMakeFiles/Makefile2:203: Source/CMakeFiles/gir.dir/rule] Error 2
make[1]: Leaving directory &apos;/tmp/webkit2gtk-2.22.7/obj-x86_64-linux-gnu&apos;
make: *** [Makefile:215: gir] Error 2

There&apos;s indeed to no rule to generate JavaScriptCore-4.0.gir directly,
but you can do &apos;make JavaScriptCore-4-gir&apos;, so I guess there&apos;s a
wrong/missing rule on the CMake files?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1511879</commentid>
    <comment_count>1</comment_count>
      <attachid>363436</attachid>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2019-03-02 16:28:18 -0800</bug_when>
    <thetext>Created attachment 363436
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1511880</commentid>
    <comment_count>2</comment_count>
      <attachid>363436</attachid>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2019-03-02 16:33:07 -0800</bug_when>
    <thetext>Comment on attachment 363436
Patch

Sorry for the noise, this patch doesn&apos;t fix the build</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1513962</commentid>
    <comment_count>3</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2019-03-08 03:04:28 -0800</bug_when>
    <thetext>This is maybe pure chance, but this reportedly doesn&apos;t happen when using cmake with ninja (although the failure with make was reproduced with 2.22.7 and the success with ninja with 2.23.92, so it can also be due to changes in the cmake files themselves).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1542337</commentid>
    <comment_count>4</comment_count>
    <who name="Дилян Палаузов">dpa-webkit</who>
    <bug_when>2019-06-06 02:50:02 -0700</bug_when>
    <thetext>The workaround is to go in $(top_builddir)/Source/JavaScriptCore and type `make`.  Then go back to $(top_builddir) and type there `make` to complete the build.  This was a problem also with 2.24.1.

I use cmake 3.13.2.  Ninja might get it rigth, if the total order is by chance different.

It looks to me that JavaScriptCore-4.0.gir is a side-product of building something different, e.g. JavaScriptCore, but it cannot be build on its own as target.  I do not understand cmake to help with patches.  Note, that JavaScriptCore-4.0 JavaScriptCore-4.0 and WebKit2WebExtension-4.0 gir and typelib are in $(top_builddir) and not in subdirectories.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1542339</commentid>
    <comment_count>5</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2019-06-06 03:01:04 -0700</bug_when>
    <thetext>(In reply to Дилян Палаузов from comment #4)
&gt; It looks to me that JavaScriptCore-4.0.gir is a side-product of
&gt; building something different

That is correct, and that&apos;s why everything works most of the time.

&gt; e.g. JavaScriptCore, but it cannot be build on its own as target.

There is the JavaScriptCore-4-gir target which creates that file, but
I think there&apos;s a dependency missing (or with the wrong name)
somewhere.

With the patch on comment #1 I tried a quick fix by giving the target
the same name as the file, but that did not fix the build.

I haven&apos;t investigated it properly in order to find the exact solution
and my knowledge of CMake is very basic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1542400</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-06-06 07:32:01 -0700</bug_when>
    <thetext>There&apos;s no spelling error. Source/JavaScriptCore/PlatformGTK.cmake creates ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir and Source/WebKit/PlatformGTK.cmake depends on ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir, which is identical. LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1542403</commentid>
    <comment_count>7</comment_count>
    <who name="Дилян Палаузов">dpa-webkit</who>
    <bug_when>2019-06-06 07:43:20 -0700</bug_when>
    <thetext>Afrer `rm $(top_builddir)/JavaScriptCore-4.0.gir`, `make -C $(top_builddir)/JavaScriptCore-4.0.gir` fails with “make: *** No rule to make target &apos;JavaScriptCore-4.0.gir&apos;.  Stop.”</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1542510</commentid>
    <comment_count>8</comment_count>
    <who name="Дилян Палаузов">dpa-webkit</who>
    <bug_when>2019-06-06 12:03:42 -0700</bug_when>
    <thetext>`make JavaScriptCore-4-gir` does generate JavaScriptCore-4.0.gir.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1619414</commentid>
    <comment_count>9</comment_count>
    <who name="Cédric Bellegarde">cedric.bellegarde</who>
    <bug_when>2020-02-15 07:15:51 -0800</bug_when>
    <thetext>Happening here with last WebKitGTK release in a LXC container.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>363436</attachid>
            <date>2019-03-02 16:28:18 -0800</date>
            <delta_ts>2019-03-02 16:33:07 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>195251.diff</filename>
            <type>text/plain</type>
            <size>1482</size>
            <attacher name="Alberto Garcia">berto</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0NoYW5nZUxvZyBiL0NoYW5nZUxvZwppbmRleCBmZWFlOTYxMWFkZC4uZWFk
ZGZmNDZjMjIgMTAwNjQ0Ci0tLSBhL0NoYW5nZUxvZworKysgYi9DaGFuZ2VMb2cKQEAgLTEsMyAr
MSwxNCBAQAorMjAxOS0wMy0wMiAgQWxiZXJ0byBHYXJjaWEgIDxiZXJ0b0BpZ2FsaWEuY29tPgor
CisgICAgICAgIFtHVEtdIE5vIHJ1bGUgdG8gbWFrZSB0YXJnZXQgJ0phdmFTY3JpcHRDb3JlLTQu
MC5naXInCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQ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Jvc3BlY3Rpb25UYXJnZXRz
ICR7dGFyZ2V0X25hbWV9LWdpcikKKyAgICAgICAgZ2V0X2ZpbGVuYW1lX2NvbXBvbmVudChmaWxl
X25hbWUgJHt0eXBlbGlifSBOQU1FKQorICAgICAgICBzdHJpbmcoUkVHRVggUkVQTEFDRSAiXFwu
dHlwZWxpYiIgIi5naXIiIHRhcmdldF9uYW1lICR7ZmlsZV9uYW1lfSkKKyAgICAgICAgYWRkX2N1
c3RvbV90YXJnZXQoJHt0YXJnZXRfbmFtZX0gQUxMIERFUEVORFMgJHt0eXBlbGlifSkKKyAgICAg
ICAgbGlzdChBUFBFTkQgR09iamVjdEludHJvc3BlY3Rpb25UYXJnZXRzICR7dGFyZ2V0X25hbWV9
KQogICAgICAgICBzZXQoR09iamVjdEludHJvc3BlY3Rpb25UYXJnZXRzICR7R09iamVjdEludHJv
c3BlY3Rpb25UYXJnZXRzfSBQQVJFTlRfU0NPUEUpCiAgICAgZW5kaWYgKCkKIGVuZG1hY3JvKCkK
</data>

          </attachment>
      

    </bug>

</bugzilla>