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


Joined: 24 Nov 2004 Posts: 141
|
Posted: Fri Apr 08, 2005 12:32 am Post subject: Perlbox custom ebuild need some help [Solved] |
|
|
Hello all!!
I am wondering how do I go about this problem? Ok,
I see perlbox is not in the "portage" tree. I am not a great builder and tried to make a half decent ebuild but failed!!! I do not want to turn off sandbox for my own errors. It gives to the script and fails. Would gladly use the portage ebuild over a custom one but in this case no alternative. Could someone rewrite or fix my ebuild? here it is. (pardon me grumpy going to bed late).
| Code: |
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
IUSE=""
DESCRIPTION="Perlbox Voice is an voice enabled application to bring your desktop under your command. With a single word, you can start your web browser, your favorite editor or whatever you want. Perlbox Voice now has desktop plugins, which will allow you to control desktop functions. You can switch virtual desktops, invoke the desktop menu, switch wallpaper or lock the screen."
HOMEPAGE="http://perlbox.org/"
SRC_URI="mirror://sourceforge/perlbox/${P}-noarch.tar.gz"
RESTRICT="nomirror"
LICENSE="GPL"
SLOT="0"
KEYWORDS="x86"
DEPEND=">=dev-lang/perl
>=dev-perl/perl-tk
>=app-accessibility/sphinx2
>=app-accessibility/festival
>=app-accessibility/mbrola"
RDEPEND=""
src_unpack()
{
unpack ${A}
cd ${S}
}
src_install() {
./perlbox-voice.install || die "Error: Critical: Don't panic but something went wrong during install. Check if perl and its components are correctly installed. You may have to manually install (perl)itself along with perl-tk, sphinx2, festival engines. I am not sure what to do next, therefore I am bailing out from trying to install. Please try to fix it and emerge again. Possible Hint: It may just be a version mismatch, perlbox may need some of the programes mentioned for itself to run. To be a version higher or lower you may want to try switching versions. If circumstances permit without causing other programs to stop working."
dodoc LICENSE README
}
|
here is my failure error:
| Code: |
Copyright GNU Public License
This installation script will install the Perlbox\ Voice
software version 0.08 on your system.
Do you wish to continue? y
<cut>
END OF TERMS AND CONDITIONS
Type 'yes' or 'y' to accept, 'no' or 'n' to decline.
Do you agree with the terms of this license? y
Backing up old versions of shared files to be installed...
Creating installation directories...
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/Plugins': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/Plugins': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/Plugins': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/Response': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/Response': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/Response': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/Config': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/Config': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/Config': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/Festival': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/Festival': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/Festival': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/IPC': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/IPC': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/IPC': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/IPC/Shareable': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/IPC/Shareable': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/IPC/Shareable': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/Tk': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/Tk': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/ThirdParty/Tk': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/Vocabulary': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/Vocabulary': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/Vocabulary': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/bin': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/bin': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/bin': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/docs': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/docs': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/docs': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/api': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/api': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/api': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/help': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/help': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/help': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/pixels': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/pixels': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/pixels': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/pixels/.xvpics': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/pixels/.xvpics': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/pixels/.xvpics': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/plugins': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/plugins': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/plugins': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/tutorial': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/tutorial': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/docs/tutorial': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/lib': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/lib': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/lib': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/pDialog': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/pDialog': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/pDialog': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/pFileDialog': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/pFileDialog': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/pFileDialog': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/perlbox': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/perlbox': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/perlbox': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/perlbox/preferences': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/perlbox/preferences': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/perlboxTK/perlbox/preferences': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/Perlbox/pixels': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/Perlbox/pixels': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/Perlbox/pixels': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/commands': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/commands': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/commands': No such file or directory
ACCESS DENIED mkdir: /usr/lib/perlbox-voice
mkdir: cannot create directory `/usr/lib/perlbox-voice': Permission denied
chown: cannot access `/usr/lib/perlbox-voice/dtplugins': No such file or directory
chgrp: cannot access `/usr/lib/perlbox-voice/dtplugins': No such file or directory
chmod: cannot access `/usr/lib/perlbox-voice/dtplugins': No such file or directory
Installing software...
ACCESS DENIED open_wr: /usr/.writetest
./perlbox-voice.install: line 521: /usr/.writetest: Permission denied
ACCESS DENIED mkdir: /etc/software
mkdir: cannot create directory `/etc/software': Permission denied
ACCESS DENIED open_wr: /etc/software
cp: cannot create regular file `/etc/software': Permission denied
chmod: cannot access `/etc/software/perlbox-voice.remove': No such file or directory
Updating file permissions...
Installation is complete.
/usr/lib/portage/bin/dodoc: LICENSE does not exist.
/usr/lib/portage/bin/dodoc: README does not exist.
man:
prepallstrip:
strip: i686-pc-linux-gnu-strip --strip-unneeded
>>> Completed installing perlbox-voice-0.08 into /var/tmp/portage/perlbox-voice-0.08/image/
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-accessibility_-_perlbox-voice-0.08-10085.log"
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
mkdir: /usr/lib/perlbox-voice
open_wr: /usr/.writetest
mkdir: /etc/software
open_wr: /etc/software
--------------------------------------------------------------------------------
|
_________________ Attempt to Treat others, the way you would like to be treated yourself.
Last edited by GentooMik on Mon Apr 11, 2005 1:17 pm; edited 4 times in total |
|
| Back to top |
|
 |
iTux Guru

Joined: 07 Sep 2004 Posts: 586 Location: Toronto
|
Posted: Fri Apr 08, 2005 1:51 am Post subject: |
|
|
Hi,
Read the perlbox build instructions.
Usually, there is a way to specify the temporary installation directory.
With most software that uses make it is done like this:
make install DESTDIR=${D}
Checking how the Debian people or other does it, helps.
In your case read the doc and either provide some option or modify the build script.
All files from the packaged should be installed in ${D}. At the merge step, files will be merged to /.
iTux |
|
| Back to top |
|
 |
GentooMik Tux's lil' helper


Joined: 24 Nov 2004 Posts: 141
|
Posted: Fri Apr 08, 2005 12:41 pm Post subject: |
|
|
hi again!
Thanks for some info on this would you have some more? Building without portage this program is easy. But I do not wish to bypass portage and install it dirty. (uncleanable).
| Quote: |
Quick Install Steps (from the program without portage)
Untar and cd into this directory (Did you do that yet???)
Make sure X is running and accessible, then run installer with:
./perlbox-voice.install
|
I tried what you said but that way it installs rather then being passed to perlbox install script.
DESTDIR=${D} ./perlbox-voice.install <- it bypass and installs into the destination dir.
It seems not to be using any makefile but perl traditional way of installing things no make install.
No documents on this could be found either.
All I need portage to do is start this script and hand it to it and after back to portage. I may have to probably make an exception to turn sandbox off! Need this program to actually be able to work. But going to wait and see what else I may be able to do.  _________________ Attempt to Treat others, the way you would like to be treated yourself. |
|
| Back to top |
|
 |
iTux Guru

Joined: 07 Sep 2004 Posts: 586 Location: Toronto
|
Posted: Mon Apr 11, 2005 12:57 am Post subject: |
|
|
Hi,
The package to download seem to be a pre-packaged self-installing package. There does not seem to be any source code (i.e. source used to create the self-installing package) available for download on the website.
iTux |
|
| Back to top |
|
 |
iTux Guru

Joined: 07 Sep 2004 Posts: 586 Location: Toronto
|
Posted: Mon Apr 11, 2005 10:25 am Post subject: |
|
|
The .ss files is simply a tar archive of the installation files and the .install files seem to be an installation script but does not seem to do any interesting thing for us.
What about something like this:
| Code: |
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
IUSE=""
DESCRIPTION="A voice enabled application to bring your desktop under your command."
HOMEPAGE="http://perlbox.org/"
SRC_URI="mirror://sourceforge/perlbox/${P}-noarch.tar.gz"
RESTRICT="nomirror"
LICENSE="GPL"
SLOT="0"
KEYWORDS="x86"
DEPEND=">=dev-lang/perl
>=dev-perl/perl-tk
>=app-accessibility/sphinx2
>=app-accessibility/festival
>=app-accessibility/mbrola"
RDEPEND=""
src_install() {
tar -C ${D} -xvf perlbox-voice.ss
dodoc LICENSE README
}
|
|
|
| Back to top |
|
 |
GentooMik Tux's lil' helper


Joined: 24 Nov 2004 Posts: 141
|
Posted: Mon Apr 11, 2005 1:16 pm Post subject: |
|
|
Hey Itux!
Just had the ability to check the forums,
It worked without a flaw I have printed the ebuild out and studying the dir magic. I am going contact the Author and tell him if he wants to upload the "ebuild". All of us gentoo "users" who want the software could easily add it to their custom portage dir!
P.S: It has no source you say but think you really mean it has no "code" like "C" files. It seems a script and likely is a gpl one.
edit:
It is GPL seems original.
[License] OSI Approved :: GNU General Public License (GPL)
Cheers,  _________________ Attempt to Treat others, the way you would like to be treated yourself. |
|
| Back to top |
|
 |
iTux Guru

Joined: 07 Sep 2004 Posts: 586 Location: Toronto
|
Posted: Mon Apr 11, 2005 10:17 pm Post subject: |
|
|
| GentooMik wrote: | Hey Itux!
Just had the ability to check the forums,
It worked without a flaw I have printed the ebuild out and studying the dir magic. I am going contact the Author and tell him if he wants to upload the "ebuild". All of us gentoo "users" who want the software could easily add it to their custom portage dir!
|
If it works well, you could consider submitting it as a new package for the portage tree.
Submit bug report here:
bugs.gentoo.org
(select Enhancement for bug severity)
| Quote: |
P.S: It has no source you say but think you really mean it has no "code" like "C" files. It seems a script and likely is a gpl one.
edit:
It is GPL seems original.
[License] OSI Approved :: GNU General Public License (GPL)
Cheers,
|
Source is actually in the .ss file (perl scripts), I figured it out later. It is just pre-packaged in a way I am not used to. I don't know if it is a standard way for perl programs as I am not familiar in installing perl applications.
iTux |
|
| Back to top |
|
 |
PyroBor n00b


Joined: 19 Sep 2005 Posts: 40 Location: Slovenia
|
Posted: Sat Jan 14, 2006 4:16 am Post subject: |
|
|
when i wanted to install perlbox i needed to change ebuild a bit...
| Quote: | | SRC_URI="mirror://sourceforge/perlbox/${P}-noarch.tar.gz" |
to
| Quote: | | SRC_URI="mirror://sourceforge/perlbox/${P}.noarch.tgz" |
and with this change i managed to install perlbox _________________ Where's the fun in that ? |
|
| Back to top |
|
 |
mcummings Retired Dev


Joined: 30 May 2002 Posts: 14
|
Posted: Sun Mar 05, 2006 5:02 pm Post subject: all set :D |
|
|
| in portage as of this afternoon |
|
| Back to top |
|
 |
GentooMik Tux's lil' helper


Joined: 24 Nov 2004 Posts: 141
|
Posted: Tue Mar 28, 2006 11:24 pm Post subject: |
|
|
Thank You for addition of the perlbox software. |
|
| Back to top |
|
 |
|