summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rw-r--r--classes/relocatable.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/relocatable.bbclass b/classes/relocatable.bbclass
index cc220276fb..2af3a7a1c4 100644
--- a/classes/relocatable.bbclass
+++ b/classes/relocatable.bbclass
@@ -65,7 +65,11 @@ def process_dir (directory, d):
fdir = os.path.dirname(fpath.rpartition(tmpdir)[2])
ldir = rpath.partition(tmpdir)[2].strip()
- new_rpaths.append("$ORIGIN/%s" % oe.path.relative(fdir, ldir))
+ try:
+ new_rpaths.append("$ORIGIN/%s" % oe.path.relative(fdir, ldir))
+ except ValueError:
+ # Some programs link in non-existant RPATH directories.
+ continue
# if we have modified some rpaths call chrpath to update the binary
if len(new_rpaths):