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

Re: Error.pm: add configuration variable in Makefile

From
SCSergio Callegari <scallegari@arces.unibo.it>
Date
Feb 17, 2007, 14:38 UTC
Message-ID
<loom.20070217T152508-6@post.gmane.org>
In-Reply-To
<200702162200.15241.barra_cuda@katamail.com>
Michael <barra_cuda <at> katamail.com> writes:
Show 13 quoted lines
> 
> When compiling, we check in perl/Makefile.PL if Error.pm is available. If not, 
> we use our Error.pm instead. So, after a "make install" the system does have 
> an Error.pm. This is fine, unless we are used to create an 
> rpm/deb/whatever-it-is by ourselves and install it with the system's package 
> manager: in this case, in fact, the git package we are building will have an 
> Error.pm only if the package currently installed does not. Of course, once we 
> install the new package, the next one won't ship Error.pm because 
> perl/Makefile.PL thinks it doesn't need to; but that's obviously wrong, since 
> the package manager will delete the old Error.pm when installing the new git 
> package.
> 
> 

Apart from those making rpm/deb/whatever, I see another scenario where the current selection logic for systemwide Error.pm and private Error.pm may fail. This is if one uses GNU Stow for managing software that is not managed by the distro packaging system... whatever.

A typical upgrade flow would be:
You have Git version X installed in /usr/local/stow/Git-X and stowed.
You now compile version X+1 of git, with prefix /usr/local/stow/Git-X+1
(here the current Error.pm logic thinks that there is no need for the private  
 Error.pm since it finds an Error.pm -- only it is the Error.pm from the Git-X
stowing)
You install Git version X+1 in /usr/local/stow/Git-X+1
You unstow Git version X
You stow Git version X+1
Git version X+1 fails because of missing Error.pm
I.e. identical problem as with a true package manager.
Problem is that the "private" Error.pm is put in a "public" location and not
kept private with the current installation of Git.
  
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “Error.pm: add configuration variable in Makefile”
  1. MichaelFeb 16, 2007
  2. Junio C HamanoFeb 16, 2007
  3. Sergio CallegariFeb 17, 2007
  4. Junio C HamanoFeb 18, 2007

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.