Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95104 - amule 2.0.3 released
Summary: amule 2.0.3 released
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords: EBUILD
: 96348 97759 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-05 02:43 UTC by Michael Weyershäuser
Modified: 2005-07-11 02:24 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


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

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weyershäuser 2005-06-05 02:43:39 UTC
amule 2.0.2 has just been released. I'll append a new ebuild.

Reproducible: Always
Steps to Reproduce:
Comment 1 Michael Weyershäuser 2005-06-05 02:44:58 UTC
Created attachment 60629 [details]
new ebuild for amule-2.0.2
Comment 2 Michael Weyershäuser 2005-06-05 05:58:33 UTC
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 Michael Weyershäuser 2005-06-05 06:00:37 UTC
Created attachment 60641 [details]
New ebuild for amule-2.0.2

New ebuild, for changes see above.
Comment 4 Michael Weyershäuser 2005-06-05 06:01:27 UTC
Created attachment 60642 [details]
/etc/conf.d for amuled
Comment 5 Michael Weyershäuser 2005-06-05 06:02:05 UTC
Created attachment 60643 [details]
/etc/init.d/amuled
Comment 6 Michael Weyershäuser 2005-06-05 06:02:47 UTC
Created attachment 60644 [details]
/etc/conf.d/amuleweb
Comment 7 Michael Weyershäuser 2005-06-05 06:03:13 UTC
Created attachment 60645 [details]
/etc/init.d/amuleweb
Comment 8 Miguel Latorre García 2005-06-05 07:04:55 UTC
Created attachment 60650 [details]
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 Miguel Latorre García 2005-06-05 07:13:19 UTC
Comment on attachment 60650 [details]
amule 2.0.2 unicode support

# 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 Miguel Latorre García 2005-06-05 07:31:19 UTC
Created attachment 60652 [details]
amule 2.0.2 unicode
Comment 11 Gerald 2005-06-10 02:50:59 UTC
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 Mikkel Schubert 2005-06-10 17:16:13 UTC
Btw, can anyone tell me why the aMule ebuild requires >=wxGTK-2.6.0? 
Comment 13 Gerald 2005-06-11 13:00:06 UTC
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 Mikkel Schubert 2005-06-12 02:40:07 UTC
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 Mikkel Schubert 2005-06-12 02:44:06 UTC
Oh, yeah, and if people are running wxGTK-2.5.3 or want to use amuled. ;) 
Comment 16 Francesco Di Muccio 2005-06-16 04:39:43 UTC
The ebuild proposed by Miguel Latorre Garc
Comment 17 Francesco Di Muccio 2005-06-16 04:39:43 UTC
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 Jure Repinc 2005-06-16 05:44:07 UTC
aMule 2.0.3 is already out.
Comment 19 Miguel Latorre García 2005-06-17 01:02:21 UTC
Created attachment 61372 [details]
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 Jakub Moc (RETIRED) gentoo-dev 2005-06-17 01:15:50 UTC
*** Bug 96348 has been marked as a duplicate of this bug. ***
Comment 21 Pedro Algarvio 2005-06-23 03:17:40 UTC
Created attachment 61767 [details]
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 Andreas Simon 2005-06-23 07:22:22 UTC
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 Miguel Latorre García 2005-06-23 10:17:12 UTC
Created attachment 61793 [details]
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 Miguel Latorre García 2005-06-23 10:23:12 UTC
Created attachment 61794 [details]
amule 2.0.3

amule 2.0.3 repoman clean
Changes from amule 2.0.2:
* Added optimize nosistray IUSE flags
Comment 25 Pedro Algarvio 2005-06-23 17:20:02 UTC
(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 Pedro Algarvio 2005-06-23 17:21:37 UTC
(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 Jakub Moc (RETIRED) gentoo-dev 2005-07-02 13:20:50 UTC
*** Bug 97759 has been marked as a duplicate of this bug. ***
Comment 28 Jure Repinc 2005-07-03 13:01:48 UTC
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 Sgue' 2005-07-08 03:53:35 UTC
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 Tony Vroon (RETIRED) gentoo-dev 2005-07-10 08:02:05 UTC
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.