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

Re: [PATCH 1/3] Fix probing for already installed Error.pm

From
Junio C Hamano <junkio@cox.net>
Date
Jun 30, 2006, 07:28 UTC
Message-ID
<7vfyhnksqf.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060630050923.701.37665.stgit@dv.roinet.com>
Pavel Roskin <proski@gnu.org> writes:
Show 13 quoted lines
> diff --git a/perl/Makefile.PL b/perl/Makefile.PL
> index d401a66..b3fbb73 100644
> --- a/perl/Makefile.PL
> +++ b/perl/Makefile.PL
> @@ -12,7 +12,7 @@ my %pm = ('Git.pm' => '$(INST_LIBDIR)/Gi
>  
>  # We come with our own bundled Error.pm. It's not in the set of default
>  # Perl modules so install it if it's not available on the system yet.
> -eval { require 'Error' };
> +eval { require Error };
>  if ($@) {
>  	$pm{'Error.pm'} = '$(INST_LIBDIR)/Error.pm';
>  }

The syntax updates is correct, but this is still wrong, I am afraid.

It is trying to see if we need to install the Error.pm we ship just in case the system does not have Error.pm available. But this script is run in perl/ directory where we have that private copy of Error.pm, so "require Error" always succeeds, eh, at least after you fixed the above syntax error X-<.

Previous: Pavel RoskinNext: Junio C Hamano
Message 4 of 6 in “Fix probing for already installed Error.pm”
  1. 1/3 Fix probing for already installed Error.pmPavel Roskin, Jun 30, 2006
  2. 2/3 Delete manuals if compiling without docsPavel Roskin, Jun 30, 2006
  3. 3/3 Make perl interface a separate packagePavel Roskin, Jun 30, 2006
  4. Junio C HamanoJun 30, 2006
  5. Junio C HamanoJun 30, 2006
  6. Pavel RoskinJun 30, 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.