<?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>49189</bug_id>
          
          <creation_ts>2010-11-08 10:45:31 -0800</creation_ts>
          <short_desc>We should add a build step to comment out or remove the lines unsetting TEMP and TMP in the .bashrc file</short_desc>
          <delta_ts>2010-11-08 12:30:12 -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>WebKit Website</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 7</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="Jessie Berlin">jberlin</reporter>
          <assigned_to name="Jessie Berlin">jberlin</assigned_to>
          <cc>aroben</cc>
    
    <cc>jberlin</cc>
    
    <cc>sfalken</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>306208</commentid>
    <comment_count>0</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2010-11-08 10:45:31 -0800</bug_when>
    <thetext>The default .bashrc file (found at /etc/skel/.bashrc) has the following lines:

# TMP and TEMP are defined in the Windows environment.  Leaving
# them set to the default Windows temporary directory can have
# unexpected consequences.
unset TMP
unset TEMP

This is causing Windows builds to fail due to the changes made in http://trac.webkit.org/changeset/71532, which used %TEMP% and did not expect it to be the empty string.

Even if we roll out that patch, we actually want to pick up the TMP and TEMP paths from Windows (there is no good reason not to and those are the paths that will be used in released builds), so we should add a build step to comment out or remove those lines in the user&apos;s .bashrc file in tools.html.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>306218</commentid>
    <comment_count>1</comment_count>
      <attachid>73252</attachid>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2010-11-08 10:55:54 -0800</bug_when>
    <thetext>Created attachment 73252
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>306226</commentid>
    <comment_count>2</comment_count>
      <attachid>73252</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-11-08 11:09:27 -0800</bug_when>
    <thetext>Comment on attachment 73252
Patch

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

&gt; WebKitSite/building/tools.html:59
&gt; +&lt;p&gt;If you are using a bash shell, comment out or remove the lines from your .bashrc file (found at /home/[username]/.bashrc) that unset TMP and unset TEMP. Those lines would prevent picking up the Windows TMP and TEMP environment variables.&lt;/p&gt;

I think it would be better to be more explicit. Something like:

Remove the following lines from &lt;code&gt;/home/[username]/.bashrc&lt;/code&gt;:
&lt;p class=code&gt;unset TMP
unset TEMP&lt;/p&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>306264</commentid>
    <comment_count>3</comment_count>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2010-11-08 11:57:19 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 73252 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=73252&amp;action=review
&gt; 
&gt; &gt; WebKitSite/building/tools.html:59
&gt; &gt; +&lt;p&gt;If you are using a bash shell, comment out or remove the lines from your .bashrc file (found at /home/[username]/.bashrc) that unset TMP and unset TEMP. Those lines would prevent picking up the Windows TMP and TEMP environment variables.&lt;/p&gt;
&gt; 
&gt; I think it would be better to be more explicit. Something like:
&gt; 
&gt; Remove the following lines from &lt;code&gt;/home/[username]/.bashrc&lt;/code&gt;:
&gt; &lt;p class=code&gt;unset TMP
&gt; unset TEMP&lt;/p&gt;

Changed to:

&lt;p&gt;Remove the following lines from &lt;code&gt;/home/[username]/.bashrc&lt;/code&gt;:
&lt;p class=code&gt;
&lt;div&gt;unset TMP&lt;/div&gt;
&lt;div&gt;unset TEMP&lt;/div&gt;
&lt;/p&gt;
Those lines would prevent picking up the Windows TMP and TEMP environment variables.&lt;/p&gt;

Thanks for the review!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>306287</commentid>
    <comment_count>4</comment_count>
      <attachid>73252</attachid>
    <who name="Jessie Berlin">jberlin</who>
    <bug_when>2010-11-08 12:29:49 -0800</bug_when>
    <thetext>Comment on attachment 73252
Patch

Commited in r71557
http://trac.webkit.org/changeset/71557</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>73252</attachid>
            <date>2010-11-08 10:55:54 -0800</date>
            <delta_ts>2010-11-08 12:29:49 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>addRecommendationToCommentOutUnsetTMPAndTEMPlines.patch</filename>
            <type>text/plain</type>
            <size>1813</size>
            <attacher name="Jessie Berlin">jberlin</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFNpdGUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYktpdFNpdGUvQ2hh
bmdlTG9nCShyZXZpc2lvbiA3MTU0MykKKysrIFdlYktpdFNpdGUvQ2hhbmdlTG9nCSh3b3JraW5n
IGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTAtMTEtMDggIEplc3NpZSBCZXJsaW4gIDxqYmVy
bGluQGFwcGxlLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKwor
ICAgICAgICBXZSBzaG91bGQgYWRkIGEgYnVpbGQgc3RlcCB0byBjb21tZW50IG91dCBvciByZW1v
d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