Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wieso funktioniert dieses ebuild nicht?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
linjunky
Apprentice
Apprentice


Joined: 21 Feb 2007
Posts: 150

PostPosted: Wed Oct 03, 2007 2:38 pm    Post subject: Wieso funktioniert dieses ebuild nicht? Reply with quote

So schaut das Ebuild aus

Code:
localhost black-gentoo # cat black-gentoo-1.0.ebuild
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit kde
set-kdedir 3

DESCRIPTION="A theme package providing kdmtheme/gensplash/ksplash/background"
HOMEPAGE="http://art4linux.org"
SRC_URL="http://electrostorm.net/~krf/files/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RESTRICT="mirror"

DEPEND=""
RDEPEND=">=kde-misc/ksplash-engine-moodin-0.4.2"

# don't compile
src_compile() {
        return
}

src_install() {
        # install kdm theme
        insinto ${KDEDIR}/share/apps/kdm/themes/${PN}
        doins kdmtheme/* || die "doins failed"

        # install ksplash theme
        insinto ${KDEDIR}/share/apps/ksplash/Themes/${PN}
        doins ksplash/* || die "doins failed"

        # fix paths in config
        sed -i \
                -e "s/Gentoo-black/black-gentoo/" \
                gensplash/1280x1024.cfg || die "config manipulation failed"
        # install gensplash theme to /etc/splash
        insinto /etc/splash/${PN}
        doins -r gensplash/* || die "doins failed"



        # install background
        mv gensplash/images/background* black-gentoo.png
        insinto ${KDEDIR}/share/wallpapers
        doins black-gentoo.png
}

pkg_postinst() {
        echo
        elog "This package does not pull gensplash, you have to install it by yourself!"
        elog "The splash theme has been installed to /etc/splash/black-gentoo."
        echo
}







Das passiert wenn ich emerge black-gentoo mache
Code:

localhost black-gentoo # emerge black-gentoo
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) media-gfx/black-gentoo-1.0 to /
 * checking ebuild checksums ;-) ...                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                [ ok ]
 * checking miscfile checksums ;-) ...                                               [ ok ]
>>> Unpacking source...
 *
 * ERROR: media-gfx/black-gentoo-1.0 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_unpack
 *   ebuild.sh, line 768:   Called qa_call 'src_unpack'
 *   ebuild.sh, line 44:   Called src_unpack
 *   ebuild.sh, line 1334:   Called kde_src_unpack
 *   kde.eclass, line 95:   Called base_src_unpack 'unpack'
 *   base.eclass, line 26:   Called unpack
 *   ebuild.sh, line 402:   Called die
 *
 * Nothing passed to the 'unpack' command
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-gfx/black-gentoo-1.0/temp/build.log'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 *

 * Messages for package media-gfx/black-gentoo-1.0:

 *
 * ERROR: media-gfx/black-gentoo-1.0 failed.
 * Call stack:
 *   ebuild.sh, line 1654:   Called dyn_unpack
 *   ebuild.sh, line 768:   Called qa_call 'src_unpack'
 *   ebuild.sh, line 44:   Called src_unpack
 *   ebuild.sh, line 1334:   Called kde_src_unpack
 *   kde.eclass, line 95:   Called base_src_unpack 'unpack'
 *   base.eclass, line 26:   Called unpack
 *   ebuild.sh, line 402:   Called die
 *
 * Nothing passed to the 'unpack' command
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-gfx/black-gentoo-1.0/temp/build.log'.
 * This ebuild is from an overlay: '/usr/local/portage/'
 *
Back to top
View user's profile Send private message
s.hase
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 293

PostPosted: Wed Oct 03, 2007 2:44 pm    Post subject: Re: Wieso funktioniert dieses ebuild nicht? Reply with quote

In der Fehlermeldung steht doch praktisch drin was fehlt:
linjunky wrote:
Code:

 * Nothing passed to the 'unpack' command

Entpacken solltest das tar.gz schon ;) Z.B. so:
Code:

src_unpack() {
    unpack ${A}
}

Ob das mit dem src_compile() geht so wie Du das gemacht hast weiß ich nicht, ich würde das ganz einfach komplett rausnehmen.

edit:
Eventuell liegt es auch hier dran:
Code:

SRC_URL="http://electrostorm.net/~krf/files/${P}.tar.gz"

Das müsste SRC_URI heißen, eventuell geht es dann auch ohne das src_unpack()
Back to top
View user's profile Send private message
linjunky
Apprentice
Apprentice


Joined: 21 Feb 2007
Posts: 150

PostPosted: Wed Oct 03, 2007 2:52 pm    Post subject: Reply with quote

wo muss jetzt
Code:

src_unpack() {
    unpack ${A}


hin?

und was ist an
Code:

SRC_URL="http://electrostorm.net/~krf/files/${P}.tar.gz"

falsh?

hab das nicht geschrieben
hab das unter www.kde-look.org
unter black gentoo gefunden da gab es ein ebuild
Back to top
View user's profile Send private message
s.hase
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 293

PostPosted: Wed Oct 03, 2007 2:55 pm    Post subject: Reply with quote

linjunky wrote:
wo muss jetzt
Code:

src_unpack() {
    unpack ${A}


hin?

Packs einfach dahin wo z.Z. src_compile steht. Ich würde aber ruhig erstmal mal das unten ausprobieren. Dann gehts auch eventuell automatisch.

linjunky wrote:

und was ist an
Code:

SRC_URL="http://electrostorm.net/~krf/files/${P}.tar.gz"

falsh?

hab das nicht geschrieben
hab das unter www.kde-look.org
unter black gentoo gefunden da gab es ein ebuild

URL und URI sind schon unterschiedlich oder? ;)

edit: Und sonst gibt es auch da noch ein nette HowTo für ;)
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
Back to top
View user's profile Send private message
Necoro
Veteran
Veteran


Joined: 18 Dec 2005
Posts: 1912
Location: Germany

PostPosted: Wed Oct 03, 2007 9:45 pm    Post subject: Reply with quote

Das Ding mit der SRC_URI ist der Fehler :) ... die von s.hase genannte src_unpack musst du nicht einbauen, denn das ist die standardmäßige ...

die src_compile würde ich so bauen:
Code:
src_compile
{
  elog "Nothing to compile"
}


Im opera ebuild verwenden sie:
Code:
src_compile
{
  true
}


/edit: außerdem setze mal ${KDEDIR} immer in Anführungszeichen -- falls leerzeichen drin vorkommen sollten
_________________
Inter Deum Et Diabolum Semper Musica Est.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9625
Location: beyond the rim

PostPosted: Thu Oct 04, 2007 3:18 am    Post subject: Reply with quote

Necoro wrote:
die src_compile würde ich so bauen:
Code:
src_compile
{
  elog "Nothing to compile"
}

An solchen Stellen sollte man dann doch noch einfo benutzen statt elog ... (wenn man überhaupt was ausgeben muss)
Back to top
View user's profile Send private message
s.hase
Apprentice
Apprentice


Joined: 19 Nov 2004
Posts: 293

PostPosted: Thu Oct 04, 2007 11:05 am    Post subject: Reply with quote

Necoro wrote:
... die von s.hase genannte src_unpack musst du nicht einbauen, denn das ist die standardmäßige ...

Wieder was gelernt. Wie ich ja geschrieben hatte, da war ich mir so sicher ob das nun nötig ist oder nicht. Aber das src_compile lasse ich jedenfalls bei meinen selber gebauten ebuilds weg, geht auch ohne wenn eh nichts zum compilieren da ist.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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