First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 95104
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo net-p2p team <net-p2p@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Michael Weyershäuser <thedude0001@gmx.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
amule-2.0.2.ebuild new ebuild for amule-2.0.2 text/plain Michael Weyershäuser 2005-06-05 02:44 0000 2.06 KB Details
amule-2.0.2.ebuild New ebuild for amule-2.0.2 text/plain Michael Weyershäuser 2005-06-05 06:00 0000 2.18 KB Details
amuled.confd /etc/conf.d for amuled text/plain Michael Weyershäuser 2005-06-05 06:01 0000 313 bytes Details
amuled.initd /etc/init.d/amuled text/plain Michael Weyershäuser 2005-06-05 06:02 0000 1.01 KB Details
amuleweb.confd /etc/conf.d/amuleweb text/plain Michael Weyershäuser 2005-06-05 06:02 0000 599 bytes Details
amuleweb.initd /etc/init.d/amuleweb text/plain Michael Weyershäuser 2005-06-05 06:03 0000 1.05 KB Details
amule-2.0.2.ebuild amule 2.0.2 unicode support text/plain Miguel Latorre García 2005-06-05 07:04 0000 2.08 KB Details
amule-2.0.2.ebuild amule 2.0.2 unicode text/plain Miguel Latorre García 2005-06-05 07:31 0000 2.19 KB Details
amule-2.0.2.ebuild amule 2.02 amuled unicode text/plain Miguel Latorre García 2005-06-17 01:02 0000 2.82 KB Details
amule-2.0.3.ebuild amule-2.0.3 with unicode support plus extra flags text/plain Pedro Algarvio 2005-06-23 03:17 0000 3.85 KB Details
amule-2.0.2.ebuild amule 2.0.2 text/plain Miguel Latorre García 2005-06-23 10:17 0000 2.68 KB Details
amule-2.0.3.ebuild amule 2.0.3 text/plain Miguel Latorre García 2005-06-23 10:23 0000 3.24 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 95104 depends on: Show dependency tree
Show dependency graph
Bug 95104 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-06-05 02:43 0000
amule 2.0.2 has just been released. I'll append a new ebuild.

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Michael Weyershäuser 2005-06-05 02:44:58 0000 -------
Created an attachment (id=60629) [edit]
new ebuild for amule-2.0.2

------- Comment #2 From Michael Weyershäuser 2005-06-05 05:58:33 0000 -------
After taking a closer look at the ebuild I saw some possibilities for
optimization.

Changes:
- amulecmdgui and amulewebgui are no longer built as they are meant for a
non-commandline-OS like Win32 (amulecmd & amuleweb are still built if "remote"
is set)
- If the USE flag "X" is not set the monolithic amule app is not built (useful
for headless machines running amuled)
- Introduced a new USE flag "amuleremotegui" for the amule remote gui. The old
way of building the remote gui when the daemon was built was not the best
solution in my opinion. Also note: The remote gui is still experimental and not
completed! You can watch your downloads, but you can't set preferences or see
the stats.
- The ebuild checks if "-X" and "amuleremotegui" is set and dies with an error
message if that is the case.

There was support for /etc/init.d/amuled & /etc/conf.d/amuled &
/etc/init.d/amuleweb & /etc/conf.d/amuleweb added in the 2.0.0 and 2.0.1 ebuild
but the actual files got lost and never reached portage. I will repost them
here...

------- Comment #3 From Michael Weyershäuser 2005-06-05 06:00:37 0000 -------
Created an attachment (id=60641) [edit]
New ebuild for amule-2.0.2

New ebuild, for changes see above.

------- Comment #4 From Michael Weyershäuser 2005-06-05 06:01:27 0000 -------
Created an attachment (id=60642) [edit]
/etc/conf.d for amuled

------- Comment #5 From Michael Weyershäuser 2005-06-05 06:02:05 0000 -------
Created an attachment (id=60643) [edit]
/etc/init.d/amuled

------- Comment #6 From Michael Weyershäuser 2005-06-05 06:02:47 0000 -------
Created an attachment (id=60644) [edit]
/etc/conf.d/amuleweb

------- Comment #7 From Michael Weyershäuser 2005-06-05 06:03:13 0000 -------
Created an attachment (id=60645) [edit]
/etc/init.d/amuleweb

------- Comment #8 From Miguel Latorre García 2005-06-05 07:04:55 0000 -------
Created an attachment (id=60650) [edit]
amule 2.0.2 unicode support

Michael, i have had some troubles with the latest ebuilds.
wxGTK 2.6.0 uses a different flag from the 2.4 release: gtk2-unicode instead of
unicode, that's why the bug of "recompile wxGTK with unicode support" shows up.
The workaround is not pretty, but at least it does not give error messages.

This is the modified ebuild with your changes. 

------- Comment #9 From Miguel Latorre García 2005-06-05 07:13:19 0000 -------
(From update of attachment 60650 [edit])
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/amule/amule-2.0.1.ebuild,v 1.3
2005/06/02 18:30:30 sekretarz Exp $

inherit eutils flag-o-matic wxwidgets

MY_P=${P/m/M}
S=${WORKDIR}/${MY_P}

DESCRIPTION="aMule, the all-platform eMule p2p client"
HOMEPAGE="http://www.amule.org/"
SRC_URI="http://download.berlios.de/${PN}/${MY_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc ~ppc64 ~sparc ~alpha"
IUSE="amuled amuleremotegui debug gtk2 nls remote stats unicode X"


DEPEND=">=x11-libs/wxGTK-2.6.0
	>=sys-libs/zlib-1.2.2
	nls? ( sys-devel/gettext )
	remote? ( >=media-libs/libpng-1.2.8 )
	stats? ( >=media-libs/gd-2.0.32 )
	!net-p2p/xmule"

pkg_setup() {
	export WX_GTK_VER="2.6"
	if ! use gtk2; then
		need-wxwidgets gtk
	elif use unicode; then
		need-wxwidgets gtk2-unicode
	else
		need-wxwidgets gtk2
	fi

	if ! use X && use amuleremotegui; then
		die "You cannot set amuleremotegui while X is not set in your
USE flags."
	fi
}

src_compile() {
	if ! use X; then
		EXTRA_ECONF="--disable-monolithic"
	fi

	econf \
		--disable-optimize \
		--with-wx-config=${WX_CONFIG} \
		--with-wxbase-config=${WX_CONFIG} \
		`use_enable amuled amule-daemon` \
		`use_enable amuleremotegui amule-gui` \
		`use_enable debug` \
		`use_enable nls` \
		`use_enable remote amulecmd` \
		`use_enable remote webserver` \
		`use_enable stats cas` \
		`use_enable stats wxcas` \
		`use_enable stats alc` \
		`use_enable stats alcc` \
		|| die
	# we filter ssp until bug #74457 is closed to build on hardened
	if has_hardened; then
	filter-flags -fstack-protector -fstack-protector-all
	fi
	emake -j1 || die
}

src_install() {
	make DESTDIR=${D} install || die

	if use amuled || use remote; then
		if ! id p2p >/dev/null; then
			enewgroup p2p
			enewuser p2p -1 /bin/false /home/p2p p2p
		fi
	fi

	if use amuled; then
		insinto /etc/conf.d; newins ${FILESDIR}/amuled.confd amuled
		exeinto /etc/init.d; newexe ${FILESDIR}/amuled.initd amuled
	fi

	if use remote; then
		insinto /etc/conf.d; newins ${FILESDIR}/amuleweb.confd amuleweb
		exeinto /etc/init.d; newexe ${FILESDIR}/amuleweb.initd amuleweb
	fi
}

------- Comment #10 From Miguel Latorre García 2005-06-05 07:31:19 0000 -------
Created an attachment (id=60652) [edit]
amule 2.0.2 unicode

------- Comment #11 From Gerald 2005-06-10 02:50:59 0000 -------
Request - Please add another dependency:

media-libs/gd

should be added to the dependencies if
- webserver support is is built ('remote' use flag)
and
- unicode is enabled ('unicode' use flag).

Otherwise the Webserver will have missing/corrupted progress bar pictures as
described here: http://forum.amule.org/thread.php?threadid=6217

Thanks!

------- Comment #12 From Mikkel Schubert 2005-06-10 17:16:13 0000 -------
Btw, can anyone tell me why the aMule ebuild requires >=wxGTK-2.6.0? 

------- Comment #13 From Gerald 2005-06-11 13:00:06 0000 -------
Well, perhaps because the amule developers seriously recommend using that, and
because you will get only the answer "Upgrade to wxGTK 2.6" in their support
forums if you use wxGTK 2.4 ?

------- Comment #14 From Mikkel Schubert 2005-06-12 02:40:07 0000 -------
Well, that can't be true (OK, Kry might claim otherwise :P), we still 
officially support wxGTK-2.4.2 (I for one use it) and will be doing so until 
the 2.6 branch has become stable in quite a lot more distros than is currently 
the case. ;) 
 
The only case where we only support wxGTK-2.6 over wxGTK-2.4 is in the case of 
GTK2 support and when used on Windows or MacOSX.  

------- Comment #15 From Mikkel Schubert 2005-06-12 02:44:06 0000 -------
Oh, yeah, and if people are running wxGTK-2.5.3 or want to use amuled. ;) 

------- Comment #16 From Francesco Di Muccio 2005-06-16 04:39:43 0000 -------
The ebuild proposed by Miguel Latorre Garc

------- Comment #17 From Francesco Di Muccio 2005-06-16 04:39:43 0000 -------
The ebuild proposed by Miguel Latorre García (id=60652) is bugged because
there is no use flag  
gtk2-unicode in wxGTK-2.6.0 (just gtk2 and unicode).  

Furthermore if I try to compile amule with only USE="amuled remote" the ebuild
dies, here is the full  
output:  

router amule # USE="amuled remote" ACCEPT_KEYWORDS="~x86" emerge amule  

These are the packages that I would merge, in order:  

Calculating dependencies ...done!  
[ebuild  N    ] net-p2p/amule-2.0.2  -X +amuled -amuleremotegui -debug -gtk2
-nls +remote -stats  
-unicode 0 kB [1]  

Total size of downloads: 0 kB  
Portage overlays:  
 [1] /usr/local/portage  

Do you want me to merge these packages?[Yes/No] y  
 >>> emerge (1 of 1) net-p2p/amule-2.0.2 to /  
>>> md5 files   ;-) amule-2.0.2.ebuild  
>>> md5 files   ;-) files/amuleweb.initd  
>>> md5 files   ;-) files/amuled.confd  
>>> md5 files   ;-) files/amuled.initd  
>>> md5 files   ;-) files/digest-amule-2.0.2  
>>> md5 src_uri ;-) aMule-2.0.2.tar.bz2  
!!! set-wxconfig: Error:  Can't find normal or debug version:  
!!! set-wxconfig:         /usr/lib/wx/config/gtk-ansi-release-2.6 not found  
!!! set-wxconfig:         /usr/lib/wx/config/gtk-ansi-debug-2.6 not found  
!!! You need to emerge wxGTK with wxgtk1 in your USE  

It's trying to search for wxGTK compiled with gtk, but since I have no X, I
compiled wxGTK-2.6 with  
-gtk1 and -gtk2 so to build only wxbase.   
In the following HowTo http://www.amule.org/wiki/index.php/HowTo_Compile_aMuled
it's explained  
that I need only wxbase (or am I wrong?), so why does wxconfig search for gtk? 

------- Comment #18 From Jure Repinc 2005-06-16 05:44:07 0000 -------
aMule 2.0.3 is already out.

------- Comment #19 From Miguel Latorre García 2005-06-17 01:02:21 0000 -------
Created an attachment (id=61372) [edit]
amule 2.02 amuled unicode

This ebuild adds the patches for:

- gtk2-unicode was unicode
- amule standalone installation (use -wxgtk1 and -gtk2 to compile base wxgtk,
recommended in the new wxgtk-2.6.0-r1)
- progress bars bug

------- Comment #20 From Jakub Moc 2005-06-17 01:15:50 0000 -------
*** Bug 96348 has been marked as a duplicate of this bug. ***

------- Comment #21 From Pedro Algarvio 2005-06-23 03:17:40 0000 -------
Created an attachment (id=61767) [edit]
amule-2.0.3 with unicode support plus extra flags

amule-2.0.3 with unicode support plus additional and necessary(for me) flags.

This is their latest stable release!

------- Comment #22 From Andreas Simon 2005-06-23 07:22:22 0000 -------
Thanks for the ebuild. This latest amule 2.0.3 seems to work fine for me so  
far, but I didn't tested amuleweb or amuled.  
  
BTW, you should run repoman over the ebuild, there are several issues in the  
ebuild it complains about. If you want/hope that some gentoo dev adopts your 
ebuild it's surely a good advertisement if you can say "it's repoman 
clean". ;-) 
 

------- Comment #23 From Miguel Latorre García 2005-06-23 10:17:12 0000 -------
Created an attachment (id=61793) [edit]
amule 2.0.2

amule 2.0.2 repoman clean.
- Changes from 2.0.1 release:
* Added remotegui, wxgtk1 IUSE flags
* Fixed progressbars bug with the webserver
* amuled standalone installation with -wxgtk1 && -gtk2 (wxGTK-2.6.0-r1)

------- Comment #24 From Miguel Latorre García 2005-06-23 10:23:12 0000 -------
Created an attachment (id=61794) [edit]
amule 2.0.3

amule 2.0.3 repoman clean
Changes from amule 2.0.2:
* Added optimize nosistray IUSE flags

------- Comment #25 From Pedro Algarvio 2005-06-23 17:20:02 0000 -------
(In reply to comment #21)
> Thanks for the ebuild. This latest amule 2.0.3 seems to work fine for me so  
> far, but I didn't tested amuleweb or amuled.  
>   
> BTW, you should run repoman over the ebuild, there are several issues in the  
> ebuild it complains about. If you want/hope that some gentoo dev adopts your 
> ebuild it's surely a good advertisement if you can say "it's repoman 
> clean". ;-) 
>  

Hum... Sorry but how do I use repoman for that...
And yes I've the man page.

------- Comment #26 From Pedro Algarvio 2005-06-23 17:21:37 0000 -------
(In reply to comment #24)
> (In reply to comment #21)
> > Thanks for the ebuild. This latest amule 2.0.3 seems to work fine for me so  
> > far, but I didn't tested amuleweb or amuled.  
> >   
> > BTW, you should run repoman over the ebuild, there are several issues in the  
> > ebuild it complains about. If you want/hope that some gentoo dev adopts your 
> > ebuild it's surely a good advertisement if you can say "it's repoman 
> > clean". ;-) 
> >  
> 
> Hum... Sorry but how do I use repoman for that...
> And yes I've the man page.
> 

And yes I've seen the man page.

------- Comment #27 From Jakub Moc 2005-07-02 13:20:50 0000 -------
*** Bug 97759 has been marked as a duplicate of this bug. ***

------- Comment #28 From Jure Repinc 2005-07-03 13:01:48 0000 -------
I just renamed the ebuild to version 2.0.3 a few days ago and created digest
and
the new version is runing fine ever since. Is there some problem why it is not
updated in the portage for all the people.

------- Comment #29 From Sgue' 2005-07-08 03:53:35 0000 -------
I tried 61767 and 61794 ebuilds with -* +amuled +remote. 
Emerge fails:
amule-gui.cpp:281: error: parse error before `(' token
amule-gui.cpp:277: warning: unused parameter `wxString strText'
/usr/lib/gcc-lib/i586-pc-linux-gnu/3.3.5-20050130/include/g++-v3/bits/stl_multimap.h:
At top level:
StatisticsDlg.h:64: warning: `COLORREF getColors(int)' declared `static' but
never defined
{standard input}: Assembler messages:
{standard input}:210: Error: symbol `sm_eventHashTable' is already defined
{standard input}:236: Error: symbol `sm_eventHashTable' is already defined
{standard input}:244: Error: symbol `sm_eventHashTable' is already defined
{standard input}:270: Error: symbol `sm_eventHashTable' is already defined
{standard input}:306: Error: symbol `sm_eventHashTable' is already defined
{standard input}:354: Error: symbol `sm_eventHashTable' is already defined
{standard input}:356: Error: symbol `sm_eventHashTable' is already defined
make[3]: *** [amulegui-amule-gui.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/amule-2.0.3/work/aMule-2.0.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/amule-2.0.3/work/aMule-2.0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/amule-2.0.3/work/aMule-2.0.3'
make: *** [all] Error 2

------- Comment #30 From Tony Vroon 2005-07-10 08:02:05 0000 -------
2.0.3 now in portage. Michael, I have added the missing initscripts, thanks for
that. I have not changed the ebuild, for the following reasons:
- old style if-statement magic is used, while use_enable is used in these ebuilds
- die-statements are used to die on USE-flag combinations <--- *BAD*
- the fact that some combinations are invalid suggest that these new USE-flags
need more thought

I would have rewritten the if-magic if not for the die-statements & the
combination issue. Please rethink your strategy, and open a new bug to get a
revised ebuild checked into the portage tree.

First Last Prev Next    No search results available      Search page      Enter new bug