Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to emerge GRP packages from Gentoo LiveDVD 2007...?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
alexaltair
n00b
n00b


Joined: 12 Jun 2003
Posts: 24

PostPosted: Mon Jun 25, 2007 10:27 pm    Post subject: How to emerge GRP packages from Gentoo LiveDVD 2007...? Reply with quote

I've done initial networkless install via non-graphic installer on Gentoo LiveDVD 2007.
During the process I chose several GRP packages to install. KDE, Xorg and several others. I skipped choosing all the software because installation once failed for unknown reason.

Now, having booted Gentoo, how can I emerge for example OpenOffice (GRP) from LiveDVD?

I see there is a distfiles folder on DVD, I did copied it content to /usr/portage/distfiles.
Is these packaged are pre-built (not all of course)? How could I know what is GRP and where to put it?......
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Tue Jun 26, 2007 7:47 am    Post subject: Reply with quote

alexaltair wrote:
I've done initial networkless install via non-graphic installer on Gentoo LiveDVD 2007.
During the process I chose several GRP packages to install. KDE, Xorg and several others. I skipped choosing all the software because installation once failed for unknown reason.

Now, having booted Gentoo, how can I emerge for example OpenOffice (GRP) from LiveDVD?
The easiest approach which comes to mind would be to boot into the live DVD then run either locate -r 'All$' (if locate is available) or find / -type d -regex '.*/All$', check those directories for packages, then copy the contents of the parent of the 'All' directory to /usr/portage/packages (or whatever PKGDIR is set to) on the installed system. Once that is done, reboot into the installed system and use emerge with either the --usepkg (-k) or --usepkgonly (-K) option to install packages which were copied from the DVD.
alexaltair wrote:
Is these packaged are pre-built (not all of course)?
All of the packages present in that directory are essentially ready to be unpacked into the installed system.

Fixed mistaken advice, thanks cwr.


Last edited by desultory on Wed Jun 27, 2007 1:57 am; edited 1 time in total
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Tue Jun 26, 2007 11:57 pm    Post subject: Reply with quote

The packages in "distfiles" are all source packages, installed with eg. "emerge --verbose openoffice".
In fact, the open office sources aren't on the DVD, since they are around 120MB as far as I can recall.

Pre-built binary files are of type .tbz2, and are generally found in the "packages" directory. There isn't
one on the DVD, though there used to be one on some CDs. Gentoo is installed from the DVD by
a third method, which I don't fully understand, which builds binary packages on the fly. I don't know
how similar these are to the "standard" binary packages. I don't think that even open office binaries
can be built from the DVD.

Since you have the DVD, which has a fairly large distfiles directory, in my view you're better off using
the standard emerge rather than building binaries directly. Updating and rebuilding is easier, and the
compile time on any fairly recent hardware isn't especially significant.

Will
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Wed Jun 27, 2007 1:58 am    Post subject: Reply with quote

cwr wrote:
The packages in "distfiles" are all source packages, installed with eg. "emerge --verbose openoffice".
Which is, of course, correct. I have corrected my previous post.

cwr wrote:
Pre-built binary files are of type .tbz2, and are generally found in the "packages" directory. There isn't
one on the DVD, though there used to be one on some CDs.
Gentoo Reference Platform packages are available on the amd64 and x86 install media images.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Wed Jun 27, 2007 10:45 pm    Post subject: Reply with quote

This is getting interesting. I built 2007.0 from the x86 DVD using the
Stage 3 and snapshot files, so I hadn't realised that if the DVD is
booted, it actually contains the OpenOffice binaries. I don't much want
to download all the OpenOffice sources, so I thought I'd try to build a
binary package.

Since there are no tbz2 files or All directories on the DVD any packages
needed have to be built with quickpkg, eg:
quickpkg /var/db/pkg/app-office/open-office-2.1.0-r1

(emerge won't work because there are no ebuilds until the snapshot has
been unpacked).

However, there's a bug in quickpkg which seems to give it a problem with
soft links; it adds an extra path separator, and fails to match and find
the required package directory. In my case, given the argument above, and
given /var/db as a soft link to the livecd db directory, it tried and
failed to match
"/var/db/pkg//app-office/open-office-2.1.0-r1"

Since I can't spot anything obvious in the quickpkg script, and don't
know Python that well, that's as far as I can go. But it certainly looks
as if it might be possible to add GRP items even after the initial build.

Hope this helps - Will
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Thu Jun 28, 2007 1:23 am    Post subject: Reply with quote

Ok, the above approach is the only one which won't work. quickpkg
will accept any form of argument _except_ a full path. So to build
the openoffice package from the 2007.0 x86 DVD and put it on a running
Gentoo system:

Boot the DVD and log in as root (I just edit the password file with sudo,
then run su).
cd to /var/db, which is wrongly linked.
Remove the directory /var/db/pkg, and softlink it to the right directory:
ln -s /usr/livecd/db/pkg /var/db/pkg

The openoffice binary is about 82Mb, so it may be necessary to mount the
appropriate filesystem and link the local /usr/portage/packages directory
to the /usr/portage/packages directory on that system. Alternatively if
there's space the package could just be emerged on the livecd and then
copied across to the final system.

Build the Open Office binary package with:
quickpkg openoffice
or:
quickpkg =openoffice-2.1.0-r1
Don't use the full /var/db/... path described in the man page.

Changing to the new Gentoo system, in my case running
"emerge --verbose --usepkgonly openoffice" pulls in several libraries,
including qt and kde. However, these all have their sources in the DVD's
distfiles directory, so the package will still build.

Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum