then for this patch, it works fine for me on Ubuntu Lucid.
Here is instructions to build it on Lucid. Build process should be the same on any version of Debian and Ubuntu, except package version number.
# get header to build xsane package sudo apt-get build-dep xsane
# create a working directory mkdir -p $HOME/tmp/xsane && cd $HOME/tmp/xsane
# get xsane sources apt-get source xsane
# get Aisano xsane patch wget 'http://launchpadlibrarian.net/48345142/xsane-preview.c.patch'
# apply patch patch xsane-0.996/src/xsane-preview.c xsane-preview.c.patch
# build xsane as a package (cd xsane-0.996/ && dpkg-buildpackage -rfakeroot -uc -b)
# remove existing installed package sudo dpkg -r xsane xsane-common
# install new built package cd $HOME/tmp/xsane && sudo dpkg -i xsane_0.996-2ubuntu1.1_i386.deb xsane-common_0.996-2ubuntu1.1_all.deb
# restore ubuntu package if needed (if this one does not work). sudo dpkg -r xsane xsane-common sudo apt-get install xsane xsane-common
then for this patch, it works fine for me on Ubuntu Lucid.
Here is instructions to build it on Lucid. Build process should be the same on any version of Debian and Ubuntu, except package version number.
# get header to build xsane package
sudo apt-get build-dep xsane
# create a working directory
mkdir -p $HOME/tmp/xsane && cd $HOME/tmp/xsane
# get xsane sources
apt-get source xsane
# get Aisano xsane patch launchpadlibrar ian.net/ 48345142/ xsane-preview. c.patch'
wget 'http://
# apply patch 996/src/ xsane-preview. c xsane-preview. c.patch
patch xsane-0.
# build xsane as a package
(cd xsane-0.996/ && dpkg-buildpackage -rfakeroot -uc -b)
# remove existing installed package
sudo dpkg -r xsane xsane-common
# install new built package 996-2ubuntu1. 1_i386. deb xsane-common_ 0.996-2ubuntu1. 1_all.deb
cd $HOME/tmp/xsane && sudo dpkg -i xsane_0.
# restore ubuntu package if needed (if this one does not work).
sudo dpkg -r xsane xsane-common
sudo apt-get install xsane xsane-common