Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild e scons
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
alexandre_parente
n00b
n00b


Joined: 29 Jun 2003
Posts: 37

PostPosted: Mon Jan 10, 2005 3:22 am    Post subject: ebuild e scons Reply with quote

Estou tentando escrever um ebuild para o programinha do meu irmão, só que como ele usa "scons" no lugar do tradicinal autotools estou tendo problemas.

abaixo o ebuild:

# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit kde
need-kde 3

DESCRIPTION="A simple KDE network monitor"
HOMEPAGE="http://sourceforge.net/projects/knetstats/"
SRC_URI="mirror://sourceforge/knetstats/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="dev-util/scons"
RDEPEND=""

src_compile() {

scons || die "failed"
}

src_install() {

dobin bin/knetstats || die "failed"

insinto /usr/share/applications/
doins knetstats.desktop

insinto /usr/share/apps/knetstats/pics/
doins src/pics/*png

insinto /usr/share/doc/HTML/en/knetstats/
doins doc/index.docbook

#i18n pt_BR
dodir /usr/share/locale/pt_BR/LC_MESSAGES
insinto /usr/share/locale/pt_BR/LC_MESSAGES/
newins po/pt_BR.mo knetstats.mo

#i18n es
dodir /usr/share/locale/es/LC_MESSAGES
insinto /usr/share/locale/es/LC_MESSAGES/
newins po/es.mo knetstats.mo

#i18n de
dodir /usr/share/locale/de/LC_MESSAGES
insinto /usr/share/locale/de/LC_MESSAGES/
newins po/de.mo knetstats.mo

#i18n it
dodir /usr/share/locale/it/LC_MESSAGES
insinto /usr/share/locale/it/LC_MESSAGES/
newins po/it.mo knetstats.mo

#i18n ky_KG
dodir /usr/share/locale/ky_KG/LC_MESSAGES
insinto /usr/share/locale/ky_KG/LC_MESSAGES/
newins po/ky_KG.mo knetstats.mo

dodoc COPYING README CHANGELOG
}

testando...

gentoo knetstats # emerge knetstats
Calculating dependencies ...done!
>>> emerge (1 of 1) net-misc/knetstats-1.2 to /
>>> md5 src_uri ;-) knetstats-1.2.tar.bz2
>>> Unpacking source...
>>> Unpacking knetstats-1.2.tar.bz2 to /var/tmp/portage/knetstats-1.2/work
>>> Source unpacked.
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
/usr/qt/3/bin/uic -o src/configurebase.h src/configurebase.ui
/usr/qt/3/bin/uic -impl configurebase.h -o src/uic_configurebase.cc src/configurebase.ui
/usr/qt/3/bin/moc -o src/moc_configurebase.cc src/configurebase.h
g++ -O2 -Wall -pipe -fomit-frame-pointer -I/usr/qt/3/include -I/usr/kde/3.3/include -I/usr/kde/3.3/include/kde -c -o src/uic_configurebase.o src/uic_configurebase.cc
g++ -O2 -Wall -pipe -fomit-frame-pointer -I/usr/qt/3/include -I/usr/kde/3.3/include -I/usr/kde/3.3/include/kde -c -o src/moc_configurebase.o src/moc_configurebase.cc
/usr/qt/3/bin/uic -o src/statisticsbase.h src/statisticsbase.ui
/usr/qt/3/bin/uic -impl statisticsbase.h -o src/uic_statisticsbase.cc src/statisticsbase.ui
/usr/qt/3/bin/moc -o src/moc_statisticsbase.cc src/statisticsbase.h
g++ -O2 -Wall -pipe -fomit-frame-pointer -I/usr/qt/3/include -I/usr/kde/3.3/include -I/usr/kde/3.3/include/kde -c -o src/uic_statisticsbase.o src/uic_statisticsbase.cc
g++ -O2 -Wall -pipe -fomit-frame-pointer -I/usr/qt/3/include -I/usr/kde/3.3/include -I/usr/kde/3.3/include/kde -c -o src/moc_statisticsbase.o src/moc_statisticsbase.cc
g++ -O2 -Wall -pipe -fomit-frame-pointer -I/usr/qt/3/include -I/usr/kde/3.3/include -I/usr/kde/3.3/include/kde -c -o src/main.o src/main.cpp
g++ -O2 -Wall -pipe -fomit-frame-pointer -I/usr/qt/3/include -I/usr/kde/3.3/include -I/usr/kde/3.3/include/kde -c -o src/knetstats.o src/knetstats.cpp
g++ -O2 -Wall -pipe -fomit-frame-pointer -I/usr/qt/3/include -I/usr/kde/3.3/include -I/usr/kde/3.3/include/kde -c -o src/statistics.o src/statistics.cpp
g++ -O2 -Wall -pipe -fomit-frame-pointer -I/usr/qt/3/include -I/usr/kde/3.3/include -I/usr/kde/3.3/include/kde -c -o src/configure.o src/configure.cpp
/usr/qt/3/bin/moc -o src/moc_knetstats.cc src/knetstats.h
g++ -O2 -Wall -pipe -fomit-frame-pointer -I/usr/qt/3/include -I/usr/kde/3.3/include -I/usr/kde/3.3/include/kde -c -o src/moc_knetstats.o src/moc_knetstats.cc
/usr/qt/3/bin/moc -o src/moc_statistics.cc src/statistics.h
g++ -O2 -Wall -pipe -fomit-frame-pointer -I/usr/qt/3/include -I/usr/kde/3.3/include -I/usr/kde/3.3/include/kde -c -o src/moc_statistics.o src/moc_statistics.cc
/usr/qt/3/bin/moc -o src/moc_configure.cc src/configure.h
g++ -O2 -Wall -pipe -fomit-frame-pointer -I/usr/qt/3/include -I/usr/kde/3.3/include -I/usr/kde/3.3/include/kde -c -o src/moc_configure.o src/moc_configure.cc
g++ -o bin/knetstats src/uic_configurebase.o src/moc_configurebase.o src/uic_statisticsbase.o src/moc_statisticsbase.o src/main.o src/knetstats.o src/statistics.o src/configure.o src/moc_knetstats.o src/moc_statistics.osrc/moc_configure.o -L/usr/qt/3/lib -L/usr/kde/3.3/lib -ldl -lkdecore -lkdeui
scons: done building targets.
ACCESS DENIED open_wr: /usr/kde/3.3/include/.scons16316
ACCESS DENIED open_wr: /usr/kde/3.3/include/.sconsign
ACCESS DENIED open_wr: /usr/qt/3/include/.scons16316
ACCESS DENIED open_wr: /usr/qt/3/include/.sconsign
ACCESS DENIED open_wr: /usr/qt/3/include/private/.scons16316
ACCESS DENIED open_wr: /usr/qt/3/include/private/.sconsign
ACCESS DENIED open_wr: /usr/kde/3.3/lib/.scons16316
ACCESS DENIED open_wr: /usr/kde/3.3/lib/.sconsign
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-net-misc_-_knetstats-1.2-16280.log"

open_wr: /usr/kde/3.3/include/.scons16316
open_wr: /usr/kde/3.3/include/.sconsign
open_wr: /usr/qt/3/include/.scons16316
open_wr: /usr/qt/3/include/.sconsign
open_wr: /usr/qt/3/include/private/.scons16316
open_wr: /usr/qt/3/include/private/.sconsign
open_wr: /usr/kde/3.3/lib/.scons16316
open_wr: /usr/kde/3.3/lib/.sconsign
--------------------------------------------------------------------------------

Bem... desconheco o erro, mas lendo o forum encontrei alguns erros parecidos e uma solução não muito boa, que mostro abaixo:

# FEATURES="-sandbox -usersandbox" emerge knetstats

assim o portage compila e instala, mas não me agrada :)
Alguem tem alguma sugestão?
Back to top
View user's profile Send private message
Operador Nabla
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 176
Location: Salesópolis - SP - Brasil

PostPosted: Tue Jan 11, 2005 4:59 pm    Post subject: Reply with quote

Não seria o caso de você prefixar os endereços dos arquivos com a variável ${D} no seu ebuild? Por exemplo: insinto ${D}/usr/(...) em vez de insinto /usr/(...) (não sei se o comando insinto coloca este prefixo automaticamente).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese 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