<?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>144902</bug_id>
          
          <creation_ts>2015-05-11 23:31:33 -0700</creation_ts>
          <short_desc>[GTK][CMake] Make install fails when using ninja and configure is regenerated</short_desc>
          <delta_ts>2017-03-11 10:45:55 -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>528+ (Nightly build)</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>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>kfunk</cc>
    
    <cc>mario</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>mrobinson</cc>
    
    <cc>svillar</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1094087</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2015-05-11 23:31:33 -0700</bug_when>
    <thetext>[6/6] Install the project...
FAILED: cd WebKitBuild/Release &amp;&amp; /usr/bin/cmake -P cmake_install.cmake
-- Install configuration: &quot;Release&quot;
-- Installing: /home/cgarcia/gnome/lib64/pkgconfig/javascriptcoregtk-3.0.pc
-- Installing: /home/cgarcia/gnome/include/webkitgtk-3.0/JavaScriptCore/JavaScript.h
-- Installing: /home/cgarcia/gnome/include/webkitgtk-3.0/JavaScriptCore/JSBase.h
-- Installing: /home/cgarcia/gnome/include/webkitgtk-3.0/JavaScriptCore/JSContextRef.h
-- Installing: /home/cgarcia/gnome/include/webkitgtk-3.0/JavaScriptCore/JSObjectRef.h
-- Installing: /home/cgarcia/gnome/include/webkitgtk-3.0/JavaScriptCore/JSStringRef.h
-- Installing: /home/cgarcia/gnome/include/webkitgtk-3.0/JavaScriptCore/JSValueRef.h
-- Installing: /home/cgarcia/gnome/include/webkitgtk-3.0/JavaScriptCore/WebKitAvailability.h
-- Installing: /home/cgarcia/gnome/share/gir-1.0/JavaScriptCore-3.0.gir
-- Installing: /home/cgarcia/gnome/lib64/girepository-1.0/JavaScriptCore-3.0.typelib
CMake Error at Source/JavaScriptCore/cmake_install.cmake:92 (FILE):
  file INSTALL cannot find
  &quot;WebKitBuild/Release/Source/JavaScriptCore/CMakeFiles/CMakeRelink.dir/libjavascriptcoregtk-3.0.so.0.16.2&quot;.
Call Stack (most recent call first):
  Source/cmake_install.cmake:38 (INCLUDE)
  cmake_install.cmake:37 (INCLUDE)


ninja: build stopped: subcommand failed.
[reply] [-] Comment 21

I&apos;m not even sure this is a WebKit bug, I think it&apos;s something related with the ninja generator of CMake, but I&apos;m not sure either if it happens when not using ninja, though. What I&apos;ve noticed is that it always works after a clean build, and also after incremental builds unless any of the incremental builds changes something in cmake and the configure is run again. 
The problem seems to be that the cmake_install.cmake files are re-generated differently, as if the project was built without the RPATH support and install needed to re-link binaries before copying them. But the project is built with RPATH support, and install should not relink, but just remove the RPATH from the binaries before copying them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1216431</commentid>
    <comment_count>1</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2016-08-02 02:27:47 -0700</bug_when>
    <thetext>I&apos;ve just hit this one</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1216433</commentid>
    <comment_count>2</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2016-08-02 02:29:10 -0700</bug_when>
    <thetext>What I did was an incremental build with a different prefix passed to build-webkit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1249741</commentid>
    <comment_count>3</comment_count>
      <attachid>294354</attachid>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2016-11-10 02:30:25 -0800</bug_when>
    <thetext>Created attachment 294354
Script for installing WebKitGtk+</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1249742</commentid>
    <comment_count>4</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2016-11-10 02:31:49 -0800</bug_when>
    <thetext>After wasting a lot of time every time I wanted to install webkit I decided to simply put all the commands in one script and run it.

I have honestly no idea about CMake machinery so I don&apos;t know how to fix the install but I&apos;m sure that the script will help experts to tackle the existing issues.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>294354</attachid>
            <date>2016-11-10 02:30:25 -0800</date>
            <delta_ts>2016-11-10 02:30:25 -0800</delta_ts>
            <desc>Script for installing WebKitGtk+</desc>
            <filename>install-wk.sh</filename>
            <type>application/octet-stream</type>
            <size>1234</size>
            <attacher name="Sergio Villar Senin">svillar</attacher>
            
              <data encoding="base64">IyEvYmluL3NoCmNkICRXRUJLSVRfUk9PVF9ESVQKc2VkIC1pICdzL1NvdXJjZVwvSmF2YVNjcmlw
dENvcmVcL0NNYWtlRmlsZXNcL0NNYWtlUmVsaW5rXC5kaXIvbGliL2cnIFdlYktpdEJ1aWxkL1Jl
bGVhc2UvU291cmNlL0phdmFTY3JpcHRDb3JlL2NtYWtlX2luc3RhbGwuY21ha2UKc2VkIC1pICdz
L0phdmFTY3JpcHRDb3JlXC9zaGVsbFwvQ01ha2VGaWxlc1wvQ01ha2VSZWxpbmtcLmRpci9XZWJD
b3JlXC9DTWFrZUZpbGVzXC9XZWJDb3JlXC5kaXJc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