Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Emelfm2 just dies with BadLength error...

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
Elsipkitch9809
Apprentice
Apprentice
Posts: 186
Joined: Sun Jul 21, 2002 3:12 pm

Emelfm2 just dies with BadLength error...

  • Quote

Post by Elsipkitch9809 » Sat Sep 10, 2005 7:37 pm

Hi,

Emelfm2 just dies after hitting... well anything. The easiest way to show this is to hit on the configure button. Wham, emelfm2 dies with this message:

Code: Select all

This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length erro'.
  (Details: serial 7376 error_code 16 request_code 18 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
I haven't seen this anywhere else on the forums, except in a sort of related gdk post but the solution doesn't apply because one cannot emerge xft2 any more.

I have no idea what is causing this, but I know I've tried recompiling it a number of different ways with different configurations, updating, and even tried it again after I had to reinstall my system (for something unrelated, a hd config issue). Still the same problem persists.

Here is my emerge info:

Code: Select all

Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6
.12-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
1/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.seren.com/gentoo http://
mirrors.acm.cs.rpi.edu/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa avi bash-completion berkdb bitmap-fonts browserplugin cdr cryp
t cups curl dts dvd dvdr dvdread eds emboss encode esd faad fam fbcon foomaticdb
 fortran gcj gif gnome gnustep gpm gstreamer gtk gtk2 imagemagick imlib imlib2 i
pv6 java jpeg kde layout-osx-like lzw lzw-tiff mad matroska mikmod mng motif moz
illa moznocompose moznoirc moznomail mp3 mpeg ncurses network new-login nls ntpl
 nvidia objc offensive oggvorbis openal opengl pam pdflib perl png ppds python q
t quicktime readline real scanner sdl slang spell ssl tcpd theora tiff truetype 
truetype-fonts type1-fonts unicode usb userlocales wxwindows xine xml2 xmms xpm 
xprint xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
(Let's hope that bbcode doesn't hate me and will actually post this correctly)

Any help? I really love this program, its the most useful for me for managing files.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sat Sep 10, 2005 8:10 pm

I used to have a similar issue with this app, although I don't remember seeing the error message you posted.

Anyway, another user gave me the following tip (original thread) which solved the issue for me;
aveightor wrote:I was having the same problem with emelfm2 in Archlinux.
I know emelfm2 worked fine in Gentoo, so I booted Gentoo and
same problem. After changing some configs, click apply and then OK
emelfm2 crashed with no error message. Found a post on a Archlinux
maillist that fixes this problem. Bring up emelfm2, click on config, click on panes
click on scrollbar position, select one ...anyone... if you notice its blank, click apply and OK.
Thats it :)
Does that make any difference?
"You have to invite me in"
Top
Elsipkitch9809
Apprentice
Apprentice
Posts: 186
Joined: Sun Jul 21, 2002 3:12 pm

  • Quote

Post by Elsipkitch9809 » Sat Sep 10, 2005 8:35 pm

I saw your thread about emelfm2 but I don't think its the same issue since I can't click on anything without that happening. Especially the config button.

If I double click on an icon, it can crash randomly. If I try to configure it, it crashes definitely.

I'll try to find out an action that *doesn't* cause the huge crash, but I dunno how successful I'm going to be :-P
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sat Sep 10, 2005 8:59 pm

Have you tried without any config files or editing the config files manually?

Anyway, I'm running a similar system, and emelfm2's working fine for me on amd64 (I don't think I could manage without it) so here's my emerge info, if it's of any use;

Code: Select all

Portage 2.0.51.22-r2 (hardened/amd64, gcc-3.4.4-vanilla, glibc-2.3.5-r0, 2.6.12-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ABI="amd64"
ACCEPT_KEYWORDS="amd64"         
ACCEPT_LICENSE=""               
ARCH="amd64"                    
AUTOCLEAN="yes"                 
BASH_ENV="/etc/spork/is/not/valid/profile.env"
CBUILD="x86_64-pc-linux-gnu"    
CDEFINE_amd64="__x86_64__"      
CFLAGS="-O2 -march=athlon64 -mtune=athlon64 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"     
CHOST_amd64="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon64 -mtune=athlon64 -fomit-frame-pointer -pipe"
DEFAULT_ABI="amd64"         
ELIBC="glibc"                   
FEATURES="autoconfig distlocks sandbox sfperms strict"
GCC_SPECS="/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/vanilla.specs"
GDK_USE_XFT="1"                 
GRP_STAGE23_USE="amd64 berkdb crypt readline ssl tcpd zlib pam pic hardened nls justify userlocales"
G_BROKEN_FILENAMES="1"          
HZ="100"                        
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.15.92.0.2/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/info"
KERNEL="linux"                  
LANG="en_IE"                    
LANGUAGE="en"                   
LC_ALL="en_IE"                  
LDFLAGS="-Wl,-O1"               
LDFLAGS_amd64="-m elf_x86_64"
LIBDIR_amd64="lib64"            
MAKEOPTS="-j2"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.15.92.0.2/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.4/man"
MULTILIB_ABIS="amd64"
OPENGL_PROFILE="xorg-x11"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.4"
PYTHONPATH="/usr/lib/portage/pym"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
SHELL="/bin/bash"
SHLVL="1"
STAGE1_USE="hardened pic userlocales"
SYMLINK_LIB="yes"
USE="3dnowext X a52 aac aalib acpi aim alsa amd64 avi bash-completion bitmap-fonts bzip2 cairo cddb cdparanoia cdr crypt curl direcffb directfb dlloader dts dvd dvdr dvdread exif fam fbcon firefox flac gdbm gif glitz gphoto2 gpm gtk gtk2 hardened icq imlib irc ithreads jpeg justify lj mad mmap mp3 mpeg msn ncurses nptl nptlonly offensive ogg oggvorbis opengl pic png readline real rss rtc scanner sdl sqlite ssl sysfs tcpd truetype truetype-fonts type1-fonts usb userlocales v4l v4l2 vorbis xanim xine xinerama xml2 xrandr xv xvid yahoo zlib video_cards_r200 userland_GNU kernel_linux elibc_glibc"
"You have to invite me in"
Top
Elsipkitch9809
Apprentice
Apprentice
Posts: 186
Joined: Sun Jul 21, 2002 3:12 pm

  • Quote

Post by Elsipkitch9809 » Sat Sep 10, 2005 10:08 pm

The ebuild itself doesn't lend itself to any obvious things I'm doing wrong. I have nls enabled, but it doesn't even check for it, just sets a compile flag. Very small ebuild.

I don't notice a huge difference in our emerge info aside from some use flags. I'll keep trying at this, as I also can't live without emelfm :-p
Last edited by Elsipkitch9809 on Thu Mar 03, 2016 4:31 pm, edited 1 time in total.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sat Sep 10, 2005 10:47 pm

alaterale wrote:I deleted any config files that were there, and then tried it but it still crashed.

As far as editing the config files, what exactly am I supposed to edit? Unless you mean do all my editing of config stuff from a text editor, which isn't what I had in mind in terms of "using" emelfm2 :-P
I meant setting "scrollbar-position=bottom-right" manually just in case that was the problem, but I doubt it is.

Anyway, here's my config, if you want to try it (comments removed);

Code: Select all

transparent-dir-links=true
auto-refresh-config=true
relative-symlinks=false
date-string=Standard: 20/05/04 09:11
use-external-viewer=true
command-viewer=leafpad
command-xterm=Eterm
confirm-delete=true
confirm-overwrite=true
panes-horizontal=false
auto-refresh=true
scrollbar-position=bottom-right
show-updir-entry=false
button2-updir=false
use-vi-keys=false
windows-right-click=false
windows-right-click-extra=false
list-font=Sans 8
output-font=Monospace 8
menu-show-icons=true
menu-isize=menu
submenu-up-delay=50
submenu-down-delay=400
color-active-pane=dark grey
color-drag-highlight=wheat
color-inactive-selected=light grey
color-tag=yellow
color-ft-exec=forest green
color-ft-dir=blue
color-ft-link=sky blue
color-ft-dev=orange
color-ft-socket=purple
color-positive=dark green
color-negative=red
color-unimportant=light grey
<toolbar
bookmarks|||bookmark.<widget>|toolbar folder
separator|||<separator>|
refresh|gtk-refresh||panes.refresh|
copy|gtk-copy||file.copy|
move|gtk-cut||file.move|
\<span foreground='red'><b>delete</b></span>|gtk-delete||file.delete|
rename|gtk-index||file.rename|
mkdir|gtk-open|open mkdir dialog|file.mkdir|
separator|||<separator>|
config|gtk-preferences|open config dialog|config.configure|
separator|||<separator>|
quit|gtk-quit|quit emelFM2|quit|
>
<commandbar
max|gtk-goto-top|un-/maximize output pane|output.adjust ratio|*,0
$(USER)@$(HOSTNAME):|gtk-go-up|show/hide output pane|output.adjust ratio|*,100%
command line|||command line.<widget>|100,expand
|gtk-goto-first|clear command line|command line.clear|
clear|gtk-clear|clear output pane|output.clear|
ps||list child processes|command.list children|
du||disk usage plugin|Disk Usage|
find|gtk-find|open find dialog|find|
x||xterm|<custom command>|$[command-xterm] &
su||run something as root|<custom command>|su %{enter command:}; echo "done. press enter"; read
|gtk-dialog-info|show about dialog|dialog.about|
|gtk-quit|quit emelFM2|quit|
>
<context-menu
file actions_||false|false|<file actions>|
separator||false|false|<separator>|
edit filetype|gtk-properties|false|false|config.filetype|
open _with||false|false|open with|
_view||false|false|view|
separator||false|false|<separator>|
_file actions|gtk-add|false|false|<submenu>|
	file _info|gtk-dialog-info|false|false|file.file info|
	_permissions||false|false|file.permission|
	_user-group||false|false|file.user/group|
	_rename||false|false|file.rename|
	_copy|gtk-copy|false|false|file.copy|
	_move||false|false|file.move|
	_delete|gtk-delete|false|false|file.delete|
	move as||false|false|file.move as|
	s_ymlink||false|false|file.symlink|
	symlink as||false|false|file.symlink as|
_mkdir|gtk-open|false|false|file.mkdir|
separator||false|false|<separator>|
bookmarks|gtk-jump-to|false|false|<submenu>|
	add bookmark||false|false|bookmark.add|
	add to top||false|false|bookmark.add|top
	edit bookmarks||false|false|config.configure|bookmarks
	separator||false|false|<separator>|
	bookmarks||false|false|bookmark.<widget>|
user commands||false|false|<submenu>|
	new file|gtk-new|false|true|<custom command>|touch %{enter file name:}
	easytag||false|true|<custom command>|easytag %d &
	remove spaces||false|true|<custom command>|mv %f `echo %f \|sed -e 's/ //g'` 2>/dev/null &
	separator||false|false|<separator>|
	show toolbar||false|false|toggle toolbar|
	show command bar||false|false|toggle commandbar|
plugins|gtk-convert|false|false|<submenu>|
	edit plugins|gtk-preferences|true|false|config.configure|Plugins
	separator||true|false|<separator>|
	plugins||true|false|<plugins>|
separator||true|false|<separator>|
configure|gtk-preferences|false|false|config.configure|
>
<keybindings
main||false||
	|<Ctrl>space|false|output.print|directory jump keys activated\n
		|h|false|<custom command>|cd $(HOME)
		|m|false|<custom command>|cd /mnt/
		|d|false|<custom command>|cd $(HOME)/downloads
	|F1|false|panes.refresh|
	|F2|false|file.rename|
	|F3|false|find|
	|F4|false|view|
	|F5|false|file.copy|
	|F6|false|file.move|
	|F7|false|dialog.mkdir|
	|F8|false|file.delete|
	|F9|false|file.file info|
	|F10|false|quit|
	|F11|false|config.configure|
	|F12|false|panes.toggle direction|
	|<Control>w|false|output.adjust ratio|*,100%
	|<Control>e|false|output.adjust ratio|*,0
	|<Control>z|false|command line.focus toggle|
	|<Control>r|false|panes.refresh|
	file pane||false||
		|Tab|false|panes.switch|
		|space|false|panes.switch|
		|Return|false|file.open|
		|<Shift>Return|false|file.open in other|
		|Left|false|<custom command>|cd ..
		|Right|false|file.open|
		|<Shift>Left|false|panes.go back|
		|<Shift>Right|false|panes.go forward|
		|BackSpace|false|<custom command>|cd ..
		|Delete|false|file.delete|
		|Insert|false|file.toggle tag|
		|<Control>t|false|file.toggle tag|
		|Home|false|<custom command>|cd $(HOME)
		|<Control>a|false|panes.select all|
		|<Control>f|false|find|
		|<Control>x|false|panes.sync|
		|<Control>h|false|panes.toggle hidden|
		|slash|false|find|
		|comma|false|panes.adjust ratio|*,100%
		|period|false|panes.adjust ratio|*,0
		|<Control>p|false|panes.show menu|
		|<Control>parenleft|false|panes.show menu|shift
		|<Control>parenright|false|panes.show menu|ctrl
	dir-line||false||
		|Tab|false|command line.complete|dirs
		|Insert|false|command line.clear|
		|<Control>Return|false|command line.insert selection|escape
		|<Alt>Return|false|command line.insert selection|
	command-line||false||
		|<Control>Return|false|command line.insert selection|escape
		|<Alt>Return|false|command line.insert selection|quote
		|Insert|false|command line.clear|
		|Tab|false|command line.complete|
		|Page_Up|false|output.page up|
		|Page_Down|false|output.page down|
		|<Shift>Page_Up|false|output.goto top|
		|<Shift>Page_Down|false|output.goto bottom|
		|<Shift>Up|false|output.scroll up|
		|<Shift>Down|false|output.scroll down|
>
keybindings-timeout=1000
<bookmarks
toolbar folder|||
	\<b>_home</b>|gtk-home|$(HOME)|~
	down||downloads|/mnt/downloads
	cdrom||/mnt/cdrom|/mnt/cdrom
/||root|/
mnt||/mnt/|/mnt/
home||/home/|/home/
usr||/usr/|/usr/
usr/local||/usr/local/|/usr/local/
>
bookmarks-button2-other=true
bookmarks-focus-after-open=true
bookmarks-confirm-delete=false
bookmarks-confirm-multi-delete=true
command-watch-priority=300
command-use-aliases=true
fileop-background=false
fileop-show=true
<command-aliases
^x |false|$[command-xterm] -e sh -c '\2'
^xx |false|$[command-xterm] -e sh -c '\2; echo "press enter"; read'
^su |false|$[command-xterm] -e sh -c 'su -c \2; echo "press enter"; read'
^clear|false|?output: clear
^quit|false|?quit
^e2help|false|?output: help
^keys|false|?output: help,keys
^e2ps|false|?command: list children
^wget|false|\0\1 --progress=bar:force \2
;\|\\|\|>\|<\|\*\|=|false|%\0\1\2
>
command-line-history-max=10
command-line-history-double=false
command-line-history-cycle=true
command-line-history-last=false
command-line-complete-append-space=true
command-line-show-output-on-focus-in=true
command-line-hide-output-on-focus-out=false
dir-line-history-max=10
dir-line-history-double=false
dir-line-history-cycle=true
dir-line-history-last=true
dir-line-focus-after-activate=true
show-output-window-on-output=false
output-jump-new=true
output-jump-new-following=true
output-jump-new-end=false
output-wrap-mode=words
output-left-margin=6
output-right-margin=2
dialog-position=center
dialog-mkdir-connected=true
dialog-mkdir-show-info=true
dialog-mkdir-show-last=false
dialog-mkdir-suggest-directory=true
dialog-mkdir-follow-pane=true
dialog-search-connected=true
dialog-search-show-options=true
dialog-search-show-info=true
dialog-search-show-last=true
dialog-search-case-sensitive=false
dialog-search-search-backward=false
dialog-search-wrap=false
dialog-view-width=84
dialog-view-height=30
dialog-view-wrap=true
<panebar 1
toggle|gtk-goto-last|toggle panel size|panes: adjust ratio|*,100%
dir line 1|||pane 1: <dir line>|,expand
marks|gtk-help||<submenu>|
	add bookmark|||bookmark: add|
	add to top|||bookmark: add|top
	edit bookmarks|||config: configure|bookmarks
	separator|||<separator>|
	bookmarks|||pane 1: <bookmarks>|
back|gtk-go-back|go back|pane 1: go back|
up|gtk-go-up|go up|pane 1: go up|
forward|gtk-go-forward|go forward|pane 1: go forward|>
>
pane 1-use-startup-dir=false
pane 1-use-startup-dir-startup-dir=/
panebar 1-show=true
panebar 1-tooltips=false
panebar 1-space=use rest button
panebar 1-type=small panebar 1
panebar 1-hori=true
panebar 1-priority=0
panebar 1-relief=false
panebar 1-same=false
panebar 1-style=icons only
panebar 1-isize=menu
<panebar 2
back|gtk-go-back|go back|pane 2: go back|
up|gtk-go-up|go up|pane 2: go up|
forward|gtk-go-forward|go forward|pane 2: go forward|
marks|gtk-help||<submenu>|
	add bookmark|||bookmark: add|
	add to top|||bookmark: add|top
	edit bookmarks|||config: configure|bookmarks
	separator|||<separator>|
	bookmarks|||pane 2: <bookmarks>|
dir line 2|||pane 2: <dir line>|,expand
|gtk-goto-first||panes: adjust ratio|*,0
>
pane 2-use-startup-dir=false
pane 2-use-startup-dir-startup-dir=/
panebar 2-show=true
panebar 2-tooltips=false
panebar 2-space=use rest button
panebar 2-type=small panebar 2
panebar 2-hori=true
panebar 2-priority=0
panebar 2-relief=false
panebar 2-same=false
panebar 2-style=icons only
panebar 2-isize=menu
toolbar-show=true
toolbar-tooltips=true
toolbar-space=use rest button
toolbar-type=small panebar 1
toolbar-hori=false
toolbar-priority=1
toolbar-relief=false
toolbar-same=false
toolbar-style=icons above text
toolbar-isize=button
commandbar-show=true
commandbar-tooltips=false
commandbar-space=use rest button
commandbar-type=main toolbar
commandbar-hori=true
commandbar-priority=1
commandbar-relief=false
commandbar-same=false
commandbar-style=text only
commandbar-isize=menu
commandbar-style=text only
commandbar-isize=menu
On a side note, before this did you get occasional crashes when creating a new directory with the mkdir dialog box?
That's something that plagued me even on my p III machine.

Anyway, if all else fails, you could try own of the later versions, they worked okay for me when I had my problem.
"You have to invite me in"
Top
Elsipkitch9809
Apprentice
Apprentice
Posts: 186
Joined: Sun Jul 21, 2002 3:12 pm

  • Quote

Post by Elsipkitch9809 » Sun Sep 11, 2005 5:32 pm

Well, the config change didn't change much, however, I made a new ebuild for the latest (0.1.1) based off of the old ebuild and it works really great. In fact, it looks like ten times better than the version I last used, and it has more functionality that I had to implement myself last time (like a trash bin instead of direct deleting).

Also, there is apparently more functionality that can be compiled in if fam has been installed, but I'm pretty rusty on ebuild syntax. Like for one thing this doesn't check for nls (I think), it just sets it automatically. If I can get this cleaned up, I'll submit it to bugzilla. Here's the ebuild I quickly hacked together:

Code: Select all

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

inherit eutils toolchain-funcs

DESCRIPTION="A file manager that implements the popular two-pane design based on gtk+-2"
HOMEPAGE="http://emelfm2.org/"
SRC_URI="http://emelfm2.org/rel/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE="nls fam"

DEPEND=">=x11-libs/gtk+-2.4"

src_unpack() {
	unpack ${A}
	#epatch ${FILESDIR}/locale.patch
}

src_compile() {
	local myconf

	# bug 68986
	export CC="$(tc-getCC) ${CFLAGS}"	
	use nls && myconf="-DENABLE_NLS"
	emake PREFIX=/usr NLS=${myconf} || die "emake failed"
}

src_install() {
	local myconf

	use nls && myconf="-DENABLE_NLS"
	dodir /usr/bin

	make PREFIX=${D}/usr \
		NLS=${myconf} \
		DOC_DIR=${D}/usr/share/doc/${PF} \
		install || die "make install failed"
	prepalldocs
}
Also, it'd probably be a good idea to check if the locale patch could be applied. Then again, I'm on UTF-8 here and it seems to work fine without that patch, so maybe it was already added to the upstream package.

Thanks for the help nonetheless though, I appreciate it! :D
Top
Elsipkitch9809
Apprentice
Apprentice
Posts: 186
Joined: Sun Jul 21, 2002 3:12 pm

  • Quote

Post by Elsipkitch9809 » Sun Sep 11, 2005 6:20 pm

Slightly better version of the ebuild:

Code: Select all

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

inherit eutils toolchain-funcs

DESCRIPTION="A file manager that implements the popular two-pane design based on gtk+-2"
HOMEPAGE="http://emelfm2.org/"
SRC_URI="http://emelfm2.org/rel/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="nls"
# Also seems to have fam, gettext(il8n), and marshalls support...
# And can compile and install plugins

DEPEND=">=x11-libs/gtk+-2.4"

src_unpack() {
	unpack ${A}
}

src_compile() {
	local nlsconf
	
	export CC="$(tc-getCC) ${CFLAGS}"		
	if use nls; then
		nlsconf="NLS=-DENABLE_NLS"
	fi
	emake PREFIX=/usr ${nlsconf} || die "emake failed"
}

src_install() {
	local nlsconf

	if use nls; then
		nlsconf="NLS=-DENABLE_NLS"
	fi
	dodir /usr/bin

	make PREFIX=${D}/usr \
		${nlsconf} \
		DOC_DIR=${D}/usr/share/doc/${PF} \
		install || die "make install failed"
	prepalldocs
}
The makefile can still be parsed for things relating to gettext, fam, and some other stuff, but for now this seems to do the job. Someone better than I at making ebuilds could probably do it in like 2 seconds. Anyway, anyone see any big issues with this if I were to submit it to bugzilla?

Btw, this new emelfm2 is really cool, I love it :D
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sun Sep 11, 2005 6:30 pm

I tried the later versions before, and I didn't like them, so I stuck with what was in portage.

I don't suppose you could post a screenshot, let me see what it's like now before I try it?

Anyway,

Code: Select all

cp -r /usr/portage/app-misc/emelfm2 /usr/local/portage/app-misc
just in case you cause the portage version to be replaced. :P
"You have to invite me in"
Top
Elsipkitch9809
Apprentice
Apprentice
Posts: 186
Joined: Sun Jul 21, 2002 3:12 pm

  • Quote

Post by Elsipkitch9809 » Sun Sep 11, 2005 8:37 pm

It doesn't have a gazillion new features, but I like the addition of a trashcan, as well as some other nice gui additions up front. It also looks nicer, but maybe that's just me :P

Oh yeah, and thanks for the note on portage. I think I'll submit the ebuild to bugzilla so we have at least more than one version in portage.
Last edited by Elsipkitch9809 on Thu Mar 03, 2016 4:29 pm, edited 1 time in total.
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Sun Sep 11, 2005 11:40 pm

alaterale wrote:Is there a way to post screenshots on this server? The only way I could think of is to put it on my website, so here it is:
http://www.wsprod.com/images/snap0000.png
Actually, I meant using something like http://imageshack.us/, but thanks for putting the screenshot up.
I have to ask, though, what gtk theme are you using? It looks like something from gtk 1.2. :P
This is how it should look. 8)

Anyway, I (obviously) tried your ebuild, and other than segfaulting with my original configs, it works fine.
Thing is, it's missing two of my favourite features, the ability to use the right cursor key to navigate directories and open files,
and the ability to select multiple files with a simple click an drag.
And I don't really want to use a trash can.

I'll be sticking with 0.0.9 for I while I think, but I don't see any reason why they wouldn't add your ebuild to portage.
Nice job.
"You have to invite me in"
Top
Elsipkitch9809
Apprentice
Apprentice
Posts: 186
Joined: Sun Jul 21, 2002 3:12 pm

  • Quote

Post by Elsipkitch9809 » Sun Sep 11, 2005 11:59 pm

Okay, it crashes a bit still, but only very occasionally when I'm changing permissions, and it doesn't seem to give an explanation and it actually does do the perm change. But crashing rarely is still better than not being able to use it at all :P

But I also noted that drag n drop has been put in as well (at least I didn't know you could do it before). So that's pretty cool, hope it'll be useful.
Top
Elsipkitch9809
Apprentice
Apprentice
Posts: 186
Joined: Sun Jul 21, 2002 3:12 pm

  • Quote

Post by Elsipkitch9809 » Mon Sep 12, 2005 12:07 am

Oh, as far as the style, I just used the default one without any configuration :P

I think the click and drag thing has been swapped out, yeah, I do remember doing that. I guess its drag n drop now, or maybe you can configure that. I'll have to take a looksee. I liked the idea of a trash can, since I don't want to worry about accidentally deleting a file, but that's just me :-P

Well, it has its ups and downs I guess, but like I said, it works instead of crashes, so I'm going to stick with this for a while. At least until I can figure out why the one in portage now was crashing...

Anyway, back to emelfm goodness :D
Top
Elsipkitch9809
Apprentice
Apprentice
Posts: 186
Joined: Sun Jul 21, 2002 3:12 pm

  • Quote

Post by Elsipkitch9809 » Mon Sep 12, 2005 12:13 am

Whoops, I guess I didn't look hard enough before, since this has already been done
http://bugs.gentoo.org/show_bug.cgi?id=90476

They have one for 0.1.0 there, with much better ebuild syntax than mine :roll:

Oh well, at least someone's still working on emelfm2 udpates :)
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Mon Sep 12, 2005 12:28 am

Drag and drop works in 0.0.9, you just have to use the middle mouse button, you can even drop into rox-filer windows (and presumably nautilus too).

About the ebuild, there's no reason you can't put yours together with the one on bugzilla and submit it to the same thread.
Seems to have been forgotten in the last two weeks, might catch someones attention again.

Edit;
Just out of interest, have you seen this?
I haven't tried it yet, as emelfm2 fullfils my needs quite nicely, but I think it's worth a look.

Only problem is the last update was january '04, so it's probably kinda dead.
"You have to invite me in"
Top
Post Reply

15 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy