Created attachment 577702 [details] lvm2-2.02.184-r3_MKSH.build.log Hi! with eselect sh set bash, it builds fine, with mksh it fails with the attached build log.
Created attachment 577710 [details] patch Please try attached patch
Yes, that works!
Created attachment 579516 [details] lvm2-2.02.184-r4/temp/build.log
*** Bug 688088 has been marked as a duplicate of this bug. ***
*** Bug 688276 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=708fc54cc41e78710557966a421eb734d07b3e64 commit 708fc54cc41e78710557966a421eb734d07b3e64 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2019-06-18 09:02:34 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2019-06-18 09:03:20 +0000 sys-fs/lvm2: Fixed build with app-shells/mksh Thanks-to: Alexander Tsoy <alexander@tsoy.me> Closes: https://bugs.gentoo.org/686652 Package-Manager: Portage-2.3.67, Repoman-2.3.14 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> sys-fs/lvm2/files/lvm2-2.02.184-mksh_build.patch | 13 +++++++++++++ sys-fs/lvm2/lvm2-2.02.185.ebuild | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-)