[elbe-devel] [PATCH 0/3] Introduce archivedir feature

Benedikt Spranger b.spranger at linutronix.de
Thu Jul 5 10:44:34 CEST 2018


The archive handling, especially in combination with variants, is rough:
- changes in <archive> are hard to track (<archive> is a base64 encoded
  blob).
- variants have to substitute the hole archive (No incremental changes).
- various workaround and glue layers calling "elbe chg_archive" exists.

On the other hand a immutable archive is needed in terms of
reproducibility.

The new archivedir feature introduces a new node <archivedir>.
<archivedir> nodes can be tagged with the "variant" attribute.
The occurrence of <archivedir> is unlimited. Using more than one
<archivedir> can be used for a layer concept to build tha archive.

The <archivedir> node has a single URI reference as content. At the
moment only file URIs (relative and absolute) are supported:

       <archivedir>file:///path/to/my/archive</archivedir>
       <archivedir>relative/path/to/my/archive</archivedir>

"elbe preprocess" is enhanced to parse the new nodes and collect the
content of each URI reference into a combined <archive> node.

    Bene

Benedikt Spranger (3):
  Use tar append to create archives
  Add archivedir support
  Use archivedir support in elbe preprocess

 elbepack/archivedir.py    | 97 ++++++++++++++++++++++++++++++++++-----
 elbepack/xmlpreprocess.py |  7 +++
 2 files changed, 93 insertions(+), 11 deletions(-)

-- 
2.18.0




More information about the elbe-devel mailing list