Saurik's version of apt managed for tvOS/ARM64

David Kalnischkies 75b093128e enforce 'house-style' on changelog testcase 12 years ago
abicheck c5f0d8e6f8 fix some more ABI issues, abicheck is happy now 12 years ago
apt-inst 246bbb611d use utimes instead of utimensat/futimens 12 years ago
apt-pkg 9082a1fc7b allow http protocol to switch to https 12 years ago
apt-private 33b813ce44 move isatty() check into InitOutput() 12 years ago
buildlib 694ef56e80 add a vendor specific file to have configurable entities 12 years ago
cmdline 52090faab4 trivial indent fix 12 years ago
debian 28b4b983d9 use "Restrictions: allow-stderr and avoid apt-stderr.log in debian/tests/run-tests 12 years ago
doc 4bca852015 do not recommend dselect in apt-get manpage 12 years ago
dselect 0806f2a6c4 dselect/install: add new DSELECT_UPGRADE_OPTS="-f" 13 years ago
ftparchive 246bbb611d use utimes instead of utimensat/futimens 12 years ago
methods 9082a1fc7b allow http protocol to switch to https 12 years ago
po 72bae92a6c releasing package apt version 0.9.15.2 12 years ago
test 75b093128e enforce 'house-style' on changelog testcase 12 years ago
vendor 0e2d81b5b4 vendor/ubuntu/sources.list.in: whitespace fix 12 years ago
.bzrignore 04e9cc0814 * doc/examples/sources.list: 14 years ago
.gitignore 59e81cec3e add "apt full-upgrade" and tweak "apt upgrade" 12 years ago
.travis.yml be297c7ab3 tests: install --no-install-recommends and stunnel4 for travis 12 years ago
AUTHORS 9720f8d337 AUTHORS: updated again 16 years ago
COMPILING 65bf851838 * buildlib/inttypes.h.in: 14 years ago
COPYING 6ae07b8231 merged r1811 from lp:~donkult/apt/experimenal 17 years ago
COPYING.GPL a62f8bb911 QT1 license exception 22 years ago
Makefile eef71f11a5 introduce a vendor system to change sources.list 12 years ago
README.MultiArch 28166356f3 Remove the "pseudopackage" handling of Architecture: all packages for 15 years ago
README.ddtp b46240260d * added README.ddtp 21 years ago
README.make 7365ff46a3 Fix some typos in docs and translations (thanks to timeless, closes: 368665) 18 years ago
README.progress-reporting 1a82c63ec1 * include a human readable string for the MediaChange status-fd message as well 21 years ago
configure.ac 72bae92a6c releasing package apt version 0.9.15.2 12 years ago
mirror-failure.py 2769f0bcf6 * mirror-failure.py: example mirror failure cgi 19 years ago
prepare-release 01c790a7f6 ensure prepare-release works in the right directory 12 years ago

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