<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/classes/relocatable.bbclass, branch green-3.3.1</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=green-3.3.1</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=green-3.3.1'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2010-05-24T16:25:28+00:00</updated>
<entry>
<title>relocatable.bbclass: reduce the amount of output</title>
<updated>2010-05-24T16:25:28+00:00</updated>
<author>
<name>Joshua Lock</name>
<email>josh@linux.intel.com</email>
</author>
<published>2010-05-20T15:11:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=cd62d697e1c746bad6dd29030f03a36750a1957e'/>
<id>urn:sha1:cd62d697e1c746bad6dd29030f03a36750a1957e</id>
<content type='text'>
Disable the last bb.note call, it's a bit spurious. Only really useful for
debug.

Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>relocatable.bbclass: Normalise the generated path</title>
<updated>2010-04-27T15:58:42+00:00</updated>
<author>
<name>Joshua Lock</name>
<email>josh@linux.intel.com</email>
</author>
<published>2010-04-22T14:22:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=23ff2e08194221abf8f09af25d1be98efe46ffb7'/>
<id>urn:sha1:23ff2e08194221abf8f09af25d1be98efe46ffb7</id>
<content type='text'>
The generated path we create for the binaries RPATH can have a lot of directory
separators in. Use os.path.normpath() to tidy it up and only include the
required directory separators.

This patch is purely to appease my personal sense of niceness...

Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>relocatable.bbclass: Actually skip symlinks</title>
<updated>2010-04-12T14:56:45+00:00</updated>
<author>
<name>Joshua Lock</name>
<email>josh@linux.intel.com</email>
</author>
<published>2010-04-12T14:56:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=d3fbb56c2ffa44e2da15ca4bfa4def35792ab6f7'/>
<id>urn:sha1:d3fbb56c2ffa44e2da15ca4bfa4def35792ab6f7</id>
<content type='text'>
The previous patch to do so was badly merged and didn't actually skip all
symlinks, only ones which where not an absolute path...

Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>relocatable.bbclass: ignore symlinks</title>
<updated>2010-04-08T15:41:24+00:00</updated>
<author>
<name>Joshua Lock</name>
<email>josh@linux.intel.com</email>
</author>
<published>2010-04-08T15:38:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=1ac0a1aebe287296de820b106913a29f0b8944c3'/>
<id>urn:sha1:1ac0a1aebe287296de820b106913a29f0b8944c3</id>
<content type='text'>
If this links to a file created by the package install we already handle it
when we process the sysroot. By ignoring symlinks here we don't cause a build
to fail when the symlink is to somewhere in the host OS.

Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>relocatable.bbclass: Handle files which don't have read/write permissions</title>
<updated>2010-04-08T15:41:24+00:00</updated>
<author>
<name>Joshua Lock</name>
<email>josh@linux.intel.com</email>
</author>
<published>2010-04-08T15:35:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=10b6d140622e56f70dd5f84b66b8580be6f78c68'/>
<id>urn:sha1:10b6d140622e56f70dd5f84b66b8580be6f78c68</id>
<content type='text'>
It's possible to have files in our sysroot which don't have the write (or in
some cases even the read) bit set. Test for these and if they are not set
temporarily set them so that we can chrpath the binaries.

Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>relocatable: Handle directories having subdirectories of binaries</title>
<updated>2010-04-01T10:53:29+00:00</updated>
<author>
<name>Joshua Lock</name>
<email>josh@linux.intel.com</email>
</author>
<published>2010-04-01T10:42:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b43b80c7605ad12bc6e0e4e0b22d2f256f246f22'/>
<id>urn:sha1:b43b80c7605ad12bc6e0e4e0b22d2f256f246f22</id>
<content type='text'>
Make the processing of directories less naive so that it can handle a directory
with children that are directories. We now scan for and process binaries in all
directories below the scanned paths rather than only the top-level directory.

This patch moves the meat of the post-processing into a separate function which
is fed paths, process_dir (). Then when the function finds a subdirectory of
the passed path which is itself a directory it recursively calls itself.

Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>relocatable.bbclass: we need to process library files too</title>
<updated>2010-03-26T14:24:58+00:00</updated>
<author>
<name>Joshua Lock</name>
<email>josh@linux.intel.com</email>
</author>
<published>2010-03-26T14:24:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=93f357d6572d969c2332a1f5d5b445c91c1e1bd6'/>
<id>urn:sha1:93f357d6572d969c2332a1f5d5b445c91c1e1bd6</id>
<content type='text'>
The .so files we ship also have a RPATH encoded so should be post-processed for
a relocatable RPATH too.

Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>relocatable.bbclass: Clean up indentation</title>
<updated>2010-02-22T14:23:26+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>rpurdie@linux.intel.com</email>
</author>
<published>2010-02-22T14:23:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=7a60d379e88f92ee6725387c11a7e5326d91480f'/>
<id>urn:sha1:7a60d379e88f92ee6725387c11a7e5326d91480f</id>
<content type='text'>
Signed-off-by: Richard Purdie &lt;rpurdie@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>relocatable.bbclass: Handle symlinks correctly</title>
<updated>2010-02-22T14:20:26+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>rpurdie@linux.intel.com</email>
</author>
<published>2010-02-22T14:20:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=df76efbdee7b4e89759ba7da2a6297152cb0b7e0'/>
<id>urn:sha1:df76efbdee7b4e89759ba7da2a6297152cb0b7e0</id>
<content type='text'>
Signed-off-by: Richard Purdie &lt;rpurdie@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>relocatable.bbclass: Enhancements to rpath replacement algorithm</title>
<updated>2010-02-18T10:38:29+00:00</updated>
<author>
<name>Joshua Lock</name>
<email>josh@linux.intel.com</email>
</author>
<published>2010-02-16T17:40:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=ef246b44b95c40f68c9d9c7a93ed995a33824573'/>
<id>urn:sha1:ef246b44b95c40f68c9d9c7a93ed995a33824573</id>
<content type='text'>
This patch removes the hard coded number of parent directory operators ( /..)
placed into the rpath and instead fully dynamically generates the rpath entries
based on the current rpath.

Theoretically this patch means we can now make cross packages relocatable but
this is *not* enabled as chrpath can only set a new rpath of the same length
or shorter than the existing rpath. Due to the amount of parent directory
jumps we need to encode in the rpath this can easily fail when TMPDIR is in a
short namespace (e.g. /usr/poky).

Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
</content>
</entry>
</feed>
