git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Incremental cvsimports

From
Jeff King <peff@peff.net>
Date
May 24, 2006, 13:58 UTC
Message-ID
<20060524135828.GA23934@coredump.intra.peff.net>
In-Reply-To
<93c3eada0605240647i48db0588ja343e348f5feb08e@mail.gmail.com>
On Wed, May 24, 2006 at 11:17:32PM +0930, Geoff Russell wrote:
Show 6 quoted lines
> All 3 work.  But if I add a second tag before the ':errno_h", then I
> get an error.
> 
> The "use" line that makes git-cvsimport compile for me is:
> 
>        use POSIX qw(strftime dup2 ENOENT);

Odd. It's either a bug with importing tags in older versions, or there's some deep perl voodoo that I don't understand (either way, it is "fixed" in more recent versions). Importing ENOENT directly is reasonable.

Junio, can you apply the following fix?
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index af331d9..76f6246 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -23,7 +23,7 @@ use File::Basename qw(basename dirname);
 use Time::Local;
 use IO::Socket;
 use IO::Pipe;
-use POSIX qw(strftime dup2 :errno_h);
+use POSIX qw(strftime dup2 ENOENT);
 use IPC::Open2;
 
 $SIG{'PIPE'}="IGNORE";
Previous: Geoff RussellNext: Junio C Hamano
Message 9 of 10 in “Incremental cvsimports”
  1. Geoff RussellMay 24, 2006
  2. Martin LanghoffMay 24, 2006
  3. Martin LanghoffMay 24, 2006
  4. Geoff RussellMay 24, 2006
  5. Jeff KingMay 24, 2006
  6. Geoff RussellMay 24, 2006
  7. Jeff KingMay 24, 2006
  8. Geoff RussellMay 24, 2006
  9. Jeff KingMay 24, 2006
  10. Junio C HamanoMay 24, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.