NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/22868
The following reply was made to PR toolchain/22868; it has been noted by GNATS.
From: Roland Illig <roland.illig%gmx.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: toolchain/22868
Date: Tue, 22 Jun 2021 15:29:56 +0200
This is a multi-part message in MIME format.
--------------62D69E7BA6E1A281715D8872
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Here is the patch from 2003, updated to apply to current make.
Since the patch affects an area of make that I'm not familiar with, I
will not commit it myself as-is. There are a lot of tricky edge cases
in suffix handling, as well as a few remaining bugs, and there should be
more unit tests.
The existing tests named suff-*.mk already cover some parts of the code,
but there should be a new test that clearly demonstrates what this patch
does.
--------------62D69E7BA6E1A281715D8872
Content-Type: text/plain; charset=UTF-8;
name="pr-22868.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="pr-22868.patch"
SW5kZXg6IG1ha2UuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3Zzcm9vdC9zcmMvdXNy
LmJpbi9tYWtlL21ha2UuYyx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4yNDQKZGlmZiAtdSAt
cCAtcjEuMjQ0IG1ha2UuYwotLS0gbWFrZS5jCTQgQXByIDIwMjEgMTA6MDU6MDggLTAwMDAJ
MS4yNDQKKysrIG1ha2UuYwkyMSBKdW4gMjAyMSAwOTo1Mjo1MiAtMDAwMApAQCAtMTE3LDYg
KzExNyw5IEBAIHN0YXRpYyB1bnNpZ25lZCBpbnQgY2hlY2tlZF9zZXFubyA9IDE7CiBzdGF0
aWMgR05vZGVMaXN0IHRvQmVNYWRlID0gTFNUX0lOSVQ7CiAKIAorc3RhdGljIHZvaWQgVXBk
YXRlSW1wbGljaXRQYXJlbnRzVmFycyhHTm9kZSAqL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