View previous topic :: View next topic |
Author |
Message |
malvikus n00b
Joined: 23 Jul 2012 Posts: 5
|
Posted: Thu Feb 21, 2013 2:52 pm Post subject: [HELP] Create ebuild for package |
|
|
Could anyone help, please? I'm trying to prepare ebuild for GBS:https://source.tizen.org/documentation/reference/git-build-system/.
What's wrong here? Why I'm getting this error while trying unpack tar.gz?
ebuild /usr/local/portage/dev-util/gbs/gbs-0.13_alpha.ebuild unpack
Code: |
>>> Existing ${T}/environment for 'gbs-0.13_alpha' will be sourced. Run
>>> 'clean' to start with a fresh environment.
>>> Not marked as unpacked; recreating WORKDIR...
* checking ebuild checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking gbs-0.13_alpha.tar.gz to /var/tmp/portage/dev-util/gbs-0.13_alpha/work
* ERROR: dev-util/gbs-0.13_alpha failed (unpack phase):
* gbs-0.13_alpha.tar.gz does not exist
*
* Call stack:
* ebuild.sh, line 93: Called src_unpack
* environment, line 3719: Called unpack 'gbs-0.13_alpha.tar.gz'
* phase-helpers.sh, line 297: Called die
* The specific snippet of code:
* [[ ! -s ${srcdir}${x} ]] && die "${x} does not exist"
*
* If you need support, post the output of `emerge --info '=dev-util/gbs-0.13_alpha'`,
* the complete build log and the output of `emerge -pqv '=dev-util/gbs-0.13_alpha'`.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* The complete build log is located at '/var/tmp/portage/dev-util/gbs-0.13_alpha/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-util/gbs-0.13_alpha/temp/environment'.
* Working directory: '/var/tmp/portage/dev-util/gbs-0.13_alpha/work'
* S: '/var/tmp/portage/dev-util/gbs-0.13_alpha/work/gbs-0.13_alpha'
|
The ebuild itself:
Code: |
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
PYTHON_DEPEND="2:2.7:2.7"
inherit distutils
DESCRIPTION="Command line tool for building packages for Tizen platform"
HOMEPAGE="https://source.tizen.org/documentation/reference/git-build-system"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="amd64 x86"
DEPEND="
>=dev-util/osc-0.131
dev-vcs/git
app-arch/rpm
dev-util/suse-build
"
RDEPEND="${DEPEND}
app-admin/sudo
dev-util/obs-service-meta
"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_unpack() {
unpack ${PF}.tar.gz
}
src_compile() {
distutils_src_compile
}
src_install() {
distutils_src_install
### Commented from original ebuild #
#dosym osc-wrapper.py /usr/bin/osc
#keepdir /usr/lib/osc/source_validators
#cd "${ED}"/usr/
#find . -type f -exec sed -i 's|/usr/bin/build|/usr/bin/suse-build|g' {} +
#find . -type f -exec sed -i 's|/usr/lib/build|/usr/share/suse-build|g' {} +
#rm -f "${ED}"/usr/share/doc/${PN}*/TODO*
}
|
Location of ebuild and other info:
Code: |
ls /usr/local/portage/dev-util/gbs/
Manifest gbs-0.13.tar.gz gbs-0.13_alpha.ebuild gbs-0.13_alpha.tar.gz
cat /etc/portage/make.conf | grep DISTDIR
DISTDIR="/usr/local/portage/distfiles"
emerge -s "%@dev-util/gbs"
* dev-util/gbs
Latest version available: 0.13_alpha
Latest version installed: [ Not Installed ]
Size of files: 0 kB
Homepage: https://source.tizen.org/documentation/reference/git-build-system
Description: Command line tool for building packages for Tizen platform
License: GPL-2
|
|
|
Back to top |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Thu Feb 21, 2013 3:34 pm Post subject: Re: [HELP] Create ebuild for package |
|
|
malvikus wrote: | * ERROR: dev-util/gbs-0.13_alpha failed (unpack phase):
* gbs-0.13_alpha.tar.gz does not exist
...
ls /usr/local/portage/dev-util/gbs/
Manifest gbs-0.13.tar.gz gbs-0.13_alpha.ebuild gbs-0.13_alpha.tar.gz
...
cat /etc/portage/make.conf | grep DISTDIR
DISTDIR="/usr/local/portage/distfiles"
|
As far as I can see at a first glance, shouldn't gbs-0.13_alpha.tar.gz be in /usr/local/portage/distfiles rather than in /usr/local/portage/dev-util/gbs ?
EDIT : And BTW remove the needless unpack ${PF}.tar.gz from your no-less needless src_unpack procedure.
And of course, add the appropriate SRC_URI= statement. _________________
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Feb 21, 2013 3:52 pm Post subject: |
|
|
The folks on the #gentoo-sunrise IRC channel are a great source of advice and constructive criticism as well.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|