Bug#154169: mklibs: bug re-introduces (symlinks)
On Thu, 2002-07-25 at 15:40, Matt Kraai wrote:
> The following snippet renames the libraries. OK?
>
> for lib in regexpfilter(os.listdir(dest_path), "(.*so[.\d]*)$").elems():
> soname = regexpfilter(command(target + "readelf", "--all", "-W",
> dest_path + "/" + lib),
> ".*SONAME.*\[(.*)\].*").elems()[0]
> debug(DEBUG_VERBOSE, "Renaming %s to %s." % (lib, soname))
> os.rename(dest_path + "/" + lib, dest_path + "/" + soname)
Looks good. Probably would be a bit more efficient to use --dynamic
rather than --all, but it's no big deal.
p.
--
To UNSUBSCRIBE, email to debian-boot-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: