Bug#280886: prelink.bin fails on reading directory
Hi Corey,
On Fri, Dec 03, 2004 at 12:44:52AM -0600, Corey Wright wrote:
> tonight i encountered the "prelink.bin: cannot open ELF file: I/O error:
> raw read", googling i found this bug, and did a quick strace.
>
> strace reveals that prelink is trying to read a directory, but the error
> message is so unintuitive no user would ever conclude that.
Heh, nice analysis!
> i haven't look at the source for prelink yet, so maybe the patch is
> easy.
Yes, it is. Patch is attached. The correct prelink --undo call was
just commented out (!).
Regards,
Bastian
--
,''`. Bastian Kleineidam
: :' : GnuPG Schlüssel
`. `' gpg --keyserver wwwkeys.pgp.net --recv-keys 32EC6F3E
`-
--- oooprelink.old 2004-12-03 12:19:33.000000000 +0100
+++ oooprelink 2004-12-03 12:19:47.000000000 +0100
@@ -64,15 +64,11 @@
echo -n "Undoing prelinking of OpenOffice.org binaries... "
/usr/sbin/prelink --undo $DEBUG \
--ld-library-path=/usr/lib/openoffice/program \
- --conserve-memory /usr/lib/openoffice \
- 2>/dev/null
- #/usr/sbin/prelink --undo $DEBUG \
- # --ld-library-path=/usr/lib/openoffice/program \
- # --conserve-memory \
- # /usr/lib/openoffice/program/*.bin \
- # /usr/lib/openoffice/program/regcomp \
- # /usr/lib/openoffice/program/pagein \
- # /usr/lib/openoffice/program/gnomeint
+ --conserve-memory \
+ /usr/lib/openoffice/program/*.bin \
+ /usr/lib/openoffice/program/regcomp \
+ /usr/lib/openoffice/program/pagein \
+ /usr/lib/openoffice/program/gnomeint
rm -f /var/state/openoffice/ooo_is_prelinked
echo "done."
fi
Reply to: