Package: libtrash
Version: 2.4-2
Severity: normal
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu intrepid ubuntu-patch

Hi,

debian/README.debian and debian/example.bash_profile refer
to /usr/lib/libtrash/libtrash.so, which is not shipped in
the package. Daniel Chen provided the attached patch to
use /usr/lib/libtrash/libtrash.so.2.4 instead. Please
consider applying it.

Thanks,

James

diff -u libtrash-2.4/debian/README.Debian libtrash-2.4/debian/README.Debian
--- libtrash-2.4/debian/README.Debian
+++ libtrash-2.4/debian/README.Debian
@@ -5,7 +5,7 @@
 application is run. This can be done by setting the LD_PRELOAD environment
 variable:
 
-$ LD_PRELOAD=/usr/lib/libtrash/libtrash.so
+$ LD_PRELOAD=/usr/lib/libtrash/libtrash.so.2.4
 $ export LD_PRELOAD
 
 This will mean that all applications that are started from the shell after
@@ -13,12 +13,12 @@
 the shell you originally set the LD_PRELOAD variable from will not be using
 libtrash, ie:
 
-$ export LD_PRELOAD=/usr/lib/libtrash/libtrash.so
+$ export LD_PRELOAD=/usr/lib/libtrash/libtrash.so.2.4
 $ rm my_file
 
 will be OK, but:
 
-$ export LD_PRELOAD=/usr/lib/libtrash/libtrash.so
+$ export LD_PRELOAD=/usr/lib/libtrash/libtrash.so.2.4
 $ echo "asdf" > my_file
 
 will overwrite "my_file" with "asdf", as the shell (which isn't using libtrash)
@@ -27,7 +27,7 @@
 re-starting the shell in your ~/.bash_profile with something like the
 following (this could be dangerous, however):
 
-LIBTRASH=/usr/lib/libtrash/libtrash.so
+LIBTRASH=/usr/lib/libtrash/libtrash.so.2.4
 LIBTRASH_dest=$LIBTRASH
 if test -L $LIBTRASH ; then
    LIBTRASH_dest="$(dirname $LIBTRASH)/$(ls -l "$LIBTRASH" | \
diff -u libtrash-2.4/debian/example.bash_profile libtrash-2.4/debian/example.bash_profile
--- libtrash-2.4/debian/example.bash_profile
+++ libtrash-2.4/debian/example.bash_profile
@@ -1,6 +1,6 @@
 # Include this in your ~/.bash_profile to enable libtrash every time you
 # log in (or otherwise start a login shell)
-LIBTRASH=/usr/lib/libtrash/libtrash.so
+LIBTRASH=/usr/lib/libtrash/libtrash.so.2.4
 
 LIBTRASH_dest=$LIBTRASH
 if test -L $LIBTRASH ; then

Reply via email to