Bug#848699: debootstrap: doesn't support arch-qualified dependencies
On 2016-12-19 17:50 +0100, Sven Joachim wrote:
> Control: clone -1 -2
> Control: reassign -2 bootstrap-base
>
> On 2016-12-19 12:53 +0100, Ansgar Burchardt wrote:
>
>> Hi,
>>
>> there is a second implementation of pkgdetails in C (part of the base-
>> installer source package).
>
> Gnnn, yes. There's a comment in the debootstrap source about this, but
> it was so far above the lines which I worked on that it did not appear
> on my screen. :-(
>
>> I assume that would also need to be patched to ignore architecture
>> qualifications?
>
> Yes. I think I have a patch, will send it as soon as I have the bug
> number of the clone.
I think the following should do the trick, but I can't really test it.
>From f8c5247d985d39b197a89f0b57557b6445e33bdd Mon Sep 17 00:00:00 2001
From: Sven Joachim <svenjoac@gmx.de>
Date: Mon, 19 Dec 2016 17:44:18 +0100
Subject: [PATCH] pkg-details: Strip architecture qualifier
---
pkgdetails.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgdetails.c b/pkgdetails.c
index d588c80a..9444d2d2 100644
--- a/pkgdetails.c
+++ b/pkgdetails.c
@@ -54,7 +54,7 @@ static void outputdeps(char *deps) {
if (!*pch) break;
while (*pch && *pch != '(' && *pch != '|' && *pch != ','
- && !isspace(*pch))
+ && *pch != ':' && !isspace(*pch))
{
fputc(*pch++, stdout);
}
--
2.11.0
Cheers,
Sven
--
Beware of bugs in the above code; I have only proved it correct, not
tried it.
-- Donald Knuth
Reply to: