Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HELP] First ebuild creation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
x11tete11x
n00b
n00b


Joined: 25 Jul 2012
Posts: 13

PostPosted: Tue Aug 26, 2014 3:44 am    Post subject: [HELP] First ebuild creation Reply with quote

Hi, im trying to make my first ebuild, what i want it's simple i just made a script (it's a bash script) to "full upgrade" my system (just call to eix and then emerge with few parameters) it's in a github repo that already put in my portage with layman

but fail (probably be n00b error :) ):

here the error:

Code:
x11tete11x@Jarvis ~ $ sudo emerge full-upgrade

 * IMPORTANT: 9 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-portage/full-upgrade-1.0::x11tete11x
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/app-portage/full-upgrade-1.0/work
>>> Preparing source in /var/tmp/portage/app-portage/full-upgrade-1.0/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-portage/full-upgrade-1.0/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-portage/full-upgrade-1.0/work ...
>>> Source compiled.
>>> Test phase [not enabled]: app-portage/full-upgrade-1.0
 * ERROR: app-portage/full-upgrade-1.0::x11tete11x failed (install phase):
 *   The source directory '/var/tmp/portage/app-portage/full-upgrade-1.0/work/full-upgrade-1.0' doesn't exist
 *
 * Call stack:
 *            ebuild.sh, line 714:  Called __ebuild_main 'install'
 *   phase-functions.sh, line 955:  Called __dyn_install
 *   phase-functions.sh, line 530:  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-portage/full-upgrade-1.0::x11tete11x'`,
 * the complete build log and the output of `emerge -pqv '=app-portage/full-upgrade-1.0::x11tete11x'`.
 * The complete build log is located at '/var/tmp/portage/app-portage/full-upgrade-1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-portage/full-upgrade-1.0/temp/environment'.
 * Working directory: '/usr/lib64/portage/pym'
 * S: '/var/tmp/portage/app-portage/full-upgrade-1.0/work/full-upgrade-1.0'

>>> Failed to emerge app-portage/full-upgrade-1.0, Log file:

>>>  '/var/tmp/portage/app-portage/full-upgrade-1.0/temp/build.log'

 * Messages for package app-portage/full-upgrade-1.0:

 * ERROR: app-portage/full-upgrade-1.0::x11tete11x failed (install phase):
 *   The source directory '/var/tmp/portage/app-portage/full-upgrade-1.0/work/full-upgrade-1.0' doesn't exist
 *
 * Call stack:
 *            ebuild.sh, line 714:  Called __ebuild_main 'install'
 *   phase-functions.sh, line 955:  Called __dyn_install
 *   phase-functions.sh, line 530:  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-portage/full-upgrade-1.0::x11tete11x'`,
 * the complete build log and the output of `emerge -pqv '=app-portage/full-upgrade-1.0::x11tete11x'`.
 * The complete build log is located at '/var/tmp/portage/app-portage/full-upgrade-1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-portage/full-upgrade-1.0/temp/environment'.
 * Working directory: '/usr/lib64/portage/pym'
 * S: '/var/tmp/portage/app-portage/full-upgrade-1.0/work/full-upgrade-1.0'


and here is the ebuild:

Code:
EAPI=4

DESCRIPTION="Simple script to upgrade your system"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
RDEPEND="app-portage/eix"

src_install() {
    chmod +x ${FILESDIR}/full-upgrade
    mkdir -p /${D}/bin/
    cp ${FILESDIR}/full-upgrade /${D}/bin/
}


thx!
Back to top
View user's profile Send private message
edorichev
n00b
n00b


Joined: 01 Sep 2014
Posts: 17
Location: /home/egor/

PostPosted: Mon Sep 01, 2014 8:11 am    Post subject: Reply with quote

http://gentoo.ru/node/15427
_________________
У Vi есть два режима: в одном он пишет, а в другом портит
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum