Re: Bug#17922: pkg-order: the mother of all wishlists
Hi,
>>"Raul" == Raul Miller <rdm@test.legislate.com> writes:
Raul> Another way to implement package ordering (which is needed for
Raul> the bo -> hamm upgrade) would be to "enhance" dpkg with
Raul> something like a a --queue command.
Doesn't autoup.sh handle all the critical details of
libc5-libc6 upgrades?
I am not commenting on a lot of the gory details of the
proposal, as pkg-order can be used to implement ordered installs
using dpkg in (IMHO) a simpler fashion; given a list of
available/desired packages.
A mechanism similar to dftp can be used to determine which
packages are desired to be installed; (I think I want to have the
selection method separate from the pkg-order library ;-), and then a
script based on pkg-order library can be written quite simply.
Raul> If pkg-order is advanced enough, then there is no need to add to
Raul> the command line arguments, and it could do similar logic from a
Raul> dpkg wrapper. [perhaps requiring an extra install run to "prime
Raul> the system".]
The pkg-order lib is advanced enough to be able to create the
dpkg wrapper script (in a sense, dftp is a specific example of
that). The pkg-order script is not upto the task, just being a
showcase for the library internals. In fact, pkg-order creates an
output designed to be easy for humans to read, (and easy for scripts
too, for that matter).
The output looks like the example shown below; the START-STOP
symbols delineate how the installation should be broken into chunks
(Pre-depends, Configure-now-packages, etc) for dpkg to install in one
go.
A real script would also have access to the actual package
version and file name, etc, to make interaction with dpkg easier.
Just feed the packages in between START-STOP to dpkg in the
order given, and all packages can be installed in one fell swoop.
manoj
the demo script's output for a small test example:
START
tcsh
svgalib1
rpncalc
picon-weather
picon-users
picon-unknown
picon-misc
picon-domains
netstd
sp
metamail
dwww
rcs
dpkg-dev
debmake
csh
END 0
START 1
dpkg
wdiff
tetexdoc
tetexlib
svgalib1-dev
spellprogs
tetex
END 1
START 2
bsdutils
bug
mbr
lilo
END
--
"There's only one way to have a happy marriage and as soon as I learn
what it is I'll get married again." Clint Eastwood
Manoj Srivastava <srivasta@acm.org> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: