Created attachment 350184 [details] webids ebuild while trying to unpack new package, "ebuild digest" fails with error: If EAPI=1: >>> Unpacked to /var/tmp/portage/net-misc/webdis-9999/work/webdis-9999 * ERROR: net-misc/webdis-9999 failed (depend phase): * error sourcing ebuild * * Call stack: * ebuild.sh, line 552: Called die * The specific snippet of code: * source "$EBUILD" || die "error sourcing ebuild" * * If you need support, post the output of `emerge --info '=net-misc/webdis-9999'`, * the complete build log and the output of `emerge -pqv '=net-misc/webdis-9999'`. * This ebuild is from an overlay named 'x-krontage': '/home/kron/Documents/utinet/repos/krontage/' * The ebuild environment file is located at '/var/tmp/portage/net-misc/webdis-9999/temp/environment'. * Working directory: '/home/kron/Documents/utinet/repos/krontage/net-misc/webdis' * S: '/var/tmp/portage/net-misc/webdis-9999/work/webdis-9999' And if EAPI=5 >>> Unpacked to /var/tmp/portage/net-misc/webdis-9999/work/webdis-9999 /usr/portage/eclass/git-2.eclass: line 599: default_src_unpack: command not found * ERROR: net-misc/webdis-9999 failed (depend phase): * error sourcing ebuild * * Call stack: * ebuild.sh, line 552: Called die * The specific snippet of code: * source "$EBUILD" || die "error sourcing ebuild" * * If you need support, post the output of `emerge --info '=net-misc/webdis-9999'`, * the complete build log and the output of `emerge -pqv '=net-misc/webdis-9999'`. * This ebuild is from an overlay named 'x-krontage': '/home/kron/Documents/utinet/repos/krontage/' * The ebuild environment file is located at '/var/tmp/portage/net-misc/webdis-9999/temp/environment'. * Working directory: '/home/kron/Documents/utinet/repos/krontage/net-misc/webdis' * S: '/var/tmp/portage/net-misc/webdis-9999/work/webdis-9999' My ebuild placed with attach
Don't call external functionality in global scope, remove the last line. http://devmanual.gentoo.org/appendices/common-problems http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1#doc_chap3
On a side note, /usr/portage/eclass/git-2.eclass contains DEPEND="dev-vcs/git" so you don't need to explicitly depend on it; you now have a runtime dependency on it whereas it doesn't need it at runtime (as far as I know). As for unpacking, you'll note that that same file also contains EXPORT_FUNCTIONS src_unpack which means that the unpack function as defined by that eclass runs automatically.
Created attachment 350192 [details] ebuild, fixed version
Thank you and sorry :) I fixed ebuild and now it unpacks properly. Now I can make an init script for it. Thanks a lot!