<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/methods/rred.cc, branch 1.0.9.5</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=1.0.9.5</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=1.0.9.5'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2014-03-13T12:58:45Z</updated>
<entry>
<title>cleanup headers and especially #includes everywhere</title>
<updated>2014-03-13T12:58:45Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2014-03-05T21:11:25Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=453b82a388013e522b3a1b9fcd6ed0810dab1f4f'/>
<id>urn:sha1:453b82a388013e522b3a1b9fcd6ed0810dab1f4f</id>
<content type='text'>
Beside being a bit cleaner it hopefully also resolves oddball problems
I have with high levels of parallel jobs.

Git-Dch: Ignore
Reported-By: iwyu (include-what-you-use)
</content>
</entry>
<entry>
<title>fix -Wformat= warnings about size_t != %lu on e.g. armel</title>
<updated>2014-03-13T12:58:45Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2014-02-25T21:30:39Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=6298ff8b6492e2071a8f2ca7669a3aeef0fb29c7'/>
<id>urn:sha1:6298ff8b6492e2071a8f2ca7669a3aeef0fb29c7</id>
<content type='text'>
Git-Dch: Ignore
Reported-By: gcc
</content>
</entry>
<entry>
<title>use utimes instead of utimensat/futimens</title>
<updated>2014-02-11T01:28:27Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2014-02-10T20:52:38Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=246bbb611d4cd5e2a13ecffb6cbe0e76390eae6f'/>
<id>urn:sha1:246bbb611d4cd5e2a13ecffb6cbe0e76390eae6f</id>
<content type='text'>
cppcheck complains about the obsolete utime as it was removed in
POSIX1.2008 and recommends usage of utimensat/futimens instead
as those are in POSIX and so commit 9ce3cfc9 switched to them.
It is just that they aren't as portable as the standard suggests:
At least our kFreeBSD and Hurd ports stumble over it at runtime.
So to make both, the ports and cppcheck happy, we use utimes instead.

Closes: 738567
</content>
</entry>
<entry>
<title>fix various style/performance warnings in rred</title>
<updated>2014-01-29T23:16:49Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2014-01-29T23:11:05Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=25d99f3b42ada24679ddc1d911530425acc8e475'/>
<id>urn:sha1:25d99f3b42ada24679ddc1d911530425acc8e475</id>
<content type='text'>
Reported-By: cppcheck
Git-Dch: Ignore
</content>
</entry>
<entry>
<title>methods/rred: minor robustness improvements</title>
<updated>2014-01-20T19:00:12Z</updated>
<author>
<name>Anthony Towns</name>
<email>aj@erisian.com.au</email>
</author>
<published>2014-01-20T19:00:12Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=2fd754cfe9a92fe85f4dd56447c70112b64b003e'/>
<id>urn:sha1:2fd754cfe9a92fe85f4dd56447c70112b64b003e</id>
<content type='text'>
Use retry_fwrite to better handle partial fwrite successes, and to keep
the Hashes in sync with what's actually written.
</content>
</entry>
<entry>
<title>integrate Anthonys rred with POC for client-side merge</title>
<updated>2014-01-15T21:57:47Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2014-01-15T16:23:05Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=50bd6fd3794dd1f61185302129dc6cd218d20b98'/>
<id>urn:sha1:50bd6fd3794dd1f61185302129dc6cd218d20b98</id>
<content type='text'>
Providing the benefits of both without the downsides :)
(ABI breaks or external dependencies)

For this Anthonys rred is equipped with:
- magic-filename-pickup of patches rather than explicit messages
- use of FileFd instead of FILE* to get on-the-fly uncompress
  of the gzip compressed pdiff patches

The acquire code in turn stops checking for apt-file's helper
as our own rred is now clever enough for our needs.
</content>
</entry>
<entry>
<title>reimplement rred to allow applying all the diffs in a single pass</title>
<updated>2014-01-15T21:43:14Z</updated>
<author>
<name>Anthony Towns</name>
<email>aj@erisian.com.au</email>
</author>
<published>2014-01-15T15:33:36Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=dbd5418b895c0ae3d6585ad38bd40920a456855e'/>
<id>urn:sha1:dbd5418b895c0ae3d6585ad38bd40920a456855e</id>
<content type='text'>
Based on the idea presented in:
https://lists.debian.org/deity/2009/08/msg00169.html  and
https://lists.debian.org/debian-devel/2014/01/msg00081.html

It reads all patches one by one and merges them in-memory before
applying the merged changes to the index.

Beware: This commit by David Kalnischkies rips out the rred binary
rewrite unchanged (expect minor format issue corrections) from the
proposed changes, so this commit alone BREAKS pdiff completely.
The integration into the acquire system as it was prepared in the
previous POC will be done in the next commit to have proper 'blame'.
</content>
</entry>
<entry>
<title>implement POC client-side merging of pdiffs via apt-file</title>
<updated>2013-12-13T10:59:49Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2013-12-06T11:17:48Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=47d2bc78adb49f3182f9a3d7a4baea363e772d64'/>
<id>urn:sha1:47d2bc78adb49f3182f9a3d7a4baea363e772d64</id>
<content type='text'>
The idea of pdiffs is to avoid downloading the hole file by patching the
existing index. This works very well, but becomes slow if a lot of
patches needs to be applied to reconstruct an up-to-date index and in
recent years more and more dinstall (or similar) runs are executed
creating more and more pdiffs in the same amount of time, so pdiffs
became less useful.

The solution is simple: Reduce the amount of patches (which are very
small) which need to be applied on top of the index we have available
(which is usually pretty big).

This can be done in two ways: Either merge the patches on the
server-side so that the client has to download only one patch or the
patches are all downloaded and merged on the client-side.

The first needs a client who is doing one step at a time who can also
skip patches if it needs (APT supports this for a long time now).

The later is implemented by this commit, but depends on the server NOT
merging the patches and the patches being in a strict order in which no
patch is skipped.

This is traditionally the case for dak, but other repository creators
support merging – e.g. reprepro (which helpfully adds a flag indicating
that the patches are merged). To support both or even mixes a client
needs more information which isn't available for now.

This POC uses the external diffindex-rred included in apt-file to
do the heavy lifting of merging &amp; applying all patches in one pass,
hence to test this feature apt-file needs to be installed.
</content>
</entry>
<entry>
<title>we don't need zlib (anymore) in rred so don't include it</title>
<updated>2012-05-09T22:15:52Z</updated>
<author>
<name>David Kalnischkies</name>
<email>kalnischkies@gmail.com</email>
</author>
<published>2012-05-09T22:15:52Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=4ac4a98e16e1ecd34928f6d93389b7106c93c65e'/>
<id>urn:sha1:4ac4a98e16e1ecd34928f6d93389b7106c93c65e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>make these retry_write methods static so that they don't end up as symbols</title>
<updated>2012-03-22T21:18:05Z</updated>
<author>
<name>David Kalnischkies</name>
<email>kalnischkies@gmail.com</email>
</author>
<published>2012-03-22T21:18:05Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=136a6c13c8df7c403dd5284ff8bda20c8a84b614'/>
<id>urn:sha1:136a6c13c8df7c403dd5284ff8bda20c8a84b614</id>
<content type='text'>
</content>
</entry>
</feed>
