pentoo / pentoo-overlay

Gentoo overlay for security tools as well as the heart of the Pentoo Livecd
323 stars 92 forks source link

app-admin/opensnitch-ebpf-module-1.6.5.1: build fail #1550

Closed kcning closed 9 months ago

kcning commented 9 months ago

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

>>> 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'
blshkv commented 9 months ago

yeap, thanks. It was a last sec change, and I was not able to test it since my kernel does not match all requirements.

kcning commented 9 months ago

It's fixed. Thanl you!