... and therefore produces only: $ deb2targz env: perl -w: No such file or directory This prevents builds of packages such as ca-certificates. (This isn't a non-prefix binary issue: replacing the first line with "#!/opt/gentoo/bin/env perl -w" outputs "/opt/gentoo/bin/env: perl -w: No such file or directory") Removing the " -w" fixes the problem.
fixed. apparently env can't take 2 arguments. Instead, use the whole path to perl.