View previous topic :: View next topic |
Author |
Message |
linjunky Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/44256643845fbe17caab2f.gif)
Joined: 21 Feb 2007 Posts: 150
|
Posted: Wed Oct 03, 2007 2:38 pm Post subject: Wieso funktioniert dieses ebuild nicht? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
s.hase Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/45298664248862a1ab07eb.jpg)
Joined: 19 Nov 2004 Posts: 293
|
Posted: Wed Oct 03, 2007 2:44 pm Post subject: Re: Wieso funktioniert dieses ebuild nicht? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
linjunky Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/44256643845fbe17caab2f.gif)
Joined: 21 Feb 2007 Posts: 150
|
Posted: Wed Oct 03, 2007 2:52 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
s.hase Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/45298664248862a1ab07eb.jpg)
Joined: 19 Nov 2004 Posts: 293
|
Posted: Wed Oct 03, 2007 2:55 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Necoro Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/163672451943ab3dcad64df.gif)
Joined: 18 Dec 2005 Posts: 1912 Location: Germany
|
Posted: Wed Oct 03, 2007 9:45 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Genone Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/21004157514287ab2b29021.jpg)
Joined: 14 Mar 2003 Posts: 9625 Location: beyond the rim
|
Posted: Thu Oct 04, 2007 3:18 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
s.hase Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/45298664248862a1ab07eb.jpg)
Joined: 19 Nov 2004 Posts: 293
|
Posted: Thu Oct 04, 2007 11:05 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|