View previous topic :: View next topic |
Author |
Message |
geta Apprentice
Joined: 10 May 2003 Posts: 153
|
Posted: Tue Jun 14, 2005 6:33 pm Post subject: Ebuild for qemu-launcher |
|
|
G'day,
here's a quick ebuild I assembled today. Please tell me if it works: Any feedback is welcome, and if the user-base of qemu-launcher grows I'll consider submitting the ebuild.
Known issues:
- textdomain. not quite certain what dependency is needed or not. The patch solves the problem on my system
- qemu-launcher does not work well with qemu-0.7. There's an issue with the keyboard option. Patch below solves this by completely ignoring keyboard settings and not passing them to qemu.
You have to download the sources by hand, there seems to be some sort of (intended or unintended) fetch restriction - wget from the console didn't work. However, navigating to the site and downloading it with the browser worked.
Here is the ebuild:
Code: |
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
DESCRIPTION="A GUI helper for the qemu emulator"
HOMEPAGE="http://emeitner.f2o.org/projects/qemu-launcher/"
SRC_URI="http://emeitner.f2o.org/debian/qemu-launcher_1.3-1.tar.gz"
LICENSE="GPL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND="app-emulation/qemu
dev-lang/perl
dev-perl/gtk2-perl
dev-perl/gtk2-gladexml
dev-perl/gnome2-perl
x11-terms/xterm"
src_compile() {
# do nothing, this package does not need "configure" and "make"
einfo "This package uses perl. No compilation required."
}
src_install() {
make install PREFIX=${D}/usr || die
patch -i ${FILESDIR}/textdomain.patch ${D}/usr/bin/qemu-launcher
patch -i ${FILESDIR}/keyboard.patch ${D}/usr/bin/qemu-launcher
}
|
Any better way of disabling the "src_compile" section? Leaving it out of the ebuild will just activate the standard src_compile mechanism
Instructions for portage "overlay" newbies:
1. create /usr/local/portage/app-emulation/qemu-launcher
2. create a file (qemu-launcher-1.3.ebuild) in that directory and copy the source from above into that file. You will also need the patch (see below)
3. download the source (of the programme) and move it to /usr/portage/distfiles
4. cd /usr/local/portage/app-emulation/qemu-launcher
5. type "ebuild qemu-launcher-1.3.ebuild digest"
6. Add PORTDIR_OVERLAY="/usr/local/portage" to your make.conf
7. run ACCEPT_KEYWORDS="~x86" emerge -av qemu-launcher
Here is the patch (required for my system). Put this into /usr/local/portage/app-emulation/qemu-launcher/files/ and call the file "textdomain.patch":
Code: |
--- /usr/bin/qemu-launcher.orig 2005-07-10 23:08:58.000000000 +0200
+++ /usr/bin/qemu-launcher 2005-07-10 23:05:55.000000000 +0200
@@ -1039,8 +1039,8 @@
setlocale(LC_MESSAGES, "");
-#bindtextdomain("qemu-launcher", "./,locale");
-bind_textdomain_codeset( "qemu-launcher" ,'');
+bindtextdomain("qemu-launcher", "./,locale");
+#bind_textdomain_codeset( "qemu-launcher" ,'');
textdomain('qemu-launcher');
#if an argument was given, assume we are launching from the
|
Here is a patch ("keyboard.patch") for the keyboard problem (quick'n'dirty patch: keyboard settings are completely ignored)
Code: |
--- qemu-launcher.orig 2005-07-11 00:14:25.000000000 +0200
+++ qemu-launcher 2005-07-11 00:14:37.000000000 +0200
@@ -629,8 +629,8 @@
push @parts,'-full-screen';
}
if( $config->{'keyboard'} ) {
- push @parts,'-keyboard';
- push @parts,lc($config->{'keyboard'});
+ #push @parts,'-keyboard';
+ #push @parts,lc($config->{'keyboard'});
}
if( $config->{'nogfx'} ) {
push @parts,'-nographic';
|
* 2005-07-10: added the textdomain-patch and updated the ebuild to reflect that *
* 2005-07-11: created patch for keyboard problem and updated the ebuild * _________________ geta - pronounced: "djetta"
Last edited by geta on Sun Jul 10, 2005 10:25 pm; edited 2 times in total |
|
Back to top |
|
|
graybeard Tux's lil' helper
Joined: 16 Mar 2003 Posts: 118 Location: a blue state
|
Posted: Sun Jun 19, 2005 3:12 am Post subject: |
|
|
Ok, the emerge runs fine. But I get:
Code: |
Undefined subroutine &main::bind_textdomain_codeset called at /bin/qemu-launcher line 1043.
|
at run time. Any ideas?
system is:
gnome 2.8.3
kernel 2.6.9
P4 2.8 ghz
if that matters. |
|
Back to top |
|
|
geta Apprentice
Joined: 10 May 2003 Posts: 153
|
Posted: Mon Jun 20, 2005 11:28 am Post subject: |
|
|
Hmm,
looking at the source of the programme, I can see that there's something commented out on line 1042:
Code: | #bindtextdomain("qemu-launcher", "./,locale");
bind_textdomain_codeset( "qemu-launcher" ,''); |
As this programme is "only" a perl script, you might try removing that comment marker in line 1042 and put a comment marker at the beginning of line 1043.
If this does not work, I'd throw my guess at namespace problems.
Cheers,
geta _________________ geta - pronounced: "djetta" |
|
Back to top |
|
|
graybeard Tux's lil' helper
Joined: 16 Mar 2003 Posts: 118 Location: a blue state
|
Posted: Sat Jul 09, 2005 11:47 am Post subject: |
|
|
Finally got back to this and figured it out. You need a dependency on dev-perl/Locale-gettext and maybe perl-core/locale-maketext. Not sure about the second one, cause I emerged it first, and it did not run until I emerged the first one. Anyways now its ok. Thanks.
-dan |
|
Back to top |
|
|
geta Apprentice
Joined: 10 May 2003 Posts: 153
|
Posted: Sun Jul 10, 2005 6:24 pm Post subject: |
|
|
Thanks for your feedback. I'll try that solution. The solution I supplied worked without installing extra software, although it is too complicated for someone who wants to get on with the job (whatever that may be).
I'll also have to try and fix an issue with qemu 0.7.0 and the keyboard option in qemu-launcher. _________________ geta - pronounced: "djetta" |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Sun Jul 10, 2005 6:34 pm Post subject: |
|
|
Moved from Portage & Programming to Unsupported Software. |
|
Back to top |
|
|
geta Apprentice
Joined: 10 May 2003 Posts: 153
|
Posted: Sun Jul 10, 2005 9:04 pm Post subject: |
|
|
graybeard, did I understand correctly: you got the original ebuild working?
I have to swap comment lines in the source (mentioned in my posting above), it won't work any other way. Installing locale-maketext didn't help (Locale-gettext was already installed). Maybe some version incompatibility. Are you using stable packages, masked packages or old packages? _________________ geta - pronounced: "djetta" |
|
Back to top |
|
|
|
|
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
|
|