TODO
author Kristian H?gsberg <krh@redhat.com>
Thu Nov 08 22:36:16 2007 -0500 (2007-11-08)
changeset 76 773e6a26707f
parent 74 f23a93d41f32
child 82 61fef906a84a
permissions -rw-r--r--
Drop support for half-baked rzr file idea.
     1 Towards replacing rpm + yum (0.1):
     2 
     3 - installer part
     4 
     5 - rpm file parser, create repo command
     6 
     7 - conflicts, obsoletes
     8 
     9 - versions in depsolving
    10 
    11 - signed packages
    12 
    13 - merge file lists when merging package sets
    14 
    15 - download (libcurl?)
    16 
    17 - figure out how to canonically represent empty string... ~0?
    18 
    19 - space calculation before transaction, but ideally, do a number of
    20   smaller transactions.
    21 
    22 - pre-link changing binaries and libs on disk screwing up checksum?
    23 
    24 - nail down byte-order and word sizes of repo file.
    25 
    26 - version the sections in the file, put the element size in the header
    27   so we can add stuff to elements in a backwards compatible way.
    28 
    29 Misc ideas:
    30 
    31 - eliminate duplicate entries in package property lists.
    32 
    33 - keep history of installed packages/journal of package transaction,
    34   so we can roll back to yesterday, or see what got installed in the
    35   latest yum update.
    36 
    37 - gzip repository of look-aside pkg xml files somehow?
    38 
    39 - transactions, proper recovery, make sure we don't poop our package
    40   database (no more rm /var/lib/rpm/__cache*).
    41 
    42 - rewrite qsort and bsearch that doesn't require global context var
    43   and can output a map describing the permutaion.
    44 
    45 - use hash table for package and property lists so we only store
    46   unique lists (like for string pool).
    47 
    48 - use existing, running system as repo; eg
    49 
    50 	razor update razor://other-box.local evince
    51 
    52   to pull eg the latest evince and dependencies from another box.  We
    53   should be able to regenerate a rzr pkg from the system so we can
    54   reuse the signature from the originating repo.
    55 
    56 - Ok, maybe the fastest package set merge method in the end is to use
    57   the razor_importer, but use a hash table for the properties.  This
    58   way we can assign them unique IDs immediately (like tokenizing
    59   strings).
    60 
    61 - test suite should be easy, just keep .repo files around and test
    62   different type of upgrades that way (obsoletes, conflicts, file
    63   conflicts, file/dir problems etc).  Or maybe just keep a simple file
    64   format ad use a custom importer to create the .repo files.
    65 
    66 - pipelined download and install; download is network bound, install
    67   is disk bound.  Start installing once we have self-contained set of
    68   packages.  Install in reverse topo-sort order.  Interruptible
    69   installation; stops at nearest checkpoint.
    70 
    71 - split out hash table code from importer, make the merger use just
    72   the hash table.
    73 
    74 - try to clean up the
    75 
    76 	do { ... } while (((e++)->name & RAZOR_ENTRY_LAST) == 0);
    77 
    78   idiom for iteration of directories.
    79 
    80 - overlay package sets?  mount a read-only /usr over nfs or from the
    81   virt-host and have a local package set overlaid over the read-only
    82   one.  shouldn't need new features in the core package set data
    83   structure, but should be just conventions on top.  we have the base
    84   package set from the r/o system, the overlay set from the local
    85   system and we can have an effective package set which is the merge
    86   of everything from the overlay into the base set.  the effective set
    87   is easy to compute and we could do it on the fly or cache it.  or
    88   maybe the effective set is the on-disk representation and the
    89   overlay can be computed when needed, we just keep a link back to the
    90   base.
    91 
    92 - incremental rawhide repo updates? instead of downloading 10MB zipped
    93   repo every time, download a diff repo?
    94 
    95 - use hash tables for dirs when importing files to avoid qsorting all
    96   files in rawhide.
    97 
    98 - corner cases such as no files/properties in repo etc segfault.