Some programs such as libxml-parser-perl-native can have junky
RPATH directories. Found by Khem Raj.
Signed-off-by: Tom Rini <tom_rini@mentor.com>
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):