[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to install package using apt-get in folder other than /usr



On Mon, 29 Sep 2008 22:55:55 +0900
Charles Plessy <plessy@debian.org> wrote:

> > The package determines the directories, it is not up to you to change it
> > unless it is your package (and changes must be compliant with Policy) -
> 
> Hi Neil,
> 
> I guess that Kruti meant that if a foobar package has the following
> files:
> 
> /usr/bin/foobar
> /usr/share/man/man1/foobar.1
> /etc/foobarrc
> (...)
> 
> he would like to install it the files in
> 
> prefix/bin/foobar
> prefix/share/man/man1/foobar.1
> prefix/etc/foobarrc (or even $Prefix/.config/foobarrc)
> (...)

Just because someone would like to install that way, does not mean that
it is right to do so.

> and that if foobar depends on bazbaz, then with an appropriate apt-get
> command, bazbaz can be installed in the same prefix.

For what purpose?

Multiarch is being developed. Cross-building has existing mechanisms
and the two are trying to synchronise before Squeeze. If there are
other (valid) reasons for this, where a chroot *cannot* be used, this
needs to be within the frame of the discussions. The current changes are
difficult enough - get involved if you want to have any input.

The chroot IS the preferred and default mechanism for this kind of work
- there needs to be a good reason *not* to use it.

> While I would also love to have this feature in Debian, it is indeed
> offtopic on this list and should better be a wishlist bug of apt-get,
> aptitude, or any other frontend to dpkg.

No. Before you recommend such a method, be sure that existing support
cannot be used and provide a robust reasoning for such a fundamental
change to how Debian works. Changes to apt and dpkg must be practicable
or the bug would just be closed without comment. Don't waste time with
bugs that have no prospect of being even discussed - explain the
rationale and ensure that there is a valid purpose for the request.

Any changes to directories *must* be done consistently - allowing
arbitrary prefixes is an exceedingly bad idea.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpn03c7jpqMM.pgp
Description: PGP signature


Reply to: