[pacman-dev] RootDir using symlinks -> problem

Kevin Piche kevin.piche at cgi.com
Tue Oct 16 16:47:57 EDT 2007



On Tue, 2007-10-09 at 12:56 -0500, Aaron Griffin wrote:
> On 10/9/07, Xavier <shiningxc at gmail.com> wrote:
> > Dan and Aaron apparently discussed that on IRC.
> > I am still a bit confused though..
> >
> > Apparently, Dan is for flexibility, so having the possibility to have the
> > dbpath outside rootdir. And so, in this case, my patch should probably be
> > applied. Unless there are many other hidden dependencies, where the code
> > assumes that dbpath (or others) are under rootdir?
> >
> > On the other hand, Aaron said having the possibility to have DBPath outside
> > RootDir is useless, and that it doesn't make sense.
> > The final proposal is apparently just issuing a warning when the DB dir is
> > outside the rootdir.
> 
> Well. See, what I'm saying has nothing to do with code, using realpath() or not.
> 
> I'm saying that the following doesn't make sense:
> * install the gnome group to /home/me/chroot/gnome/ (as the root dir)
> * save the gnome DB entries in /var/lib/pacman/local

I can see how the DBPath outside of root is helpful to create a live cd
with multiple squashfs's that get overlayed depending on how capable you
want the system to be at boot.  Then you don't have to work out what
packages need to go into each overlay and ensure the deps are somewhere
which is what I've been doing.

And the DB could go into another squashfs and then the user can decide
if they want it at runtime.

Cool.


> So now it looks like I have gnome installed... but i don't. And lots
> of things will crash. Admittedly, it's my fault, but still, this
> shouldn't be allowed.
> 
> It's like pacman is pretending it installed something.
> 
> Our compromise, however, isn't much of one - we're going with you and
> Dan on this - allow dbpath outside of the rootdir - but the warning is
> to make me feel better about it.
> 
> > I am not sure if I really like this, I would prefer choosing one way or the other,
> > instead of having something unstable in the middle.
> > So either deciding that all paths should be independent, and trying to
> > implement this in pacman, or deciding that all paths should be relative to RootDir,
> > and enforce this in pacman (which was already done in 3.0, wasn't it?)
> 
> Like I said, the ultimate code will be what you guys are going for -
> independent paths and all that. The warning is to sate me.
> 
> It's not something in the middle, like you suggested.
> 
> _______________________________________________
> pacman-dev mailing list
> pacman-dev at archlinux.org
> http://archlinux.org/mailman/listinfo/pacman-dev




More information about the pacman-dev mailing list