Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43724 - 2004.0: livecd cd-2 grp layout changed
Summary: 2004.0: livecd cd-2 grp layout changed
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
: 39886 43740 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-04 09:09 UTC by Tobias Scherbaum (RETIRED)
Modified: 2004-03-08 10:18 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to hb-install-finalise.xml (hb-install-finalise.diff,343 bytes, patch)
2004-03-04 09:10 UTC, Tobias Scherbaum (RETIRED)
Details | Diff
new patch to hb-install-finalise.xml (hb-install-finalise.diff,4.03 KB, patch)
2004-03-04 10:03 UTC, Tobias Scherbaum (RETIRED)
Details | Diff
patch to hb-install-system.xml (hb-install-system.diff,3.88 KB, patch)
2004-03-04 10:08 UTC, Tobias Scherbaum (RETIRED)
Details | Diff
"cp -R" patch to hb-install-finalise.diff (hb-install-finalise.diff,4.01 KB, patch)
2004-03-05 00:08 UTC, Tobias Scherbaum (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-04 09:09:11 UTC
The layout on the second (x86) livecd has changed (checked only packages-athlon-xp-2004.0.iso), the path from where grp packages can be copied onto the harddisk should be adjusted. (?part=1&chap=11#doc_chap2_sect4)

IMO we should rewrite the "Optional: Preparing for GRP" (?part=1&chap=6#doc_chap5) section as it is actually unclear. Non-x86 and non-ppc users are advised to skip this section, but haven't created /usr/portage/packages/All in chap11 and aren't introduced in using GRP downloads.

There are no GRP packages on the first (x86) LiveCD, if no others architectures are affected it could be an option to remove the whole "Optional: Preparing for GRP" section and add instructions how to create the /usr/portage/packages/All directory and usage of GRP downloads to chap11.

Comments please ...
Comment 1 Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-04 09:10:59 UTC
Created attachment 26848 [details, diff]
patch to hb-install-finalise.xml
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-04 09:23:02 UTC
The reason we currently list x86/ppc is because I think those two are the only architectures that already use the changed layout (and have made a 2004.0 release). If other architectures have acquired this layout too they should be added as well. As time goes by, all architectures should follow this layout and the non-relevant parts can be removed.

Non-{x86,ppc} (I guess amd64 can be added too) don't have GRPs available on I'net yet so shouldn't be introduced to it.

Patch looks good. Also, you don't have to require reviews on patches that are clearly needed and don't contain huge technical updates :)
Comment 3 Brad House 2004-03-04 09:39:11 UTC
ok, I'm a bit confused ...
but just to clarify, AMD64 has a GRP cd here:
http://gentoo.oregonstate.edu/releases/amd64/2004.0/livecd/packages-amd64-2004.0.iso

-Brad
Comment 4 Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-04 10:03:38 UTC
Created attachment 26849 [details, diff]
new patch to hb-install-finalise.xml
Comment 5 Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-04 10:07:10 UTC
>Patch looks good. Also, you don't have to require reviews on patches that are clearly needed and don't contain huge technical updates :)

I know, but this patch was only _one_ option I tried to explain, I attached new patches for another (imho better and clearer) option. We can move the GRP instructions nearly at the end of the handbook, this results in less redundancy and more clearness.
Comment 6 Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-04 10:08:18 UTC
Created attachment 26850 [details, diff]
patch to hb-install-system.xml
Comment 7 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-04 11:22:13 UTC
Have you checked with the other architectures (mips/hppa/alpha) if their LiveCDs also allow for the "new" approach? 
Comment 8 Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-04 12:13:13 UTC
MIPS has no LiveCD, dunno about hppa/alpha. That's why the livecd team is cc'd.
Comment 9 Erwin (RETIRED) gentoo-dev 2004-03-04 23:32:15 UTC
*** Bug 39886 has been marked as a duplicate of this bug. ***
Comment 10 Erwin (RETIRED) gentoo-dev 2004-03-04 23:33:54 UTC
*** Bug 43740 has been marked as a duplicate of this bug. ***
Comment 11 Erwin (RETIRED) gentoo-dev 2004-03-04 23:36:35 UTC
Bug #43740 reported that copying the binary packages only (w/o the tree structure) might fail. Can we use -a instead and remove the mkdir -p part? so something like this patch: http://bugs.gentoo.org/attachment.cgi?id=26876&action=view
Comment 12 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-04 23:50:22 UTC
Eh? I thought the package cds didn't have any structure (i.e. the packages are all in a single directory). Did this change?

Can anyone provide a listing of the CDs? 

(Why does GRP always happen to hit us like this)
Comment 13 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-04 23:57:53 UTC
BTW, our previous installation instructions used the "cp -a" and "cp -R" stuff which b0rked massively. Many users had issues (just ask roger55 on #gentoo) and even more users had errors because the instruction has a different outcome depending on wether or not you use a trailing "/".

By using the cp .../* instruction these problems disappeared as snow for the sun. Unless the packages are indeed in a tree structure I'd rather keep something similar (of course fixed so they work). If not, "cp -R" is probably preferred (why would we need the other options that "-a" requires?).
Comment 14 Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-05 00:00:02 UTC
The packages are in the cd root as of now, not in a seperate "packages" folder ... and yes: GRP is imho a very evil thing :(

Here's the listing (athlon-xp packages cd):
All          dev-db       media-libs     net-mail                  x11-libs
app-admin    dev-java     media-plugins  net-misc                  x11-misc
app-arch     dev-lang     media-sound    net-nds                   x11-terms
app-cdr      dev-libs     media-video    net-print                 x11-themes
app-crypt    dev-perl     net-analyzer   net-www                   x11-wm
app-dicts    dev-python   net-dialup     portage-20040223.tar.bz2  xfce-base
app-editors  dev-util     net-fs         sys-apps                  xfce-extra
app-office   gnome-base   net-ftp        sys-devel
app-shells   gnome-extra  net-im         sys-fs
app-text     kde-base     net-irc        sys-libs
app-xemacs   media-gfx    net-libs       x11-base
Comment 15 Erwin (RETIRED) gentoo-dev 2004-03-05 00:04:41 UTC
there's one trivial problem with cp -a, it'll copy the snapshot to the packages/ directory, too. not critical but the file is 14M. The problem with our last GRP installation guide was we introduced the cp command twice (and inconsistent).
Comment 16 Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-05 00:08:27 UTC
Created attachment 26877 [details, diff]
"cp -R" patch to hb-install-finalise.diff

Indeed, i can remember the cp -a / cp -R thing, a very tricky one. But if this
grp "database" is really needed i see no other way than cp -R ...
Comment 17 Erwin (RETIRED) gentoo-dev 2004-03-05 00:16:39 UTC
I tried the cp -R command (/usr/portage/packages wasn't created at 1st) and it copied the whole tree successfully. I think we can drop the mkdir -p /usr/portage/packages command. I've checked all x86 CD2, all the packages are in root dir. I'm now d/ling amd64 cd2 and will post here after i check it.
Comment 18 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-05 00:34:19 UTC
Doesn't the "All/" contain all packages, while the individual categories contain symlinks to the All/ directory?

I thought the category directories were only cosmetic and that Portage immediately looks in the All/ directory.
Comment 19 Erwin (RETIRED) gentoo-dev 2004-03-05 01:47:54 UTC
Here're the contents of amd64 cd2:
---------------------------------
root@earth amd64 # mount -o loop packages-amd64-2004.0.iso /mnt/cdrom
root@earth amd64 # ls /mnt/cdrom
packages
root@earth amd64 # ls /mnt/cdrom/packages/
All          app-text    gnome-extra    net-firewall  net-www     x11-misc
app-admin    app-xemacs  kde-base       net-fs        sys-apps    x11-terms
app-arch     dev-db      media-gfx      net-ftp       sys-boot    x11-themes
app-cdr      dev-lang    media-libs     net-irc       sys-devel   x11-wm
app-crypt    dev-libs    media-plugins  net-libs      sys-fs
app-dicts    dev-perl    media-sound    net-mail      sys-kernel
app-editors  dev-python  media-video    net-misc      sys-libs
app-misc     dev-util    net-analyzer   net-nds       x11-base
app-portage  gnome-base  net-dialup     net-print     x11-libs
-------------------------------------------
it has packages/ directory in it :/ Now, this is troublesome, we have to check all arch :(

As for the All/ directory, i ping'ed carpaski but seems he wasn't around, so cc'ing him.
Comment 20 Tobias Scherbaum (RETIRED) gentoo-dev 2004-03-05 01:55:44 UTC
> Now, this is troublesome, we have to check all arch :(

I can check sparc64 this afternoon CET.
Comment 21 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-07 03:06:51 UTC
Only hppa and alpha don't have a 2004.0 release; those archs don't have a GRP set. I'm going to remove the obsoleted GRP instructions and fix the current ones.
Comment 22 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-07 03:27:22 UTC
Okay; changes committed in the draft handbook. Could ppl take a look at this and TEST it?

#######  #######   #####   #######  
   #     #        #     #     #     
   #     #        #           #     
   #     #####     #####      #     
   #     #              #     #     
   #     #        #     #     #     
   #     #######   #####      # 

http://www.gentoo.org/doc/en/handbook/draft/handbook.xml

http://www.gentoo.org/doc/en/handbook/draft/handbook.xml?part=1&chap=6
http://www.gentoo.org/doc/en/handbook/draft/handbook.xml?part=1&chap=11#doc_chap2_sect4
Comment 23 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-07 03:31:33 UTC
btw, wait until the webnodes synchronise before you read :)

The change is that I've now updated the GRP instructions to set PKGDIR="/mnt/cdrom" so that Portage looks for the packages on the CD. No need to copy them over, and as the installation of GRP packages must happen during (or right after) the installation, setting it once (as environment variable) is sufficient.

I *hope* this leads to less issues with GRP.
Comment 24 Erwin (RETIRED) gentoo-dev 2004-03-08 05:47:05 UTC
looks good. I tried this using athlon-xp GRP cd, it just works(TM) :)
Comment 25 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-08 10:18:59 UTC
Okay, I'm going to commit this and hope for the best.