Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 8767

Summary: portage archive patch
Product: Portage Development Reporter: Joshua Brindle (RETIRED) <method>
Component: UnclassifiedAssignee: Daniel Robbins (RETIRED) <drobbins>
Status: RESOLVED FIXED    
Severity: enhancement CC: carpaski, h3y, mholzer, seemant, vapier
Priority: High    
Version: unspecified   
Hardware: x86   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 1184    
Bug Blocks:    
Attachments: Adds dyn_archive to ebuild.sh, and adds a check in dyn_install for 'archive' in FEATURES

Description Joshua Brindle (RETIRED) gentoo-dev 2002-10-04 19:57:34 UTC
This is the first of hopefully many patches to give portage the "self-healing" 
ability of sorceror linux.
It adds an "archive" flag to FEATURES that makes an archive (the same way that 
dyn_package does) but puts it in /db/pkg/.
Comment 1 Joshua Brindle (RETIRED) gentoo-dev 2002-10-04 19:58:51 UTC
Created attachment 4418 [details, diff]
Adds dyn_archive to ebuild.sh, and adds a check in dyn_install for 'archive' in FEATURES
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2002-10-05 18:00:45 UTC
What's the difference between this and 'emerge -b' ?
Comment 3 Joshua Brindle (RETIRED) gentoo-dev 2002-10-05 18:50:40 UTC
This is the first step toward automatically archiving images for use in 
recovery (or self-healing). If the user had to use a flag every time they 
probably wouldn't, this gives the option of automatically archiving based on 
the FEATURE flag. Also, this puts the image in the build-info dir which goes 
to /var/db/pkg.. so that it can be used for repairing rather than -b which is 
used for deploying elsewhere and writes to /usr/portage/packages
(perhaps there should be a common place for both of them), personally i hate 
all the crap portage writes to /usr, /usr is for programs, now thousands of 
tars :)
Comment 4 SpanKY gentoo-dev 2002-10-05 19:55:16 UTC
basically it would be -b but placing the pkg in another place (maybe 
/var/db/pkg/<cat>/<pgk>/file) and then used later if 'self-healing' is wanted 
... 
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2002-10-05 21:36:49 UTC
PKGDIR=${PORTDIR}/packages

can be changed in make.conf, but I kinda get your point.
A constant feature as opposed to an explicit flag.
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2002-10-20 03:02:05 UTC
portage-2.0-41

FEATURES="buildpkg"
will cause --buildpkg to be set always.