Bug#554444: libdebian-installer: doubling the READSIZE size to support packages generated by Open Embedded
Package: libdebian-installer
Version: 0.69
When using cdebootstrap to provide the rootfs at Mamona (an
OpenEmbedded-based distribution), cdebootstrap failed giving the
following message:
W: parser_rfc822: Iek! Don't find end of value!
E: Internal error: download
After looking at the libdebian-installer code, I found that the
problem is related with the READSIZE variable, as I got a package that
had more than 16384 characters at the recommends field.
I know that this is quite a huge line, but at OE we have quite many
packages that are split in a lot of different packages.
Applying the following patch fixed my problem:
[PATCH] parser_rfc822.c: doubling the READSIZE to support using it
with OpenEmbedded
---
src/parser_rfc822.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/parser_rfc822.c b/src/parser_rfc822.c
index 576de0e..45ccc98 100644
--- a/src/parser_rfc822.c
+++ b/src/parser_rfc822.c
@@ -38,7 +38,7 @@
#include <sys/types.h>
#include <unistd.h>
-#define READSIZE 16384
+#define READSIZE 32768
int di_parser_rfc822_read (char *begin, size_t size, di_parser_info
*info, di_parser_read_entry_new entry_new, di_parser_read_entry_finish
entry_finish, void *user_data)
{
Reply to: