Saurik's version of apt managed for tvOS/ARM64

Michael Vogt daadc1460a releasing package apt version 0.9.12.1 %!s(int64=12) %!d(string=hai) anos
abicheck 183116d1a6 fix typo in the test for abi-compliance-checker %!s(int64=13) %!d(string=hai) anos
apt-inst 3286ad136c fix libapt-inst for >2G debs (closes: #725483) %!s(int64=12) %!d(string=hai) anos
apt-pkg 42c1513b71 tests, do not send pkgname with arch via the status-fd %!s(int64=12) %!d(string=hai) anos
apt-private 649d3c5b7d Merge remote-tracking branch 'mvo/feature/upgrade-with-new' into debian/sid %!s(int64=12) %!d(string=hai) anos
buildlib 0cedc6b3fe reenable automatic parallel build of APT %!s(int64=13) %!d(string=hai) anos
cmdline 649d3c5b7d Merge remote-tracking branch 'mvo/feature/upgrade-with-new' into debian/sid %!s(int64=12) %!d(string=hai) anos
debian daadc1460a releasing package apt version 0.9.12.1 %!s(int64=12) %!d(string=hai) anos
doc 649d3c5b7d Merge remote-tracking branch 'mvo/feature/upgrade-with-new' into debian/sid %!s(int64=12) %!d(string=hai) anos
dselect 0806f2a6c4 dselect/install: add new DSELECT_UPGRADE_OPTS="-f" %!s(int64=13) %!d(string=hai) anos
ftparchive 1c946b5766 ftparchive/override.cc: fix "skip empty lines" code, the pointer needs to get de-referenced first %!s(int64=13) %!d(string=hai) anos
methods fd46d30571 handle complete responses to https range requests %!s(int64=12) %!d(string=hai) anos
po ddcaebe4ac Complete Italian translation %!s(int64=13) %!d(string=hai) anos
test 7ff4de5b12 remove POSTINST from framework, file tree can be used for this %!s(int64=12) %!d(string=hai) anos
.bzrignore 04e9cc0814 * doc/examples/sources.list: %!s(int64=14) %!d(string=hai) anos
.gitignore ac62eb38b0 build the en manpages in subdirectory doc/en %!s(int64=13) %!d(string=hai) anos
.travis.yml be297c7ab3 tests: install --no-install-recommends and stunnel4 for travis %!s(int64=12) %!d(string=hai) anos
AUTHORS 9720f8d337 AUTHORS: updated again %!s(int64=16) %!d(string=hai) anos
COMPILING 65bf851838 * buildlib/inttypes.h.in: %!s(int64=14) %!d(string=hai) anos
COPYING 6ae07b8231 merged r1811 from lp:~donkult/apt/experimenal %!s(int64=17) %!d(string=hai) anos
COPYING.GPL a62f8bb911 QT1 license exception %!s(int64=22) %!d(string=hai) anos
Makefile b917917067 squash merge of the feature/apt-binary branch without the changes from experimental %!s(int64=13) %!d(string=hai) anos
README.MultiArch 28166356f3 Remove the "pseudopackage" handling of Architecture: all packages for %!s(int64=15) %!d(string=hai) anos
README.ddtp b46240260d * added README.ddtp %!s(int64=21) %!d(string=hai) anos
README.make 7365ff46a3 Fix some typos in docs and translations (thanks to timeless, closes: 368665) %!s(int64=18) %!d(string=hai) anos
README.progress-reporting 1a82c63ec1 * include a human readable string for the MediaChange status-fd message as well %!s(int64=21) %!d(string=hai) anos
configure.ac 55732492dd unset LANGUAGE for showing [Y/n] answer hints %!s(int64=13) %!d(string=hai) anos
mirror-failure.py 2769f0bcf6 * mirror-failure.py: example mirror failure cgi %!s(int64=19) %!d(string=hai) anos
prepare-release ed9ba607b4 make autoconf happy by "mv configure.{in,ac}" %!s(int64=13) %!d(string=hai) anos

README.MultiArch

Before we start with this topic: Note that MultiArch is not yet ready for
prime time and/or for the casual user. The implementation is so far widely
untested and only useful for developers of packagemanagment tools which
use APT and his friends and maintainers of (upcoming) MultiArch packages.
This README is especially NOT written for the casual user and is NOT a
usage guide - you have been warned. It is assumed that the reader has
at least a bit of knowledge about APT internals, dependency relations
and the MultiArch spec [0].

Note also that the toolchain isn't ready yet, e.g. while you can simulate
the installation of MultiArch packages they will more sooner than later
cause enormous problems if really installed as dpkg can't handle MultiArch
yet (no, --force-{overwrite,architecture} aren't good options here).
Other parts of the big picture are missing and/or untested too.
You have been warned!


The implementation is focused on NOT breaking existing singleArch-only
applications and/or systems as this is the current status-quo for all
systems. Also, many systems don't need (or can't make use of) MultiArch,
so APT will proceed in thinking SingleArch as long as it is not explicitly
told to handle MultiArch:
To activate MultiArch handling you need to specify architectures you
want to be considered by APT with the config list APT::Architectures
(Insert architectures in order of preference).
APT will download Packages files for all these architectures in the
update step. Exception: In the sourcelist is the optionfield used:
deb [ arch=amd64,i386 ] http://example.org/ experimental main
(This optionfield is a NOP in previous apt versions)

Internally in APT a package is represented as a PkgIterator -
before MultiArch this PkgIterator was architecture unaware,
only VerIterators include the architecture they came from.
This is/was a big problem as all versions in a package are
considered for dependency resolution, so pinning will not work in all cases.

The problem is solved by a conceptional change:
A PkgIterator is now architecture aware, so the packages
of foobar for amd64 and for i386 are now for apt internal totally
different packages. That is a good thing for e.g. pinning, but
sometimes you need the information that such packages are belonging together:
All these foobar packages therefore form a Group accessible with GrpIterators.
Note that the GrpIterator has the same name as all the packages in this group,
so e.g. apt-cache pkgnames iterates over GrpIterator to get the package names:
This is compatible to SingleArch as a Group consists only of a single package
and also to MultiArch as a Group consists of possible many packages which
all have the same name and are therefore out of interest for pkgnames.


Given all these internal changes it is quite interesting that the actual
implementation of MultiArch is trivial: Some implicit dependencies and a few
more provides are all changes needed to get it working. Especially noteworthy
is that it wasn't needed to change the resolver in any way and other parts only
need to be told about using GrpIterator instead of PkgIterator, so chances are
good that libapt-applications will proceed to work without or at least only
require minor changes, but your mileage may vary…


Known Issues and/or noteworthy stuff:
* The implementation is mostly untested, so it is very likely that APT will
eat your kids if you aren't as lucky as the author of these patches.

[0] https://wiki.ubuntu.com/MultiarchSpec