<?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>127217</bug_id>
          
          <creation_ts>2014-01-18 06:44:21 -0800</creation_ts>
          <short_desc>Tools/Scripts/test-webkitperl fails: &apos;tempdir&apos; can&apos;t be called as a method</short_desc>
          <delta_ts>2014-01-18 15:58:24 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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="Alberto Garcia">berto</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dbates</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>969430</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-01-18 06:44:21 -0800</bug_when>
    <thetext>[...]
Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffHeader.pl ................................... ok
Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl ............................ &apos;tempdir&apos; can&apos;t be called as a method at Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl line 120.
Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl ............................ Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
Tools/Scripts/webkitperl/VCSUtils_unittest/parseFirstEOL.pl ..................................... ok
[...]

That&apos;s because we&apos;re calling File::Temp-&gt;tempdir() but that&apos;s not supporte by the API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>969431</commentid>
    <comment_count>1</comment_count>
      <attachid>221544</attachid>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-01-18 06:46:03 -0800</bug_when>
    <thetext>Created attachment 221544
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>969433</commentid>
    <comment_count>2</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-01-18 06:58:25 -0800</bug_when>
    <thetext>This used to work in earlier Perl versions (although it was undocumented) but not anymore:

https://github.com/Perl-Toolchain-Gang/File-Temp/commit/c8920b2161ab6900a09e02b9410e0e4c3d74f565</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>969494</commentid>
    <comment_count>3</comment_count>
      <attachid>221544</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2014-01-18 11:54:38 -0800</bug_when>
    <thetext>Comment on attachment 221544
Patch

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

Are there any other call sites that use the bad syntax?

&gt; Tools/ChangeLog:8
&gt; +        Call the tempdir() function using the proper syntax.

Although you document the commit that made the old syntax invalid, you may want to consider adding a remark that explains that we were using an undocumented calling convention and that this convention has been explicitly made invalid following &lt;https://github.com/Perl-Toolchain-Gang/File-Temp/commit/c8920b2161ab6900a09e02b9410e0e4c3d74f565&gt;. It would be great if we also documented the version of Perl this change affected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>969550</commentid>
    <comment_count>4</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-01-18 15:49:09 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Although you document the commit that made the old syntax invalid,
&gt; you may want to consider adding a remark that explains that we were
&gt; using an undocumented calling convention and that this convention
&gt; has been explicitly made invalid following
&gt; &lt;https://github.com/Perl-Toolchain-Gang/File-Temp/commit/c8920b2161ab6900a09e02b9410e0e4c3d74f565&gt;. It
&gt; would be great if we also documented the version of Perl this change
&gt; affected.

Sure, I&apos;ll do that. The Perl version is 5.18.0, which included
File::Temp v0.23

http://perldoc.perl.org/perl5180delta.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>969551</commentid>
    <comment_count>5</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-01-18 15:55:50 -0800</bug_when>
    <thetext>Committed r162283: &lt;http://trac.webkit.org/changeset/162283&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>969552</commentid>
    <comment_count>6</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2014-01-18 15:58:24 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 221544 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=221544&amp;action=review
&gt; 
&gt; Are there any other call sites that use the bad syntax?

No, that was the only one.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>221544</attachid>
            <date>2014-01-18 06:46:03 -0800</date>
            <delta_ts>2014-01-18 11:54:38 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>127217.diff</filename>
            <type>text/plain</type>
            <size>1515</size>
            <attacher name="Alberto Garcia">berto</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBiL1Rvb2xzL0NoYW5nZUxvZwppbmRleCAyNjNm
ZTc4Li5lZTRlZTljIDEwMDY0NAotLS0gYS9Ub29scy9DaGFuZ2VMb2cKKysrIGIvVG9vbHMvQ2hh
bmdlTG9nCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTQtMDEtMTggIEFsYmVydG8gR2FyY2lhICA8YmVy
dG9AaWdhbGlhLmNvbT4KKworICAgICAgICBUb29scy9TY3Jpc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MTcsNyBAQCBNT0RVTEVTID0gSmF2YVNjcmlwdENvcmUgSmF2
YVNjcmlwdEdsdWUgV2ViQ29yZSBXZWJLaXQgV2ViS2l0VG9vbHMKIGFsbDoKIEVPRgogCi1teSAk
bW9ja0RpciA9IEZpbGU6OlRlbXAtPnRlbXBkaXIoInBhcnNlRGlmZlhYWFgiLCBDTEVBTlVQID0+
IDEpOworbXkgJG1vY2tEaXIgPSBGaWxlOjpUZW1wOjp0ZW1wZGlyKCJwYXJzZURpZmZYWFhYIiwg
Q0xFQU5VUCA9PiAxKTsKIHdyaXRlVG9GaWxlKEZpbGU6OlNwZWMtPmNhdGZpbGUoJG1vY2tEaXIs
ICJNYWtlZmlsZVdpdGhVbml4RU9MIiksICRNYWtlZmlsZUNvbnRlbnRzKTsKIHdyaXRlVG9GaWxl
KEZpbGU6OlNwZWMtPmNhdGZpbGUoJG1vY2tEaXIsICJNYWtlZmlsZVdpdGhXaW5kb3dzRU9MIiks
IHRvV2luZG93c0xpbmVFbmRpbmdzKCRNYWtlZmlsZUNvbnRlbnRzKSk7CiB3cml0ZVRvRmlsZShG
aWxlOjpTcGVjLT5jYXRmaWxlKCRtb2NrRGlyLCAiTWFrZWZpbGVXaXRoTWFjRU9MIiksIHRvTWFj
TGluZUVuZGluZ3MoJE1ha2VmaWxlQ29udGVudHMpKTsK
</data>
<flag name="review"
          id="245479"
          type_id="1"
          status="+"
          setter="dbates"
    />
          </attachment>
      

    </bug>

</bugzilla>