All of lore.kernel.org
 help / color / mirror / Atom feed
* bbclass providing some level of scratchbox compatibility
@ 2007-11-23 14:14 Robert Schuster
  2007-11-23 15:46 ` Koen Kooi
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Schuster @ 2007-11-23 14:14 UTC (permalink / raw)
  To: openembedded-devel


[-- Attachment #1.1: Type: text/plain, Size: 1235 bytes --]

Hi,
I am using OE to build binaries that can be run from within Maemo
scratchbox.

The binaries I create are for the native architecture (the one of the
host CPU) not the emulated one. Such binaries need a special rpath. What
the bbclass does is simply putting that special rpath in LD_RUN_PATH
before configuring and compiling. This has the effect that all built
binaries have it in.

Together with a halfway compatible toolchain (CS gcc3.4.4, glibc2.3.x)
that allows me to run those binaries in Maemo's scratchbox.

I am using this for Jalimo[0] and would like to push it upstream. I am
open for suggestions.

File a bug?

Regards
Robert

[0] - http://jalimo.org/wiki/doku.php?id=doc:howto:cacaoandecjinscratchbox
# By adding this class to your build all binaries get the special rpath
# "/scratchbox/host_shared/lib/:/scratchbox/tools/lib/"
# Doing so makes libraries and programs runnable inside the Scratchbox
# environment as native binaries (not for the CPU that Scratchbox is
# emulating).

do_configure_prepend () {
  export LD_RUN_PATH="/scratchbox/host_shared/lib:/scratchbox/tools/lib"
}

do_compile_prepend () {
  export LD_RUN_PATH="/scratchbox/host_shared/lib:/scratchbox/tools/lib"
}

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* bbclass providing some level of scratchbox compatibility
@ 2007-11-23 14:15 Robert Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Schuster @ 2007-11-23 14:15 UTC (permalink / raw)
  To: openembedded-devel


[-- Attachment #1.1: Type: text/plain, Size: 1235 bytes --]

Hi,
I am using OE to build binaries that can be run from within Maemo
scratchbox.

The binaries I create are for the native architecture (the one of the
host CPU) not the emulated one. Such binaries need a special rpath. What
the bbclass does is simply putting that special rpath in LD_RUN_PATH
before configuring and compiling. This has the effect that all built
binaries have it in.

Together with a halfway compatible toolchain (CS gcc3.4.4, glibc2.3.x)
that allows me to run those binaries in Maemo's scratchbox.

I am using this for Jalimo[0] and would like to push it upstream. I am
open for suggestions.

File a bug?

Regards
Robert

[0] - http://jalimo.org/wiki/doku.php?id=doc:howto:cacaoandecjinscratchbox
# By adding this class to your build all binaries get the special rpath
# "/scratchbox/host_shared/lib/:/scratchbox/tools/lib/"
# Doing so makes libraries and programs runnable inside the Scratchbox
# environment as native binaries (not for the CPU that Scratchbox is
# emulating).

do_configure_prepend () {
  export LD_RUN_PATH="/scratchbox/host_shared/lib:/scratchbox/tools/lib"
}

do_compile_prepend () {
  export LD_RUN_PATH="/scratchbox/host_shared/lib:/scratchbox/tools/lib"
}

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* Re: bbclass providing some level of scratchbox compatibility
  2007-11-23 14:14 bbclass providing some level of scratchbox compatibility Robert Schuster
@ 2007-11-23 15:46 ` Koen Kooi
  2007-11-23 17:09   ` Robert Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2007-11-23 15:46 UTC (permalink / raw)
  To: Using the OpenEmbedded metadata to build Distributions

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

Robert Schuster schreef:
> Hi,
> I am using OE to build binaries that can be run from within Maemo
> scratchbox.
> 
> The binaries I create are for the native architecture (the one of the
> host CPU) not the emulated one. Such binaries need a special rpath. What
> the bbclass does is simply putting that special rpath in LD_RUN_PATH
> before configuring and compiling. This has the effect that all built
> binaries have it in.

Looks nice, but shouldn't we put the generated binaries (e.g. packages,
tarballs) in a special dir in deploy so there's no risk of confusing the
m with non-rpathed ones?

> Together with a halfway compatible toolchain (CS gcc3.4.4, glibc2.3.x)
> that allows me to run those binaries in Maemo's scratchbox.
> 
> I am using this for Jalimo[0] and would like to push it upstream. I am
> open for suggestions.
> 
> File a bug?

Always :)


regards,

Koen

> Regards
> Robert
> 
> [0] - http://jalimo.org/wiki/doku.php?id=doc:howto:cacaoandecjinscratchbox
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


- --
koen@dominion.kabel.utwente.nl will go go away in december 2007, please
use k.kooi@student.utwente.nl instead.

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

iD8DBQFHRvXOMkyGM64RGpERArK+AJ4vMC4CiawyuEUvl4B4nS8JZ3vPIgCdFNYv
dfREBlDgZTf/iek33/8MiOA=
=XxR9
-----END PGP SIGNATURE-----



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

* Re: bbclass providing some level of scratchbox compatibility
  2007-11-23 15:46 ` Koen Kooi
@ 2007-11-23 17:09   ` Robert Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Schuster @ 2007-11-23 17:09 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

Hi Koen.

Koen Kooi schrieb:
>> Together with a halfway compatible toolchain (CS gcc3.4.4, glibc2.3.x)
>> that allows me to run those binaries in Maemo's scratchbox.
> 
>> I am using this for Jalimo[0] and would like to push it upstream. I am
>> open for suggestions.
> 
>> File a bug?
> 
> Always :)
... and so did I:

 http://bugs.openembedded.org/show_bug.cgi?id=3360


Regards
Robert


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

end of thread, other threads:[~2007-11-23 17:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-23 14:14 bbclass providing some level of scratchbox compatibility Robert Schuster
2007-11-23 15:46 ` Koen Kooi
2007-11-23 17:09   ` Robert Schuster
  -- strict thread matches above, loose matches on Subject: below --
2007-11-23 14:15 Robert Schuster

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.