Skip to contentSkip to conversation

Joshua Lock : relocatable: Class to post-process packages for relocatability

oe-commits Tom Rini 3 participants 6 messages Apr 1, 2010 – May 3, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Tom Rini

author
#1 lore raw
Quoted 9 lines · git version control
Module: openembedded.git
Branch: rpurdie/work-in-progress
Commit: 2365530efff7681fa34b2a466cf5f78acac10274
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2365530efff7681fa34b2a466cf5f78acac10274
Author: Joshua Lock <[email protected]>
Date:   Wed Mar 31 11:41:58 2010 +0100

relocatable: Class to post-process packages for relocatability

[snip]

Review

Quoted 2 lines
(quoted diff) +2 -0
+def rpath_replace (path, d):
+    bindirs = bb.data.expand("${bindir} ${sbindir} ${base_sbindir} ${base_bindir} ${libdir} ${base_libdir} ${PREPROCESS_RELOCATE_DIRS}", d).split()

Is that last variable there to let recipes add non-standard locations to the search path?

[snip]

Quoted 1 line

- required_utilities = "patch help2man diffstat texi2html

makeinfo cvs svn bzip2 tar gzip gawk md5sum"

Quoted 1 line

+ required_utilities = "patch help2man diffstat texi2html

makeinfo cvs svn bzip2 tar gzip gawk md5sum chrpath"

How hard would it be to add a chrpath-native recipe and maybe treat this like we used to treat qemu? Don't see it in yum on my rhel5 box. Thanks.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
#2 lore raw

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

Quoted 18 lines · Tom Rini
Quoted 9 lines · git version control
Module: openembedded.git
Branch: rpurdie/work-in-progress
Commit: 2365530efff7681fa34b2a466cf5f78acac10274
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2365530efff7681fa34b2a466cf5f78acac10274
Author: Joshua Lock <[email protected]>
Date:   Wed Mar 31 11:41:58 2010 +0100

relocatable: Class to post-process packages for relocatability

[snip]

Review

Quoted 2 lines
(quoted diff) +2 -0
+def rpath_replace (path, d):
+    bindirs = bb.data.expand("${bindir} ${sbindir} ${base_sbindir} ${base_bindir} ${libdir} ${base_libdir} ${PREPROCESS_RELOCATE_DIRS}", d).split()

Is that last variable there to let recipes add non-standard locations to the search path?

[snip]

Quoted 8 lines
Quoted 1 line

- required_utilities = "patch help2man diffstat texi2html

makeinfo cvs svn bzip2 tar gzip gawk md5sum"

Quoted 1 line

+ required_utilities = "patch help2man diffstat texi2html

makeinfo cvs svn bzip2 tar gzip gawk md5sum chrpath"

How hard would it be to add a chrpath-native recipe and maybe treat this like we used to treat qemu? Don't see it in yum on my rhel5 box. Thanks.

We already have that from our previous chrpath experiments :) See recipes/chrpath

regards,

Koen

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

iD8DBQFLtZ9sMkyGM64RGpERAptOAJ9tPe40kbEGIn8YOcHfd8AqS+b0HgCeI0+s 4iPCr2JzhEwC9cjeJ9b/3lg=
=0C5K
-----END PGP SIGNATURE-----

author
#3 lore raw
Quoted 25 lines · Koen Kooi

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

Quoted 21 lines · Tom Rini
Quoted 9 lines · git version control
Module: openembedded.git
Branch: rpurdie/work-in-progress
Commit: 2365530efff7681fa34b2a466cf5f78acac10274
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2365530efff7681fa34b2a466cf5f78acac10274
Author: Joshua Lock <[email protected]>
Date:   Wed Mar 31 11:41:58 2010 +0100

relocatable: Class to post-process packages for relocatability

[snip]

Review

Quoted 2 lines
(quoted diff) +2 -0
+def rpath_replace (path, d):
+    bindirs = bb.data.expand("${bindir} ${sbindir} ${base_sbindir} ${base_bindir} ${libdir} ${base_libdir} ${PREPROCESS_RELOCATE_DIRS}", d).split()

Is that last variable there to let recipes add non-standard locations to the search path?

[snip]

Quoted 1 line

- required_utilities = "patch help2man diffstat texi2html

makeinfo cvs svn bzip2 tar gzip gawk md5sum"

Quoted 1 line

+ required_utilities = "patch help2man diffstat texi2html

Quoted 8 lines
Quoted 5 lines

makeinfo cvs svn bzip2 tar gzip gawk md5sum chrpath"

How hard would it be to add a chrpath-native recipe and maybe treat this like we used to treat qemu? Don't see it in yum on my rhel5 box. Thanks.

We already have that from our previous chrpath experiments :) See recipes/chrpath

Great, lets rework to use that version.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
author
#4 lore raw
Quoted 28 lines · Tom Rini
Quoted 27 lines · Koen Kooi

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

Quoted 23 lines · Tom Rini
Quoted 9 lines · git version control
Module: openembedded.git
Branch: rpurdie/work-in-progress
Commit: 2365530efff7681fa34b2a466cf5f78acac10274
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2365530efff7681fa34b2a466cf5f78acac10274
Author: Joshua Lock <[email protected]>
Date:   Wed Mar 31 11:41:58 2010 +0100

relocatable: Class to post-process packages for relocatability

[snip]

Review

Quoted 2 lines
(quoted diff) +2 -0
+def rpath_replace (path, d):
+    bindirs = bb.data.expand("${bindir} ${sbindir} ${base_sbindir} ${base_bindir} ${libdir} ${base_libdir} ${PREPROCESS_RELOCATE_DIRS}", d).split()

Is that last variable there to let recipes add non-standard locations to the search path?

[snip]

Quoted 1 line

- required_utilities = "patch help2man diffstat texi2html

makeinfo cvs svn bzip2 tar gzip gawk md5sum"

Quoted 1 line

+ required_utilities = "patch help2man diffstat texi2html

makeinfo cvs svn bzip2 tar gzip gawk md5sum chrpath"

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

How hard would it be to add a chrpath-native recipe and maybe treat this like we used to treat qemu? Don't see it in yum on my rhel5 box. Thanks.

We already have that from our previous chrpath experiments :) See recipes/chrpath

Great, lets rework to use that version.

Did anything happen here? I don't see it on the test branch and I'm asking because things like RHEL don't easily have chrpath available.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
#5 lore raw
In reply to Koen Kooi
Quoted 7 lines · Koen Kooi
Quoted 6 lines · Tom Rini

Review

Quoted 2 lines · git version control
(quoted diff) +2 -0
+def rpath_replace (path, d):
+    bindirs = bb.data.expand("${bindir} ${sbindir} ${base_sbindir} ${base_bindir} ${libdir} ${base_libdir} ${PREPROCESS_RELOCATE_DIRS}", d).split()

Is that last variable there to let recipes add non-standard locations to the search path?

Yes, as long as all users append to it, it will work like that and that use makes sense.

Quoted 4 lines
Quoted 4 lines

[snip]

Quoted 1 line

- required_utilities = "patch help2man diffstat texi2html

makeinfo cvs svn bzip2 tar gzip gawk md5sum"

Quoted 1 line

+ required_utilities = "patch help2man diffstat texi2html

Quoted 8 lines
Quoted 5 lines

makeinfo cvs svn bzip2 tar gzip gawk md5sum chrpath"

How hard would it be to add a chrpath-native recipe and maybe treat this like we used to treat qemu? Don't see it in yum on my rhel5 box. Thanks.

We already have that from our previous chrpath experiments :) See recipes/chrpath

As does Poky. The tricky bit isn't the recipes, its the dependencies and making sure we don't end up with any binaries that haven't had the relocation treatment.

Cheers,

Richard

author
#6 lore raw
Quoted 13 lines · Richard Purdie
Quoted 12 lines · Koen Kooi
Quoted 10 lines · Tom Rini

On Thu, 2010-04-01 at 13:44 +0000, git version control wrote:
[snip]

Quoted 1 line

- required_utilities = "patch help2man diffstat texi2html

makeinfo cvs svn bzip2 tar gzip gawk md5sum"

Quoted 1 line

+ required_utilities = "patch help2man diffstat texi2html

makeinfo cvs svn bzip2 tar gzip gawk md5sum chrpath"

How hard would it be to add a chrpath-native recipe and maybe treat this like we used to treat qemu? Don't see it in yum on my rhel5 box. Thanks.

Quoted 6 lines
Quoted 2 lines

We already have that from our previous chrpath experiments :) See recipes/chrpath

As does Poky. The tricky bit isn't the recipes, its the dependencies and making sure we don't end up with any binaries that haven't had the relocation treatment.

That... is a problem, yeah.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation