if grep -q /usr/lib /usr/lib32/libgphoto2.so.2.3.0 && ! grep -q /usr/lib32 /usr/lib32/libgphoto2.so.2.3.0
then
echo Your system has the bug. Applying workaround.
sudo ln -s /usr/lib32 /usr/l32
sudo sed -i.bak 's/\/usr\/lib\//\/usr\/l32\//g' /usr/lib32/libgphoto2.so.2.3.0 /usr/lib32/libgphoto2_port.so.0.8.0
else
echo Your system does not have the bug.
fi
Here's a workaround script for at least Ubuntu 8.04.1. What other libraries should be added to this list?
#!/bin/sh /bugs.launchpad .net/ubuntu/ +source/ ia32-libs/ +bug/190227
# Script to work around https:/
# "Picasa can't capture images on 64 bit ubuntu"
if grep -q /usr/lib /usr/lib32/ libgphoto2. so.2.3. 0 && ! grep -q /usr/lib32 /usr/lib32/ libgphoto2. so.2.3. 0 /lib\// \/usr\/ l32\//g' /usr/lib32/ libgphoto2. so.2.3. 0 /usr/lib32/ libgphoto2_ port.so. 0.8.0
then
echo Your system has the bug. Applying workaround.
sudo ln -s /usr/lib32 /usr/l32
sudo sed -i.bak 's/\/usr\
else
echo Your system does not have the bug.
fi