Getting rid of -r /usr/X11R6/lib
[Followups redirected to debian-devel]
Some packages in hamm have been linked with the -r /usr/X11R6/lib
option and break on a libc6 system with the new libc6 X libraries
(coredump).
This perl script will patch these programs and make them work:
=========== BEGIN SCRIPT
#!/usr/bin/perl -w
# Open file
open IN, "$ARGV[0]" or die "can't find $ARGV[0]: $!";
# Read it in one slurp
select IN;
undef $/;
select STDOUT;
$file=<IN>;
close IN;
# Remove this string
$count=$file=~s!/usr/X11R6/lib\0!\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0!g;
print "Replaced: $count occurences in $ARGV[0]\n";
# Write the file
open OUT, ">$ARGV[0].out" or die "can't write $ARGV[0].out: $!";
print OUT $file;
close OUT;
=========== END SCRIPT
It's been working with emacs, xpmroot (package fvwm-common), fvwm2.
All these programs now work like a charm (and got bugs assigned :-).
Note: You should get one and only one replacement, otherwise it
indicates something's gone wrong.
Phil.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . Trouble?
e-mail to templin@bucknell.edu .
Reply to: