All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libtorrent / rtorrent: add latest upstream versions and fix crash on nslu2
@ 2010-05-05  6:34 Henry von Tresckow
  2010-05-05  6:45 ` Graeme Gregory
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Henry von Tresckow @ 2010-05-05  6:34 UTC (permalink / raw)
  To: openembedded-devel

- added version 0.12.6 of libtorrent and 0.8.6 of rtorrent
- added FULL_OPTIMIZATION_nslu2 ="-mcpu=xscale -fexpensive-optimizations -frename-registers -O2 -fpermissive -fno-inline"
These parameters were recommended at the rtorrent website (http://libtorrent.rakshasa.no/wiki/LibTorrentKnownIssues#NSLU2routersandxscalebaseddevices)

Signed-off-by: Henry von Tresckow <hvontres@gmail.com>
---
 recipes/libtorrent/libtorrent_0.12.6.bb |   22 ++++++++++++++++++++++
 recipes/libtorrent/rtorrent_0.8.6.bb    |   17 +++++++++++++++++
 2 files changed, 39 insertions(+), 0 deletions(-)
 create mode 100644 recipes/libtorrent/libtorrent_0.12.6.bb
 create mode 100644 recipes/libtorrent/rtorrent_0.8.6.bb

diff --git a/recipes/libtorrent/libtorrent_0.12.6.bb b/recipes/libtorrent/libtorrent_0.12.6.bb
new file mode 100644
index 0000000..075ce40
--- /dev/null
+++ b/recipes/libtorrent/libtorrent_0.12.6.bb
@@ -0,0 +1,22 @@
+DESCRIPTION = "library implementing the bittorrent protocol"
+HOMEPAGE = "http://libtorrent.rakshasa.no"
+SECTION = "libs/network"
+LICENSE = "GPL"
+DEPENDS = "libsigc++-2.0 openssl"
+
+SRC_URI = "http://libtorrent.rakshasa.no/downloads/libtorrent-${PV}.tar.gz"
+PR = "r0.1"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--enable-aligned"
+
+FULL_OPTIMIZATION_nslu2 ="-mcpu=xscale -fexpensive-optimizations -frename-registers -O2 -fpermissive -fno-inline"
+
+do_stage() {
+	autotools_stage_all
+}
+
+
+SRC_URI[md5sum] = "037499ed708aaf72988cee60e5a8d96b"
+SRC_URI[sha256sum] = "7b02f33164966a05261e83bad76eef537198fefe76eaf57dfd64bb27c7d77129"
diff --git a/recipes/libtorrent/rtorrent_0.8.6.bb b/recipes/libtorrent/rtorrent_0.8.6.bb
new file mode 100644
index 0000000..c765086
--- /dev/null
+++ b/recipes/libtorrent/rtorrent_0.8.6.bb
@@ -0,0 +1,17 @@
+DESCRIPTION = "Console bittorrent client using libtorrent"
+HOMEPAGE = "http://libtorrent.rakshasa.no"
+SECTION = "libs/network"
+LICENSE = "GPL"
+DEPENDS = "libtorrent curl ncurses gnutls libgpg-error"
+
+SRC_URI = "http://libtorrent.rakshasa.no/downloads/rtorrent-${PV}.tar.gz \
+           file://autoconf-cross-fix.patch;patch=1"
+
+PR = "r0"
+
+inherit autotools
+
+FULL_OPTIMIZATION_nslu2 ="-mcpu=xscale -fexpensive-optimizations -frename-registers -O2 -fpermissive -fno-inline"
+
+SRC_URI[md5sum] = "b804c45c01c40312926bcea6b55bb084"
+SRC_URI[sha256sum] = "8c96c68e1524162abd1fc4b612d0c3d924fccc25159c0b3f208e69281f0b32db"
-- 
1.6.3.3




^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] libtorrent / rtorrent: add latest upstream versions and fix crash on nslu2
  2010-05-05  6:34 [PATCH] libtorrent / rtorrent: add latest upstream versions and fix crash on nslu2 Henry von Tresckow
@ 2010-05-05  6:45 ` Graeme Gregory
  2010-05-05  7:43   ` Hans Henry von Tresckow
  2010-05-05  7:29 ` Michael Lippautz
  2010-05-05  8:40 ` Koen Kooi
  2 siblings, 1 reply; 7+ messages in thread
From: Graeme Gregory @ 2010-05-05  6:45 UTC (permalink / raw)
  To: openembedded-devel

You need to add a PACKAGE_ARCH_nlus2 = "${MACHINE_ARCH}" to this as its
now nslu2 specific.

Graeme

On Tue, May 04, 2010 at 11:34:46PM -0700, Henry von Tresckow wrote:
> - added version 0.12.6 of libtorrent and 0.8.6 of rtorrent
> - added FULL_OPTIMIZATION_nslu2 ="-mcpu=xscale -fexpensive-optimizations -frename-registers -O2 -fpermissive -fno-inline"
> These parameters were recommended at the rtorrent website (http://libtorrent.rakshasa.no/wiki/LibTorrentKnownIssues#NSLU2routersandxscalebaseddevices)
> 
> Signed-off-by: Henry von Tresckow <hvontres@gmail.com>
> ---
>  recipes/libtorrent/libtorrent_0.12.6.bb |   22 ++++++++++++++++++++++
>  recipes/libtorrent/rtorrent_0.8.6.bb    |   17 +++++++++++++++++
>  2 files changed, 39 insertions(+), 0 deletions(-)
>  create mode 100644 recipes/libtorrent/libtorrent_0.12.6.bb
>  create mode 100644 recipes/libtorrent/rtorrent_0.8.6.bb
> 
> diff --git a/recipes/libtorrent/libtorrent_0.12.6.bb b/recipes/libtorrent/libtorrent_0.12.6.bb
> new file mode 100644
> index 0000000..075ce40
> --- /dev/null
> +++ b/recipes/libtorrent/libtorrent_0.12.6.bb
> @@ -0,0 +1,22 @@
> +DESCRIPTION = "library implementing the bittorrent protocol"
> +HOMEPAGE = "http://libtorrent.rakshasa.no"
> +SECTION = "libs/network"
> +LICENSE = "GPL"
> +DEPENDS = "libsigc++-2.0 openssl"
> +
> +SRC_URI = "http://libtorrent.rakshasa.no/downloads/libtorrent-${PV}.tar.gz"
> +PR = "r0.1"
> +
> +inherit autotools pkgconfig
> +
> +EXTRA_OECONF = "--enable-aligned"
> +
> +FULL_OPTIMIZATION_nslu2 ="-mcpu=xscale -fexpensive-optimizations -frename-registers -O2 -fpermissive -fno-inline"
> +
> +do_stage() {
> +	autotools_stage_all
> +}
> +
> +
> +SRC_URI[md5sum] = "037499ed708aaf72988cee60e5a8d96b"
> +SRC_URI[sha256sum] = "7b02f33164966a05261e83bad76eef537198fefe76eaf57dfd64bb27c7d77129"
> diff --git a/recipes/libtorrent/rtorrent_0.8.6.bb b/recipes/libtorrent/rtorrent_0.8.6.bb
> new file mode 100644
> index 0000000..c765086
> --- /dev/null
> +++ b/recipes/libtorrent/rtorrent_0.8.6.bb
> @@ -0,0 +1,17 @@
> +DESCRIPTION = "Console bittorrent client using libtorrent"
> +HOMEPAGE = "http://libtorrent.rakshasa.no"
> +SECTION = "libs/network"
> +LICENSE = "GPL"
> +DEPENDS = "libtorrent curl ncurses gnutls libgpg-error"
> +
> +SRC_URI = "http://libtorrent.rakshasa.no/downloads/rtorrent-${PV}.tar.gz \
> +           file://autoconf-cross-fix.patch;patch=1"
> +
> +PR = "r0"
> +
> +inherit autotools
> +
> +FULL_OPTIMIZATION_nslu2 ="-mcpu=xscale -fexpensive-optimizations -frename-registers -O2 -fpermissive -fno-inline"
> +
> +SRC_URI[md5sum] = "b804c45c01c40312926bcea6b55bb084"
> +SRC_URI[sha256sum] = "8c96c68e1524162abd1fc4b612d0c3d924fccc25159c0b3f208e69281f0b32db"
> -- 
> 1.6.3.3
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] libtorrent / rtorrent: add latest upstream versions and fix crash on nslu2
  2010-05-05  6:34 [PATCH] libtorrent / rtorrent: add latest upstream versions and fix crash on nslu2 Henry von Tresckow
  2010-05-05  6:45 ` Graeme Gregory
@ 2010-05-05  7:29 ` Michael Lippautz
  2010-05-05  7:40   ` Hans Henry von Tresckow
  2010-05-05  8:40 ` Koen Kooi
  2 siblings, 1 reply; 7+ messages in thread
From: Michael Lippautz @ 2010-05-05  7:29 UTC (permalink / raw)
  To: openembedded-devel

> diff --git a/recipes/libtorrent/libtorrent_0.12.6.bb b/recipes/libtorrent/libtorrent_0.12.6.bb
> new file mode 100644
> index 0000000..075ce40
> --- /dev/null
> +++ b/recipes/libtorrent/libtorrent_0.12.6.bb
> @@ -0,0 +1,22 @@
> +DESCRIPTION = "library implementing the bittorrent protocol"
> +HOMEPAGE = "http://libtorrent.rakshasa.no"
> +SECTION = "libs/network"
> +LICENSE = "GPL"
> +DEPENDS = "libsigc++-2.0 openssl"
> +
> +SRC_URI = "http://libtorrent.rakshasa.no/downloads/libtorrent-${PV}.tar.gz"
> +PR = "r0.1"
> +
> +inherit autotools pkgconfig
> +
> +EXTRA_OECONF = "--enable-aligned"
> +
> +FULL_OPTIMIZATION_nslu2 ="-mcpu=xscale -fexpensive-optimizations -frename-registers -O2 -fpermissive -fno-inline"
> +
> +do_stage() {
> +       autotools_stage_all

1) No need for further dividing PR into subnumbers, r0 is sufficient.

2) On .dev your do not need to stage (mostly) anymore. If autotools
installs everything correctly you can just dismiss the do_stage()
routine. If something is missing, then install it via
do_install_append in the appropriate folder and OE will determine that
it needs to be staged. depending on the files' paths.

Regards,
Michael



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] libtorrent / rtorrent: add latest upstream versions and fix crash on nslu2
  2010-05-05  7:29 ` Michael Lippautz
@ 2010-05-05  7:40   ` Hans Henry von Tresckow
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Henry von Tresckow @ 2010-05-05  7:40 UTC (permalink / raw)
  To: openembedded-devel

On Wed, May 5, 2010 at 12:29 AM, Michael Lippautz <
michael.lippautz@gmail.com> wrote:

> > diff --git a/recipes/libtorrent/libtorrent_0.12.6.bbb/recipes/libtorrent/
> libtorrent_0.12.6.bb
> > new file mode 100644
> > index 0000000..075ce40
> > --- /dev/null
> > +++ b/recipes/libtorrent/libtorrent_0.12.6.bb
> > @@ -0,0 +1,22 @@
> > +DESCRIPTION = "library implementing the bittorrent protocol"
> > +HOMEPAGE = "http://libtorrent.rakshasa.no"
> > +SECTION = "libs/network"
> > +LICENSE = "GPL"
> > +DEPENDS = "libsigc++-2.0 openssl"
> > +
> > +SRC_URI = "
> http://libtorrent.rakshasa.no/downloads/libtorrent-${PV}.tar.gz<http://libtorrent.rakshasa.no/downloads/libtorrent-$%7BPV%7D.tar.gz>
> "
> > +PR = "r0.1"
> > +
> > +inherit autotools pkgconfig
> > +
> > +EXTRA_OECONF = "--enable-aligned"
> > +
> > +FULL_OPTIMIZATION_nslu2 ="-mcpu=xscale -fexpensive-optimizations
> -frename-registers -O2 -fpermissive -fno-inline"
> > +
> > +do_stage() {
> > +       autotools_stage_all
>
> 1) No need for further dividing PR into subnumbers, r0 is sufficient.
>

Thanks for catching that... left over from testing...

>
> 2) On .dev your do not need to stage (mostly) anymore. If autotools
> installs everything correctly you can just dismiss the do_stage()
> routine. If something is missing, then install it via
> do_install_append in the appropriate folder and OE will determine that
> it needs to be staged. depending on the files' paths.
>

Ok. I just copied the older revisinons. I'll chek on that tomorrow

>
> Regards,
> Michael
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



-- 
Henry von Tresckow (hvontres)


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] libtorrent / rtorrent: add latest upstream versions and fix crash on nslu2
  2010-05-05  6:45 ` Graeme Gregory
@ 2010-05-05  7:43   ` Hans Henry von Tresckow
  2010-05-05  7:54     ` Graeme Gregory
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Henry von Tresckow @ 2010-05-05  7:43 UTC (permalink / raw)
  To: openembedded-devel

On Tue, May 4, 2010 at 11:45 PM, Graeme Gregory <dp@xora.org.uk> wrote:

> You need to add a PACKAGE_ARCH_nlus2 = "${MACHINE_ARCH}" to this as its
> now nslu2 specific.
>
> Graeme
>
>
How should I apply the optimization only for nslu2 and other xscale
machines? To make matters even more complicated, it seems that gcc > 4.3.0
doesn't need this workaround.

Any pointers would be appreciated. Also, should I fix up the older revisions
as well or just the newest version?
-- 
Henry von Tresckow (hvontres)


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] libtorrent / rtorrent: add latest upstream versions and fix crash on nslu2
  2010-05-05  7:43   ` Hans Henry von Tresckow
@ 2010-05-05  7:54     ` Graeme Gregory
  0 siblings, 0 replies; 7+ messages in thread
From: Graeme Gregory @ 2010-05-05  7:54 UTC (permalink / raw)
  To: openembedded-devel

On Wed, May 05, 2010 at 12:43:46AM -0700, Hans Henry von Tresckow wrote:
> On Tue, May 4, 2010 at 11:45 PM, Graeme Gregory <dp@xora.org.uk> wrote:
> 
> > You need to add a PACKAGE_ARCH_nlus2 = "${MACHINE_ARCH}" to this as its
> > now nslu2 specific.
> >
> > Graeme
> >
> >
> How should I apply the optimization only for nslu2 and other xscale
> machines? To make matters even more complicated, it seems that gcc > 4.3.0
> doesn't need this workaround.
> 
> Any pointers would be appreciated. Also, should I fix up the older revisions
> as well or just the newest version?

Is this some recent bug, back in my zaurus days I never had a problem
running rtorrent without special flags?

In the Angstrom distribution we had to add CPU class support for some things
so we can for example add the same optimisations to all omap3 without
naming each machine individually. I also added this years ago to openmoko
distribution. Its something someone needs to get right for inclusion into
OE wholescale!

Graeme




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] libtorrent / rtorrent: add latest upstream versions and fix crash on nslu2
  2010-05-05  6:34 [PATCH] libtorrent / rtorrent: add latest upstream versions and fix crash on nslu2 Henry von Tresckow
  2010-05-05  6:45 ` Graeme Gregory
  2010-05-05  7:29 ` Michael Lippautz
@ 2010-05-05  8:40 ` Koen Kooi
  2 siblings, 0 replies; 7+ messages in thread
From: Koen Kooi @ 2010-05-05  8:40 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05-05-10 08:34, Henry von Tresckow wrote:
> - added version 0.12.6 of libtorrent and 0.8.6 of rtorrent
> - added FULL_OPTIMIZATION_nslu2 ="-mcpu=xscale -fexpensive-optimizations -frename-registers -O2 -fpermissive -fno-inline"

It would be better to stuff that in your $DISTRO as:

FULL_OPTIMIZATION_pn-rtorrent = "-mcpu=xscale -fexpensive-optimizations
- -frename-registers -O2 -fpermissive -fno-inline"

or

FULL_OPTIMIZATION_pn-rtorrent_nslu2 = "-mcpu=xscale
- -fexpensive-optimizations -frename-registers -O2 -fpermissive -fno-inline"

See the perl example in
http://cgit.openembedded.org/cgit.cgi/openembedded/tree/conf/distro/include/angstrom-glibc.inc

And "-fexpensive-optimizations" should only be used after manually
verifying the performance increase, on ARM it usually doesn't work as
intended.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFL4S8IMkyGM64RGpERAsQqAJ48FKOGVu0W2fWNjoj9nqabFo+dnwCeNqsa
d7h1UrgBA+KqUsQziN40OYY=
=U5hG
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-05-05  8:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-05  6:34 [PATCH] libtorrent / rtorrent: add latest upstream versions and fix crash on nslu2 Henry von Tresckow
2010-05-05  6:45 ` Graeme Gregory
2010-05-05  7:43   ` Hans Henry von Tresckow
2010-05-05  7:54     ` Graeme Gregory
2010-05-05  7:29 ` Michael Lippautz
2010-05-05  7:40   ` Hans Henry von Tresckow
2010-05-05  8:40 ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.