View previous topic :: View next topic |
Author |
Message |
m4rqz Tux's lil' helper
Joined: 22 Aug 2004 Posts: 129 Location: Sweden
|
Posted: Fri Feb 18, 2005 8:37 pm Post subject: New Portage Frontend: GENU |
|
|
Hello
http://www.markus-jonsson.com/projects/genu/
I would like to announce a new portage frontend wich I wrote during the holidays.
It uses gnome and is written in mono/c#. The release is a development release
and I would love it if people tested it and gave me som response.
Screenshots, information, faq and download:
http://www.markus-jonsson.com/projects/genu/
Hope you will like it! |
|
Back to top |
|
|
WladyX Guru
Joined: 25 Nov 2004 Posts: 503 Location: Romania
|
Posted: Fri Feb 18, 2005 8:56 pm Post subject: |
|
|
The shots are awesome, and i like that you made a frontend for the /etc/portage files. Great. Installing it soon, hope to see it in portage. _________________ We are not alone. |
|
Back to top |
|
|
m4rqz Tux's lil' helper
Joined: 22 Aug 2004 Posts: 129 Location: Sweden
|
Posted: Fri Feb 18, 2005 9:07 pm Post subject: |
|
|
Great that you like it, just let me know if something goes wrong. |
|
Back to top |
|
|
Pink Veteran
Joined: 24 Jul 2003 Posts: 1062
|
Posted: Fri Feb 18, 2005 10:33 pm Post subject: |
|
|
Looks good. I'll give it a shot later.
Any advantages or major differnces over porthole? (Just interested as I like porthole to search descriptions and find it easier searching portage with it than using the command line, nice to try a different gui).
Good job though |
|
Back to top |
|
|
m4rqz Tux's lil' helper
Joined: 22 Aug 2004 Posts: 129 Location: Sweden
|
Posted: Fri Feb 18, 2005 11:10 pm Post subject: |
|
|
sorry to dissapoint you, but the search function is not implemented yet.
genu can be run by a normal user, you can browse the tree and select packages for installation and so on. you don't have to enter the root password until you actually emerge the packages. in a future version (couple of days, since I'm allready working on it) this means that you can be notified when new packages are available and so on.
genu is a little bit more dialog based than porthole, allthough there is a "manager" program (inspired by porthole and synaptic package manager (debian/ubuntu) ) planned too. that might take i while though, unless someone wants to help me, my time is limited. |
|
Back to top |
|
|
Pink Veteran
Joined: 24 Jul 2003 Posts: 1062
|
Posted: Sat Feb 19, 2005 12:03 am Post subject: |
|
|
Hey, no dissapointment here!
I like the normal user routine until actually emerging something.
Not a programmer so can't offer anything except moral support though |
|
Back to top |
|
|
DarkStorm_Inc Tux's lil' helper
Joined: 07 Feb 2005 Posts: 105 Location: The Ether
|
Posted: Sat Feb 19, 2005 12:14 am Post subject: |
|
|
looks decent, reminds me of kuroo though. But why didnt you use qt or gtk? |
|
Back to top |
|
|
m4rqz Tux's lil' helper
Joined: 22 Aug 2004 Posts: 129 Location: Sweden
|
Posted: Sat Feb 19, 2005 12:26 am Post subject: |
|
|
DarkStorm_Inc wrote: | looks decent, reminds me of kuroo though. But why didnt you use qt or gtk? |
In fact id does use gtk, via gtk-sharp. All the widgets and dialogs which use gtk are packaged into gtk-portage.dll so that they can be used in other applications. But the main program, genu, uses gnome libraries.
I use gnome myself, so kde/qt was not an option, but there are qt bindings for mono/c# so you can use my portage-sharp.dll to write your own frontend. |
|
Back to top |
|
|
CitizenX Apprentice
Joined: 11 Sep 2004 Posts: 158 Location: Fresno, CA
|
Posted: Sat Feb 19, 2005 1:33 am Post subject: |
|
|
Great to see another frontend..especially such a good looking one. Anyone installed it yet? I'd like to hear how it handles.
Why all the strange dependencies? most of what the website requires is ~x86 (gtk-sharp, mono 1.0.5, then that wants something else....even gcc 3.4. Not that I don't like ~x86 builds (I've got plenty of them installed), but so many in a row tends to make me nervous. Are those absolute minimum requirements or should I just bite the bullet and go ahead? Or (most likely) am I reading things wrong and just being an idiot? |
|
Back to top |
|
|
d0nju4n Apprentice
Joined: 19 Apr 2004 Posts: 283 Location: Rochester, MN
|
Posted: Sat Feb 19, 2005 2:02 am Post subject: |
|
|
looks pretty slick, I'll do some testing on it later tonight for you _________________ Linux User 355087 |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Sat Feb 19, 2005 2:18 am Post subject: |
|
|
Edit: This fails for some people. Post a fix if you can.
app-portage/genu-0.2.2.ebuild
Code: |
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit mono
DESCRIPTION="Portage front-end implemented in mono with gnome-sharp"
HOMEPAGE="http://www.markus-jonsson.com/projects/genu/"
SRC_URI="http://www.markus-jonsson.com/downloads/genu/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND=">=dev-dotnet/gnome-sharp-1.0.4
x11-libs/gksu"
S=${WORKDIR}/${PN}/src
src_unpack() {
unpack ${A} || die "Failed to unpack ${A}"
cd ${S} || die "Failed to cd ${S}"
sed -i -e 's:cp -rv ..$(PREFIX) /:cp -rv ..$(PREFIX) ${D}/:' Makefile
}
src_sompile() {
make
}
src_install() {
einstall
}
|
Last edited by Pythonhead on Tue Feb 22, 2005 1:13 am; edited 4 times in total |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9523 Location: beyond the rim
|
Posted: Sat Feb 19, 2005 2:52 am Post subject: |
|
|
a) your site seems to be down atm - dialup/dsl home server? (EDIT: nevermind, my DNS was borked)
b) how do you interface with portage? (don't know which functions are implemented yet so this question might not be relevant)
Last edited by Genone on Sat Feb 19, 2005 7:35 pm; edited 1 time in total |
|
Back to top |
|
|
m4rqz Tux's lil' helper
Joined: 22 Aug 2004 Posts: 129 Location: Sweden
|
Posted: Sat Feb 19, 2005 9:38 am Post subject: |
|
|
Great to get some feedback!
CitizenX:
Well, I have not tested with mono 0.28, but that one is really old. Mono will probably not get stable in portage until the 1.2 release, which comes Q2 this year.
gcc 3.4 ? I run gcc 3.3.5
Pythonhead:
I'll look into that one. Seems like it doesn't recognize some of your /ets/portage files ..
Genone:
Don't know if the server where down, but it's back up anyways. No it's a dedicated server.
It interfaces with portage by running the actual commands. I was afraid that it would be too much to maintain doing in another way, also I'm not sure how to do that. |
|
Back to top |
|
|
m4rqz Tux's lil' helper
Joined: 22 Aug 2004 Posts: 129 Location: Sweden
|
Posted: Sat Feb 19, 2005 7:26 pm Post subject: |
|
|
Back again with a new version, GENU-0.2.2
Changes since 0.2:
* Replaced ugly code with regular expressions at
some places. Hopefully more reliable.
* Added a temporary support for packages that does not allow downloading.
* Support for the "installed" column is back..!
* Corrected some spelling mistakes.
* Made the SyncDialog and MergeDialog look different (hopefully better).
* Code looks better.
* Added warnings to EnvironmentDialog.
Think this should fix Pythonhead's problem |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Sat Feb 19, 2005 7:55 pm Post subject: |
|
|
m4rqz wrote: |
Pythonhead:
I'll look into that one. Seems like it doesn't recognize some of your /etc/portage files ..
|
Its fixed in 0.2.2 and I updated the ebuild above.
It seems like every non-python portage utility runs into this problem at the beginning. I
think a C library that parses /etc/make.conf and /etc/portage/* files with bindings
in mono, ruby, perl etc would be nice. |
|
Back to top |
|
|
HomerSimpson l33t
Joined: 25 Jan 2003 Posts: 869 Location: Ohio, USA
|
Posted: Sat Feb 19, 2005 10:43 pm Post subject: |
|
|
Code: | >>> emerge (2 of 2) app-portage/genu-0.2.2 to /
>>> md5 src_uri ;-) genu-0.2.2.tar.gz
>>> Unpacking source...
>>> Unpacking genu-0.2.2.tar.gz to /var/tmp/portage/genu-0.2.2/work
>>> Source unpacked.
mkdir -p ../usr/lib/genu
mcs -target:library -out:../usr/lib/genu/portage-sharp.dll ./portage-sharp/Ebui ld.cs ./portage-sharp/Emerge.cs ./portage-sharp/Environment.cs ./portage-sharp/E xceptions.cs ./portage-sharp/Portage.cs
mkdir -p ../usr/lib/genu
mcs \
-pkg:gnome-sharp -pkg:gtk-sharp \
-target:library -out:../usr/lib/genu/egg-sharp.dll ./egg-sharp/egg-sharp.cs
ACCESS DENIED open_wr: /root/.wapi/shared_data-Jacob-3-0
ACCESS DENIED open_wr: /root/.wapi/shared_data-Jacob-3-0
** (/usr/lib/mono/1.0/mcs.exe:25264): CRITICAL **: : shared file [/root/.wapi/sh ared_data-Jacob-3-0] open error: Permission denied
** (/usr/lib/mono/1.0/mcs.exe:25264): CRITICAL **: : shared file [/root/.wapi/sh ared_data-Jacob-3-0] open error
** (/usr/lib/mono/1.0/mcs.exe:25264): WARNING **: Failed to attach shared memory ! Falling back to non-shared handles
See: http://www.go-mono.com/issues.html#wapi for details
** (/usr/lib/mono/1.0/mcs.exe:25266): CRITICAL **: : shared file [/root/.wapi/sh ared_data-Jacob-3-0] open error: Permission denied
** (/usr/lib/mono/1.0/mcs.exe:25266): CRITICAL **: : shared file [/root/.wapi/sh ared_data-Jacob-3-0] open error
** (/usr/lib/mono/1.0/mcs.exe:25266): WARNING **: Failed to attach shared memory ! Falling back to non-shared handles
See: http://www.go-mono.com/issues.html#wapi for details
error CS8027: Couldn't run pkg-config: Cannot find the specified file
make: *** [egg-sharp.dll] Error 1
make: *** Waiting for unfinished jobs....
Compilation succeeded
!!! ERROR: app-portage/genu-0.2.2 failed.
!!! Function src_compile, Line 556, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-portage_-_genu-0.2.2-25249.log"
open_wr: /root/.wapi/shared_data-Jacob-3-0
open_wr: /root/.wapi/shared_data-Jacob-3-0
--------------------------------------------------------------------------------
| ??? _________________ The strong must protect the Sweet. |
|
Back to top |
|
|
uman Apprentice
Joined: 20 Dec 2004 Posts: 223
|
Posted: Sat Feb 19, 2005 11:20 pm Post subject: |
|
|
Stupid question but where should I put that ebuild?
OH and by the way I didn't know C# supports regular expressions...that's pretty cool. |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
|
Back to top |
|
|
uman Apprentice
Joined: 20 Dec 2004 Posts: 223
|
Posted: Sat Feb 19, 2005 11:40 pm Post subject: |
|
|
Thanks pythonhead! |
|
Back to top |
|
|
m4rqz Tux's lil' helper
Joined: 22 Aug 2004 Posts: 129 Location: Sweden
|
Posted: Sun Feb 20, 2005 12:08 am Post subject: |
|
|
I haven't tried the ebuild but I hope it works, I'll but it on the website.
I hope you tell me if you run into problems, I really want this to work. |
|
Back to top |
|
|
WladyX Guru
Joined: 25 Nov 2004 Posts: 503 Location: Romania
|
Posted: Sun Feb 20, 2005 12:22 am Post subject: |
|
|
The ebuild doesn't work for me, maybe i'm doing something wrong thou, anyway i get :
Code: |
-pkg:gnome-sharp -pkg:gtk-sharp \
-r:../usr/lib/genu/egg-sharp.dll -r:../usr/lib/genu/portage-sharp.dll \
-target:exe \
-main:Genu \
-out:../usr/lib/genu/genu.exe ./genu/Genu.cs ./genu/GenuTrayIcon.cs ./genu/EnvDialog.cs ./genu/InstallDialog.cs ./genu/MaskedDialog.cs ./genu/MergeDialog.cs ./genu/PortageTreeView.cs ./genu/PretendDialog.cs ./genu/SyncDialog.cs
Compilation succeeded
mkdir -p ../usr/bin
rm -f ../usr/bin/genu
error CS0006: Cannot find assembly `../usr/lib/genu/egg-sharp.dll'
Log:
Compilation succeeded
touch ../usr/bin/genu
echo "#!/bin/sh" >> ../usr/bin/genu
echo echo \"\$@\" >> ../usr/bin/genu
Compilation failed: 1 error(s), 0 warnings
echo /usr/bin/mono /usr/lib/genu/genu.exe \"\$@\" >> ../usr/bin/genu
chmod a+x ../usr/bin/genu
make: *** [genu.exe] Error 1
!!! ERROR: app-portage/genu-0.2.2 failed.
!!! Function src_compile, Line 556, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
|
_________________ We are not alone. |
|
Back to top |
|
|
m4rqz Tux's lil' helper
Joined: 22 Aug 2004 Posts: 129 Location: Sweden
|
Posted: Sun Feb 20, 2005 12:49 am Post subject: |
|
|
WladyX:
The "rm -f ../usr/bin/genu" line seems wierd..
what version of mono/gtk-sharp/gnome-sharp are you using?
have you tried to emerge multiple times?
I can't think of anything in the makefile that causes this.
Pythonhead, what do you think? something with the ebuild? |
|
Back to top |
|
|
HomerSimpson l33t
Joined: 25 Jan 2003 Posts: 869 Location: Ohio, USA
|
Posted: Sun Feb 20, 2005 1:59 am Post subject: |
|
|
Pythonhead wrote: | Homer: Try adding "inherit mono" after the copyright header |
Thank you that worked. I copy and pasted the code from the above post. That is weird.
Now my problem is when I run genu it just says:
Code: | Loading GENU 0.2.2 development.. | And nothing else. I tried running as a user and as root but I get the same results.
Oh and here is the the strace output
Code: | ...
fstat64(255, {st_mode=S_IFREG|0755, st_size=62, ...}) = 0
_llseek(255, 0, [0], SEEK_CUR) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
read(255, "#!/bin/sh\necho \"$@\"\n/usr/bin/mon"..., 62) = 62
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7feb000
write(1, "\n", 1
) = 1
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7ead638) = 8118
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x8074900, [], 0}, {SIG_DFL}, 8) = 0
waitpid(-1, Loading GENU 0.2.2 development...
|
_________________ The strong must protect the Sweet. |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Sun Feb 20, 2005 2:18 am Post subject: |
|
|
HomerSimpson wrote: |
Now my problem is when I run genu it just says:
Code: | Loading GENU 0.2.2 development.. | And nothing else. I tried running as a user and as root but I get the same results.
|
Does your window manager have a system-tray-like-thing? The app starts iconized or whatever the term is.
WladyX: does it install fine without the ebuild? |
|
Back to top |
|
|
HomerSimpson l33t
Joined: 25 Jan 2003 Posts: 869 Location: Ohio, USA
|
Posted: Sun Feb 20, 2005 2:49 am Post subject: |
|
|
Pythonhead wrote: | HomerSimpson wrote: |
Now my problem is when I run genu it just says:
Code: | Loading GENU 0.2.2 development.. | And nothing else. I tried running as a user and as root but I get the same results.
|
Does your window manager have a system-tray-like-thing? The app starts iconized or whatever the term is.
| OK. I added the Gnome Notification Area and now I see it. Thank you. _________________ The strong must protect the Sweet. |
|
Back to top |
|
|
|