To fix the issue, one simply needs to add S="${WORKDIR}/opensnitch-${PV}" to opensnitch-ebpf-module.ebuild
>>> Source unpacked in /tmp/portage/app-admin/opensnitch-ebpf-module-1.6.5.1/work
* ERROR: app-admin/opensnitch-ebpf-module-1.6.5.1::pentoo failed (prepare phase):
* The source directory '/tmp/portage/app-admin/opensnitch-ebpf-module-1.6.5.1/work/opensnitch-ebpf-module-1.6.5.1' doesn't exist
*
* Call stack:
* ebuild.sh, line 784: Called __ebuild_main 'prepare'
* phase-functions.sh, line 1071: Called __dyn_prepare
* phase-functions.sh, line 400: Called die
* The specific snippet of code:
* die "The source directory '${S}' doesn't exist"
*
* If you need support, post the output of `emerge --info '=app-admin/opensnitch-ebpf-module-1.6.5.1::pentoo'`,
* the complete build log and the output of `emerge -pqv '=app-admin/opensnitch-ebpf-module-1.6.5.1::pentoo'`.
* The complete build log is located at '/tmp/portage/app-admin/opensnitch-ebpf-module-1.6.5.1/temp/build.log'.
* The ebuild environment file is located at '/tmp/portage/app-admin/opensnitch-ebpf-module-1.6.5.1/temp/environment'.
* Working directory: '/tmp/portage/app-admin/opensnitch-ebpf-module-1.6.5.1/empty'
* S: '/tmp/portage/app-admin/opensnitch-ebpf-module-1.6.5.1/work/opensnitch-ebpf-module-1.6.5.1'
The workdir was removed by this commit: https://github.com/pentoo/pentoo-overlay/commit/0115215de62b5660a4e66c17991e9622879332a4
To fix the issue, one simply needs to add
S="${WORKDIR}/opensnitch-${PV}"
to opensnitch-ebpf-module.ebuild