<?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>146583</bug_id>
          
          <creation_ts>2015-07-03 02:55:49 -0700</creation_ts>
          <short_desc>[GTK] Can&apos;t build with USE_LIBHYPHEN=OFF</short_desc>
          <delta_ts>2015-09-14 10:56:18 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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 Pozuelo Monfort">pochu27</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mcatanzaro</cc>
    
    <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1106666</commentid>
    <comment_count>0</comment_count>
    <who name="Emilio Pozuelo Monfort">pochu27</who>
    <bug_when>2015-07-03 02:55:49 -0700</bug_when>
    <thetext>[GTK] Can&apos;t build with USE_LIBHYPHEN=OFF</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1106667</commentid>
    <comment_count>1</comment_count>
      <attachid>256089</attachid>
    <who name="Emilio Pozuelo Monfort">pochu27</who>
    <bug_when>2015-07-03 02:58:46 -0700</bug_when>
    <thetext>Created attachment 256089
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1106668</commentid>
    <comment_count>2</comment_count>
    <who name="Emilio Pozuelo Monfort">pochu27</who>
    <bug_when>2015-07-03 03:00:32 -0700</bug_when>
    <thetext>Building with -DUSE_LIBHYPHEN=OFF I get:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
HYPHEN_LIBRARIES (ADVANCED)
    linked by target &quot;WebCore&quot; in directory /home/emilio/src/WebKit/Source/WebCore
    linked by target &quot;WebCorePlatformGTK&quot; in directory /home/emilio/src/WebKit/Source/WebCore
    linked by target &quot;WebCorePlatformGTK2&quot; in directory /home/emilio/src/WebKit/Source/WebCore

The attached patch fixes it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1106695</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2015-07-03 07:30:51 -0700</bug_when>
    <thetext>This is strange. If USE_LIBHYPHEN is off, find_package(Hyphen) shouldn&apos;t be executed [1]. I&apos;m not sure why the HYPHEN_LIBRARIES would be set to NOTFOUND if it wasn&apos;t executed.

1. See line 429 in Source/cmake/OptionsGTK.cmake</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1106716</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-07-03 08:48:43 -0700</bug_when>
    <thetext>I can&apos;t reproduce this bug. Emilio, do you get the same issue with -DENABLE_CREDENTIAL_STORAGE=OFF or -DENABLE_GEOLOCATION=OFF? All work fine for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1107038</commentid>
    <comment_count>5</comment_count>
    <who name="Emilio Pozuelo Monfort">pochu27</who>
    <bug_when>2015-07-06 01:04:40 -0700</bug_when>
    <thetext>I have a dirty tree and a build going on. I&apos;ll do some more checking once that&apos;s over and report bug. I&apos;ll also install libhyphen and try to disable it (which is what you&apos;re doing I guess, whereas I don&apos;t have libhyphen installed).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1107055</commentid>
    <comment_count>6</comment_count>
    <who name="Emilio Pozuelo Monfort">pochu27</who>
    <bug_when>2015-07-06 01:45:59 -0700</bug_when>
    <thetext>Ok, I now what happened:

I don&apos;t have libhyphen-dev installed. So a first build with something like:

$ Tools/Scripts/build-webkit --gtk --cmakeargs=&quot;-DENABLE_WAYLAND_TARGET=ON -DENABLE_GLES2=ON -DENABLE_ACCELERATED_2D_CANVAS=OFF -DENABLE_MEDIA_STREAM=OFF&quot; --makeargs=&quot;-j5&quot;

failed, because libhyphen wasn&apos;t found but it wasn&apos;t explicitly disabled. A subsequent:

$ Tools/Scripts/build-webkit --gtk --cmakeargs=&quot;-DENABLE_WAYLAND_TARGET=ON -DENABLE_GLES2=ON -DENABLE_ACCELERATED_2D_CANVAS=OFF -DENABLE_MEDIA_STREAM=OFF  -DUSE_LIBHYPHEN=OFF&quot; --makeargs=&quot;-j5&quot;

failed again, because apparently one needs to remove the build dir for new configure-time flags to take effect (or maybe there&apos;s a flag to force it). Anyway, that&apos;s what confused me.

I have verified that things work fine after something like `rm -rf WebKitBuild/Release&apos;, so I&apos;m closing this bug. Sorry for the trouble.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1107088</commentid>
    <comment_count>7</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2015-07-06 07:14:43 -0700</bug_when>
    <thetext>(In reply to comment #6)

&gt; failed again, because apparently one needs to remove the build dir for new
&gt; configure-time flags to take effect (or maybe there&apos;s a flag to force it).
&gt; Anyway, that&apos;s what confused me.


I&apos;m really shouldn&apos;t need to remove the build directory between invocations. That said, I think that if you find yourself needing to do this, you can simply remove the CMakeCache.txt file and not have to build absolutely everything again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1125632</commentid>
    <comment_count>8</comment_count>
      <attachid>256089</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-09-14 10:56:18 -0700</bug_when>
    <thetext>Comment on attachment 256089
Patch

Cleared review? from attachment 256089 so that this bug does not appear in http://webkit.org/pending-review.  If you would like this patch reviewed, please attach it to a new bug (or re-open this bug before marking it for review again).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>256089</attachid>
            <date>2015-07-03 02:58:46 -0700</date>
            <delta_ts>2015-09-14 10:56:18 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-146583-20150703115751.patch</filename>
            <type>text/plain</type>
            <size>1568</size>
            <attacher name="Emilio Pozuelo Monfort">pochu27</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTg2MTEzCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggNmY2YjEwYTU1ZTBlYWE4
ODQ4YjQ0NDdlM2NmYTIzM2U4MTY4MzA3YS4uZTM0YjQxZGMzMDQ1NDI0NTUxZGM2MmMxZTlhNDk2
ODZhYWY1ODM5NSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE0IEBACisyMDE1LTA3LTAzICBFbWls
aW8gUG96dWVsbyBNb25mb3J0ICA8ZW1pbGlvLnBvenVlbG9AY29sbGFib3JhLmNvLnVrPgorCisg
ICAgICAgIFtHVEtdIENhbid0IGJ1aWxkIHdpdGggVVNFX0xJQkhZUEhFTj1PRkYKKyAgICAgICAg
aHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE0NjU4MworCisgICAgICAg
IFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEZpeCBidWlsZCB3aXRob3V0
IGxpYmh5cGhlbiBzdXBwb3J0LgorCisgICAgICAgICogUGxhdGZvcm1HVEsuY21ha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