| View previous topic :: View next topic |
| Author |
Message |
carney1979 Tux's lil' helper


Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Sat Mar 06, 2004 6:07 pm Post subject: Is It OK to Install Non-Gentoo Programs? |
|
|
I have another hobby that compliments my computer hobby. It's ham radio.
There are some good ham radio programs for the ham digital modes (keyboard to keyboard communications).
One that I like is KPsk for KDE (KDE 3.2 and sound are already installed here).
Unfortunately, there don't seem to be too many (if any) ham radio apps in the portage tree.
My question is can I just download the tarball and make it and install it, or is there some better way to integrate it onto my system?
David |
|
| Back to top |
|
 |
banadushi n00b

Joined: 26 Jun 2003 Posts: 37 Location: San Antonio, TX USA Earth
|
Posted: Sat Mar 06, 2004 6:33 pm Post subject: Re: Is It OK to Install Non-Gentoo Programs? |
|
|
| carney1979 wrote: | I have another hobby that compliments my computer hobby. It's ham radio.
There are some good ham radio programs for the ham digital modes (keyboard to keyboard communications).
One that I like is KPsk for KDE (KDE 3.2 and sound are already installed here).
Unfortunately, there don't seem to be too many (if any) ham radio apps in the portage tree.
My question is can I just download the tarball and make it and install it, or is there some better way to integrate it onto my system?
David |
The best way is to make an ebuild for it. But you can also just do the whole install thing and put it in /usr/local that is what that dir structure is for anyways. |
|
| Back to top |
|
 |
carney1979 Tux's lil' helper


Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Sat Mar 06, 2004 7:30 pm Post subject: How?? |
|
|
| Quote: | | The best way is to make an ebuild for it. |
How do I do that?
David |
|
| Back to top |
|
 |
ha5nyz n00b

Joined: 27 Nov 2003 Posts: 7
|
Posted: Sat Mar 06, 2004 8:03 pm Post subject: |
|
|
I have written the ebuild. I hope it will be included to the portage soon.
Here is the url: https://bugs.gentoo.org/attachment.cgi?id=26947&action=view
73! DX! _________________ perl -e 'print pack("H*","6861356e797a40726164696f6b6c75622e7075736b61732e6875")'
irc.freenode.net #gentoo-hu #hamradio |
|
| Back to top |
|
 |
carney1979 Tux's lil' helper


Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Sat Mar 06, 2004 8:30 pm Post subject: Thanks! |
|
|
Thanks, Zoltan.
Hope to work you one day!
73's de David N1ZHE |
|
| Back to top |
|
 |
carney1979 Tux's lil' helper


Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Sun Mar 07, 2004 2:18 pm Post subject: Berkeley DB Libs? |
|
|
I'm getting an error during configure.
configure: error: Cannot find the Berkeley DB libs
!!! ERROR: x11-misc/kpsk-1.0.1 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-x11-misc_-_kpsk-1.0.1-28623.log"
open_wr: /usr/qt/3/etc/settings/.qtrc.lock
open_wr: /usr/qt/3/etc/settings/.qtrc.lock
--------------------------------------------------------------------------------
bash-2.05b#
I emerged BerkeleyDB but I still get the same error.
Help!
David |
|
| Back to top |
|
 |
giddyup n00b

Joined: 05 Oct 2002 Posts: 17
|
Posted: Sun Mar 07, 2004 5:15 pm Post subject: |
|
|
| do you have 'sandbox' in your FEATURES (in /etc/make.conf)? if so, you might want to try commenting 'sandbox' out and try the emerge again. |
|
| Back to top |
|
 |
carney1979 Tux's lil' helper


Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Sun Mar 07, 2004 5:45 pm Post subject: Sandbox |
|
|
...Sandbox has always been commented out.
David |
|
| Back to top |
|
 |
EliasP Guru


Joined: 06 Dec 2002 Posts: 318 Location: South-West Germany
|
|
| Back to top |
|
 |
ha5nyz n00b

Joined: 27 Nov 2003 Posts: 7
|
Posted: Mon Mar 08, 2004 3:34 pm Post subject: |
|
|
Hi david!
What db version do you have?
regards
Zoli _________________ perl -e 'print pack("H*","6861356e797a40726164696f6b6c75622e7075736b61732e6875")'
irc.freenode.net #gentoo-hu #hamradio |
|
| Back to top |
|
 |
gorshing n00b


Joined: 18 Nov 2002 Posts: 39 Location: Oklahoma, US
|
|
| Back to top |
|
 |
Carlo Developer


Joined: 12 Aug 2002 Posts: 3356
|
Posted: Mon Mar 08, 2004 6:13 pm Post subject: |
|
|
The mentioned ebuild should inherit from kde.eclass to circumvent sandbox problems. The ebuild header is invalid too.
Add a inherit kde line, remove the src_-functions (and the implicit added qt/kdelibs dependencies) and the ebuild should compile.
| giddyup wrote: | | do you have 'sandbox' in your FEATURES (in /etc/make.conf)? if so, you might want to try commenting 'sandbox' out and try the emerge again. |
Don't! It prevents you from breaking your system. If an ebuild doesn't merge because of sandbox violations, then report it, but never disable the sandbox.
Carlo _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
| Back to top |
|
 |
carney1979 Tux's lil' helper


Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Tue Mar 09, 2004 3:17 am Post subject: DB Version |
|
|
To ha5nyz: DB version .25
To Carlo: I'm a complete ebuild newb. Could you be a bit more specific?
Thanks to all.
David |
|
| Back to top |
|
 |
Carlo Developer


Joined: 12 Aug 2002 Posts: 3356
|
Posted: Tue Mar 09, 2004 8:46 am Post subject: Re: DB Version |
|
|
| carney1979 wrote: | | To Carlo: I'm a complete ebuild newb. Could you be a bit more specific? |
| Code: | # Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
IUSE=""
inherit kde
DESCRIPTION="KPSK is a PSK31 digital radio communications application for use by licensed amateur radio operators"
HOMEPAGE="http://kpsk.sourceforge.net/"
SRC_URI="mirror://sourceforge/kpsk/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
RESTRICT="nomirror"
DEPEND=">=sys-libs/db-3.1
sys-libs/zlib
media-libs/libpng" |
(didn't tested it, though)
Carlo _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
| Back to top |
|
 |
carney1979 Tux's lil' helper


Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Tue Mar 09, 2004 10:38 am Post subject: |
|
|
ha5nyz: db version is: sys-libs/db-4.1.25_p1-r3 (I had the wrong db in my earlier post)
Tried your mods, Carlo. Sorry to say it didn't work. I confirmed that I have all the dependencies listed in the ebuild. Dependency versions are all better than required.
David |
|
| Back to top |
|
 |
Carlo Developer


Joined: 12 Aug 2002 Posts: 3356
|
Posted: Tue Mar 09, 2004 3:08 pm Post subject: |
|
|
| carney1979 wrote: | | Sorry to say it didn't work. |
But you don't get sandbox errors anymore. Do you? I'm getting, even with reduced CFLAGS, the following error:
| Code: | g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i686 -pipe -fno-exceptions -fno-check-new -c -o logbook.o `test -f logbook.cpp || echo './'`logbook.cpp
logcore.cpp: In constructor `logCore::logCore()':
logcore.cpp:33: error: cannot convert `char*' to `DB_TXN*' in argument passing
logcore.cpp:40: error: cannot convert `char*' to `DB_TXN*' in argument passing
make[3]: *** [logcore.o] Fehler 1
make[3]: *** Warte auf noch nicht beendete Prozesse...
make[3]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/kpsk'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/kpsk'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1'
make: *** [all] Fehler 2
|
The ebuild works, but the compilation fails.
Carlo _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
| Back to top |
|
 |
carney1979 Tux's lil' helper


Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Tue Mar 09, 2004 5:27 pm Post subject: Sandbox Errors |
|
|
Yes, I'm still getting sandbox errors. Sandbox is "on" in my /etc/make.conf.
Here's the error from /tmp:
| Code: |
open_wr: /usr/qt/3/etc/settings/.qtrc.lock
open_wr: /usr/qt/3/etc/settings/.qtrc.lock
|
It still complains about the db files, too.
| Code: |
checking for main in -lpthread... yes
checking for main in -ldb-4.0... no
checking for main in -ldb-3.3... no
checking for main in -ldb-3.2... no
checking for main in -ldb-3.1... no
configure: error: Cannot find the Berkeley DB libs
!!! ERROR: media-radio/kpsk-1.0.1 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-radio_-_kpsk-1.0.1-11385.log"
open_wr: /usr/qt/3/etc/settings/.qtrc.lock
open_wr: /usr/qt/3/etc/settings/.qtrc.lock
--------------------------------------------------------------------------------
root@n1zhe david #
|
What do you think??
David |
|
| Back to top |
|
 |
Carlo Developer


Joined: 12 Aug 2002 Posts: 3356
|
Posted: Tue Mar 09, 2004 6:27 pm Post subject: |
|
|
1. The db problem: The documentation states the software works with db-3.1 up to 4. Maybe it does not work with 4.1. So I would advise you to change the dependency to <sys-libs/db-4.1.
2. The sandbox problem: I don't know what you did to emerge your local ebuild. If you haven't already, please read the available documentation and then do the following: Put my proposed ebuild in your portage overlay directory, change the dependencies as described above, delete all data in /var/tmp/portage, switch to ebuild's directory and then use the ebuild command to merge the ebuild.
Carlo _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
| Back to top |
|
 |
carney1979 Tux's lil' helper


Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Wed Mar 17, 2004 5:28 pm Post subject: Sourceforge |
|
|
I read on KPSK's Sourceforge website that it won't compile with the 4.1.25 db version that I have.
I will try upgrading/downgrading the db and try again.
It shouldn't be this hard....
David |
|
| Back to top |
|
 |
Carlo Developer


Joined: 12 Aug 2002 Posts: 3356
|
Posted: Sat Mar 20, 2004 1:23 pm Post subject: |
|
|
You don't need to downgrade. The db ebuilds are slotted.
Carlo _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
| Back to top |
|
 |
carney1979 Tux's lil' helper


Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Sat Mar 20, 2004 2:49 pm Post subject: Still a Newb |
|
|
Carlo,
I'm still a Gentoo Newb and I don't understand what "slotted" means.
I installed a lesser version of DB. When I did this, it did not remove the 4.1.25 version.
I tried emerging KPSK again, but got the same DB error. So I removed the DB-4.1.25. KPSK compiled, but during the install, it failed again, something about a .qtrc.lock.
Here's the last few lines with the error:
REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -march=athlon-xp -pipe -O2 -fno-exceptions -fno-check-new -c -o myqlineedit.moc.o `test -f myqlineedit.moc.cpp || echo './'`myqlineedit.moc.cpp
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -march=athlon-xp -pipe -O2 -fno-exceptions -fno-check-new -o kpsk -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib -R /usr/kde/3.2/lib -R /usr/qt/3/lib -R /usr/X11R6/lib kpskmeter.o kpsktip.o autocallchexdlg.o dcddlg.o waterfall.o qsoinfo.o personalsdlg.o mystatusbar.o myqlistviewitem.o myqlineedit.o mainview.o logsearch.o logedit.o logcore.o logbook.o gttextwidget.o fixtextdlg.o fixtext.o devicesdlg.o banddlg.o auxwindow.o autocqdlg.o appearencedlg.o kpsk.o main.o kpskmeter.moc.o autocqdlg.moc.o fixtextdlg.moc.o waterfall.moc.o qsoinfo.moc.o banddlg.moc.o devicesdlg.moc.o mystatusbar.moc.o appearencedlg.moc.o logsearch.moc.o auxwindow.moc.o autocallchexdlg.moc.o personalsdlg.moc.o mainview.moc.o gttextwidget.moc.o kpsk.moc.o fixtext.moc.o logbook.moc.o dcddlg.moc.o logedit.moc.o myqlineedit.moc.o ./server/libserver.a ./modes/libmodes.a -lm -lkio -lkdeui -lkdecore -lqt-mt -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread -ldb-4.0 -lpthread
make[3]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/kpsk'
make[2]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/kpsk'
Making all in po
make[2]: Entering directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/po'
Making all in doc
make[2]: Entering directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/doc'
Making all in en
make[3]: Entering directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/doc/en'
/usr/kde/3.2/bin/meinproc --check --cache index.cache.bz2 ./index.docbook
make[3]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/doc/en'
make[3]: Entering directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/doc'
make[2]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/doc'
make[2]: Entering directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1'
make[2]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1'
make[1]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1'
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-radio_-_kpsk-1.0.1-30441.log"
open_wr: /usr/qt/3/etc/settings/.qtrc.lock
open_wr: /usr/qt/3/etc/settings/.qtrc.lock
--------------------------------------------------------------------------------
n1zhe david #
I went to the work directory. Everything seemed to be there, so I tried a 'make install'. Everything seems to work as KPSK normally does, but Portage doesn't know it's there. I would like to install it normally with emerge.
For this install attempt, everything was normal, ie, no modifications to the ebuild, etc. All I did was replace db-4.1.25_p1-r3 with version db-4.0.14-r2.
db-4.1.25_p1-r3 was reinstalled with the next 'emerge sync' and 'emerge -uUvd world'. KPSK continued to function.
David  |
|
| Back to top |
|
 |
Carlo Developer


Joined: 12 Aug 2002 Posts: 3356
|
Posted: Sat Mar 20, 2004 4:28 pm Post subject: Re: Still a Newb |
|
|
| carney1979 wrote: | I'm still a Gentoo Newb and I don't understand what "slotted" means.
I installed a lesser version of DB. When I did this, it did not remove the 4.1.25 version. |
Yes, "slotted" means coexistence of different versions. man 5 ebuild (or the online documentation) for more information.
If your're still facing sandbox problems, then your ebuild is either missing the "inherit kde" line or you're merging the wrong ebuild. The sample ebuild I posted above, doesn't fail because of a sandbox issue.
| carney1979 wrote: | | db-4.1.25_p1-r3 was reinstalled with the next 'emerge sync' and 'emerge -uUvd world'. |
Another ebuild of your system seems to depend on that version. -U implies -u and -d means --debug not --deep (-D), if you meant the latter, btw..
Carlo _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
| Back to top |
|
 |
carney1979 Tux's lil' helper


Joined: 01 Mar 2004 Posts: 145 Location: Maine
|
Posted: Sat Mar 20, 2004 5:10 pm Post subject: Getting Closer.... |
|
|
I tried adding 'inherit kde' in the appropriate place in the original ebuild; still didn't work.
So I tried your ebuild:
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
IUSE=""
inherit kde
DESCRIPTION="KPSK is a PSK31 digital radio communications application for use by licensed amateur radio operators"
HOMEPAGE="http://kpsk.sourceforge.net/"
SRC_URI="mirror://sourceforge/kpsk/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
RESTRICT="nomirror"
DEPEND=">=sys-libs/db-3.1
sys-libs/zlib
media-libs/libpng"
...and it got a lot closer.
It stopped with this error:
make[2]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/kpsk/modes'
make[2]: Entering directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/kpsk'
make[3]: Entering directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/kpsk'
/bin/sh ../admin/mkinstalldirs /var/tmp/portage/kpsk-1.0.1/image//bin
mkdir -p -- /var/tmp/portage/kpsk-1.0.1/image//bin
/bin/sh ../libtool --silent --mode=install /bin/install -c -p kpsk /var/tmp/portage/kpsk-1.0.1/image//bin/kpsk
/bin/sh ../admin/mkinstalldirs /share/applnk/Applications/HamRadio/
mkdir -p -- /share/applnk/Applications/HamRadio/
ACCESS DENIED mkdir: /share
mkdir: cannot create directory `/share': Permission denied
make[3]: *** [install-data-local] Error 1
make[3]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/kpsk'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/kpsk'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kpsk-1.0.1/work/kpsk-1.0.1/kpsk'
make: *** [install-recursive] Error 1
!!! ERROR: media-radio/kpsk-1.0.1 failed.
!!! Function kde_src_install, Line 153, Exitcode 2
!!! died running make install, kde_src_install:make
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-radio_-_kpsk-1.0.1-31178.log"
mkdir: /share
--------------------------------------------------------------------------------
n1zhe db #
"/tmp/sandbox-media-radio_-_kpsk-1.0.1-31178.log" contains:
mkdir: /share
...oh, and I did mean 'emerge -uUDv world'. Typo on my part.
David |
|
| Back to top |
|
 |
Carlo Developer


Joined: 12 Aug 2002 Posts: 3356
|
Posted: Sat Mar 20, 2004 8:30 pm Post subject: |
|
|
O.k. the stuff compiles. I forgot adding "need-kde 3" to the ebuild sample. Without this line the kde.eclass won't add the /usr prefix, so the ebuild would merge to /bin, /share and so on.
The install problem needs a patch or a sed line. Have a look at the Makefile, where it wants to create the directory and add the destination variable before the target directory (mostly $DESTDIR or something like this). The ebuild has to be modified in the following way:
| Code: | src_install() {
# epatch (needs eutils.eclass) or sed line(s) here
kde_src_install all
} |
Carlo _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
| Back to top |
|
 |
Nidel n00b


Joined: 20 Feb 2004 Posts: 67 Location: France|Pas-de-Calais=>Lens
|
Posted: Sun Mar 21, 2004 11:03 am Post subject: Re: Getting Closer.... |
|
|
| carney1979 wrote: |
!!! ERROR: media-radio/kpsk-1.0.1 failed.
!!! Function kde_src_install, Line 153, Exitcode 2
!!! died running make install, kde_src_install:make
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-radio_-_kpsk-1.0.1-31178.log"
mkdir: /share
--------------------------------------------------------------------------------
n1zhe db #
"/tmp/sandbox-media-radio_-_kpsk-1.0.1-31178.log" contains:
mkdir: /share
...oh, and I did mean 'emerge -uUDv world'. Typo on my part.
David |
Test this solution =>
| Code: | | FEATURES="-sandbox" emerge media-radio/kpsk |
_________________ "L'Art naît de Souffrance,vit de Lutte,meurt de Liberté..." |
|
| Back to top |
|
 |
|