From: Sergio Callegari <scallegari@arces.unibo.it>
To: git@vger.kernel.org
Subject: Re: Error.pm: add configuration variable in Makefile
Date: Sat, 17 Feb 2007 14:38:58 +0000 (UTC) [thread overview]
Message-ID: <loom.20070217T152508-6@post.gmane.org> (raw)
In-Reply-To: 200702162200.15241.barra_cuda@katamail.com
Michael <barra_cuda <at> katamail.com> writes:
>
> 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.
next prev parent reply other threads:[~2007-02-17 14:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-16 21:00 Error.pm: add configuration variable in Makefile Michael
2007-02-16 21:18 ` Junio C Hamano
2007-02-17 14:38 ` Sergio Callegari [this message]
2007-02-18 8:45 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20070217T152508-6@post.gmane.org \
--to=scallegari@arces.unibo.it \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).