Gentoo Archives: gentoo-user

From: Steve Long <slong@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: A question regarding non-Portage software...
Date: Sun, 11 Mar 2007 14:04:59
Message-Id: et11t4$9b4$1@sea.gmane.org
In Reply to: Re: [gentoo-user] A question regarding non-Portage software... by "Michael [Plouj] Ploujnikov"
1 Michael [Plouj] Ploujnikov wrote:
2
3 > On 3/10/07, Chris <cjw2004d@×××××××.net> wrote:
4 >> I will begin by stating my problem. I have the source code (in
5 >> *.tar.bz2 format) for a couple of pieces of software that are not in the
6 >> Portage tree at all. I would like to compile and install them in such a
7 >> way that I can use them, and even so Portage recognizes them.
8 >
9 > You most likely want to install that software in /usr/local as per
10 > Gentoo's filesystem layout [1]. The way you can do that with
11 > autotoolized software is like this:
12 >
13 > ./configure --prefix=/usr/local
14 > make
15 > make install
16 >
17 > I don't know what you mean by making Portage recognize the software
18 > installed this way. Do you want Portage to be able to uninstall and/or
19 > upgrade this software? If so, the simple answer is you it can't do
20 > that. You have to manage the software outside of Portage yourself.
21 >
22 That's exactly right, which is why it goes into /usr/local. You can however
23 notify portage that you have a certain package on your system
24 with /etc/portage/package.provided - I used this for that kde-env script
25 that was moved last year, as certain pkgs in the tree still depended on its
26 ebuild, but it had been moved to kde-libs (which it blocked.) I unmerged it
27 to get kde-libs, and put an entry in package.provided for pkgs which still
28 had a dependency on it. Once the tree had all been updated I deleted the
29 entry.
30
31 package.provided
32 A list of packages (one per line) that portage should assume have been
33 provided. Useful for porting to non-Linux systems. Portage will not
34 attempt to update a package that is listed here unless another package
35 explicitly requires a version that is newer than what has been listed.
36
37 So in that sense portage will recognise the software for dependency
38 calculation. You should be aware of that last bit; I recommend reading man
39 portage for more explanation. (Oh and man -k is useful if you've not heard
40 of it.)
41
42 HTH,
43 steveL
44
45
46 --
47 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Re: A question regarding non-Portage software... "Bo Ørsted Andresen" <bo.andresen@××××.dk>