Bug 27757

Summary: [commit+] update-webkit-auxiliary-libs, update-webkit-support-libs cause Perl warnings about functions tmpnam and tmpfile
Product: WebKit Reporter: Daniel Bates <dbates>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, eric
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Reduction
none
Patch with updated ChangeLog none

Daniel Bates
Reported 2009-07-27 23:28:47 PDT
Perl complains about the functions tmpfile and tmpnam since they are defined in both File::Temp and POSIX. Script that run Perl with warnings enabled (-w flag) show these warnings, such as update-webkit-auxiliary-libs and update-webkit-support-libs.
Attachments
Patch (1.54 KB, patch)
2009-07-27 23:31 PDT, Daniel Bates
no flags
Reduction (478 bytes, text/plain)
2009-07-27 23:45 PDT, Daniel Bates
no flags
Patch with updated ChangeLog (1.98 KB, patch)
2009-07-28 10:56 PDT, Daniel Bates
no flags
Daniel Bates
Comment 1 2009-07-27 23:31:40 PDT
Daniel Bates
Comment 2 2009-07-27 23:45:21 PDT
Created attachment 33605 [details] Reduction A simple example. When you run this script, say: perl reduction.pl You should see the following warnings: Subroutine main::tmpfile redefined at /System/Library/Perl/5.8.8/Exporter.pm line 65. at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/POSIX.pm line 19 Subroutine main::tmpnam redefined at /System/Library/Perl/5.8.8/Exporter.pm line 65. at /System/Library/Perl/5.8.8/darwin-thread-multi-2level/POSIX.pm line 19
Eric Seidel (no email)
Comment 3 2009-07-28 10:37:25 PDT
Comment on attachment 33603 [details] Patch perldoc -f use says: If you do not want to call the package's "import" method (for instance, to stop your namespace from being altered), explic- itly supply the empty list: use Module (); That is exactly equivalent to BEGIN { require Module } Looks fine. You might want to add more information to the ChangeLog about why this stops the warning.
Daniel Bates
Comment 4 2009-07-28 10:56:01 PDT
Created attachment 33653 [details] Patch with updated ChangeLog Added additional information as per Eric's suggestion.
Daniel Bates
Comment 5 2009-07-28 23:31:54 PDT
Eric, I made the change. Can you land this?
David Levin
Comment 6 2009-07-29 00:39:02 PDT
Comment on attachment 33603 [details] Patch Cleared r+ on obsolete patch to move this out of the commit queue.
Adam Barth
Comment 7 2009-07-31 23:56:50 PDT
Comment on attachment 33653 [details] Patch with updated ChangeLog Clearing review flag on attachment: 33653 Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebKitTools/ChangeLog M WebKitTools/Scripts/update-webkit-auxiliary-libs M WebKitTools/Scripts/update-webkit-support-libs Committed r46664 M WebKitTools/ChangeLog M WebKitTools/Scripts/update-webkit-auxiliary-libs M WebKitTools/Scripts/update-webkit-support-libs r46664 = 13ac7fcfe92ad91ecbaedb4adecfd2aa9c133cee (trunk) No changes between current HEAD and refs/remotes/trunk Resetting to the latest refs/remotes/trunk http://trac.webkit.org/changeset/46664
Adam Barth
Comment 8 2009-07-31 23:56:54 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.