Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472376 - git-2.eclass unable to unpack package
Summary: git-2.eclass unable to unpack package
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 08:23 UTC by Den
Modified: 2013-06-05 08:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
webids ebuild (webdis-9999.ebuild,395 bytes, text/plain)
2013-06-05 08:23 UTC, Den
Details
ebuild, fixed version (webdis-9999.ebuild,382 bytes, text/plain)
2013-06-05 08:57 UTC, Den
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Den 2013-06-05 08:23:43 UTC
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
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-06-05 08:35:03 UTC
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
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-06-05 08:39:12 UTC
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.
Comment 3 Den 2013-06-05 08:57:17 UTC
Created attachment 350192 [details]
ebuild, fixed version
Comment 4 Den 2013-06-05 08:57:25 UTC
Thank you and sorry :)

I fixed ebuild and now it unpacks properly.
Now I can make an init script for it.

Thanks a lot!