The file scripts/install-sh is not executable, so trying to execute this fails (at least on gentoo/freebsd).
Created attachment 124171 [details, diff] gnupg-2.0.5.ebuild This patch to the ebuild fixes it.
As I see, the new install shell is executed only if you "make install-strip", but why do you want to do this? Also it is executed with $(SHELL) prefix so there should be no problem. Can you please attach config.log and build error output?
Created attachment 124209 [details] build.log Well, I did not *want* to do anything in particular. I simply did an emerge of this package, and the error happens (at least on g/fbsd). The error occurs while in the "kbx" dir trying to make the "install-binPROGRAMS" target. Note that the second line in this block is: test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" MKDIR_P is "../scripts/install-sh -c -d" So if this gets executed, it doesn't look like it is done with $(SHELL); maybe you are referring to another place this is called? The error I get is "Permission denied". Note that doing an ebuild...unpack followed by an ebuild...compile does not invoke this. Only the full emerge shows the problem. Attached is the build.log.
Created attachment 124211 [details] config.log Here's my config.log
OK. This script is used without SHELL prefix on fbsd as install replacement for creating directories. Thanks for the logs.