+++ This bug was initially created as a clone of Bug #374947 +++ In the previous bug report I only checked the patches that produced errors. I've now gone through the entire gentoo-asterisk-patchset-1.0 with respect to 1.8.5.0. 02-pri-missing-keyword.patch can be removed. The bug was closed upstream. The reason it slipped through without warning is that upstream inserted the change further down in the code. No harm done though. It's simply an undef that got duplicated. A curious fact is that during the prepare process the duplicate entry is removed by something after patching. (Autoconfigure?) After running "ebuild asterisk-1.8.5.0-r2 prepare" there is no duplicate entry. However, manually patching produces a duplicate entry. Anyway, this patch can be removed from the patch-set, so it will be a bit lighter.
I aim to address this in an 1.8.5.0-r3 ebuild; or when upstream releases a newer version. (Filed as a housekeeping task that does not block stabilisation of 1.8.5.0-r2)
I do apologise; this got applied to the gentoo-asterisk-patchset-1.1.tar.bz2 file that asterisk-1.8.5.0-r3 uses, but I failed to credit you. Will update the Changelog now.