неправильно пишу ebuild-ы, где ошибка?
Итак, создал себе PORTDIR_OVERLAY в /usr/local/portage
Пытаюсь скомпилировать oo2c oberon-2 to c translator
Мой ebuild:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="oo2c optimizing oberon-2 compiler"
HOMEPAGE="http://ooc.sourceforge.net"
SRC_URI="http://ovh.dl.sourceforge.net/sourceforge/ooc/oo2c_32-2.1.9.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ppc"
IUSE=""
DEPEND=""
S=${WORKDIR}/oo2c_32-2.1.9
src_unpack() {
unpack ${A}
cd "${S}"
}
src_compile() {
econf || die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die
}
Компиляция проходит нормально, а когда наступает время инсталлировать:
>>> Install oo2c-2.1.9 into /var/tmp/portage/oo2c-2.1.9/image/ category dev-langfor i in oo2c oob ooef oowhereis; do \
rm -f "/usr/share/man/man1/$i.1" "/usr/share/man/man1/$i.1.gz"; \
done
ACCESS DENIED unlink: /usr/share/man/man1/oo2c.1
rm: cannot remove `/usr/share/man/man1/oo2c.1': Permission denied
ACCESS DENIED unlink: /usr/share/man/man1/oo2c.1.gz
rm: cannot remove `/usr/share/man/man1/oo2c.1.gz': Permission denied
ACCESS DENIED unlink: /usr/share/man/man1/oob.1
rm: cannot remove `/usr/share/man/man1/oob.1': Permission denied
ACCESS DENIED unlink: /usr/share/man/man1/oob.1.gz
rm: cannot remove `/usr/share/man/man1/oob.1.gz': Permission denied
ACCESS DENIED unlink: /usr/share/man/man1/ooef.1
rm: cannot remove `/usr/share/man/man1/ooef.1': Permission denied
ACCESS DENIED unlink: /usr/share/man/man1/ooef.1.gz
rm: cannot remove `/usr/share/man/man1/ooef.1.gz': Permission denied
ACCESS DENIED unlink: /usr/share/man/man1/oowhereis.1
rm: cannot remove `/usr/share/man/man1/oowhereis.1': Permission denied
ACCESS DENIED unlink: /usr/share/man/man1/oowhereis.1.gz
rm: cannot remove `/usr/share/man/man1/oowhereis.1.gz': Permission denied
make: *** [uninstall-man] Error 1
!!! ERROR: dev-lang/oo2c-2.1.9 failed.
!!! Function src_install, Line 137, Exitcode 2
!!! make install failed
!!! If you need support, post the topmost build error, NOT this status message.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/var/log/sandbox/sandbox-dev-lang_-_oo2c-2.1.9-28430.log"
unlink: /usr/share/man/man1/oo2c.1
unlink: /usr/share/man/man1/oo2c.1.gz
unlink: /usr/share/man/man1/oob.1
unlink: /usr/share/man/man1/oob.1.gz
unlink: /usr/share/man/man1/ooef.1
unlink: /usr/share/man/man1/ooef.1.gz
unlink: /usr/share/man/man1/oowhereis.1
unlink: /usr/share/man/man1/oowhereis.1.gz
--------------------------------------------------------------------------------
попробовал другой пакет, эмулятор xeuphoric
мой ebuild:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="xeuphoric oric emulator"
HOMEPAGE="http://www.teaser.fr/~amajorel/xeuphoric/xeuphoric1.html"
SRC_URI="http://www.teaser.fr/~amajorel/xeuphoric/xeuphoric-0.18.2.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="x11-base/xorg-x11"
S=${WORKDIR}/${P}
src_compile() {
# econf || die "econf failed"
./configure
# --host=${CHOST} \
# --prefix=/usr \
# --infodir=/usr/share/info \
emake || die "emake failed"
}
src_install() {
make install || die
#make \
# prefix=${D}/usr \
# mandir=${D}/usr/share/man \
# infodir=${D}/usr/share/info \
# libdir=${D}/usr/$(get_libdir) \
# install || die
# einstall || die
}
Ошибки:
>>> Install xeuphoric-0.18.2 into /var/tmp/portage/xeuphoric-0.18.2/image/ category app-emulation
mkdir -p "`cat .bindir`"
cp xeuphoric "`cat .bindir`/xeuphoric-`cat VERSION`"
ACCESS DENIED open_wr: /usr/local/bin/xeuphoric-0.18.2
cp: cannot create regular file `/usr/local/bin/xeuphoric-0.18.2': Permission denied
make: *** [install] Error 1
!!! ERROR: app-emulation/xeuphoric-0.18.2 failed.
!!! Function src_install, Line 24, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-app-emulation_-_xeuphoric-0.18.2-2231.log"
open_wr: /usr/local/bin/xeuphoric-0.18.2
--------------------------------------------------------------------------------
- Для комментирования войдите или зарегистрируйтесь
Дык вроде как
Дык вроде как говорит что прав не хватает. Посмотри оунера и группу на файлы ебилда (в идеале - portage portage).
попробовал все
попробовал все тоже не инсталлируется