
Hello again Craig, On 2/17/19, Craig Sanders via luv-main <luv-main@luv.asn.au> wrote:
On Sun, Feb 17, 2019 at 10:16:37AM +1100, Mark Trickett wrote:
I have managed to locate and download the source files, sane-backends_1.0.27.orig.tar.gz, sane-backends_1.0.27.debian.tar.gz and sane-backends_1.0.27.dsc and put them in a directory. I tried
extract the debianised source with:
dpkg-source -x sane-backends_1.0.27.dsc
Aha, that is what that file is.
Now I am looking at building my own backport, and looking at using dpkg-buildpackage. I would appreciate advice and comments about usage, what to do to prepare and the like. I will be looking at web searches,
0. Make sure all the essential compilation tools are installed with:
apt-get install build-essential
Is installed.
1. cd sane-backends-1.0.27/
2. run 'dch -i' to change the package version number. e.g. when dch starts up your text editor, change the first line to something like:
sane-backends (1.0.27-3.1~backport) UNRELEASED; urgency=medium
That makes sense, I think I can understand what is going on
3. run "dpkg-buildpackage -b --no-sign". This tells dpkg-buildpackage to build only the binary packages (-b), and not to bother signing anything (not necessary for self-built packages, and avoids the need to create a gpg key if you don't have one)
I was getting confused from the man page as to quite the switches and the like, thank you for the simple and concise command line and explanation.
The first time you run this, it will probably give you an error like this:
dpkg-checkbuilddeps: error: Unmet build dependencies: chrpath libgphoto2-dev libsnmp-dev libsystemd-dev libusb-1.0-0-dev
install those build dep packages with apt-get, e.g.:
apt-get install chrpath libgphoto2-dev libsnmp-dev libsystemd-dev libusb-1.0-0-dev
and then repeat this step until the packages compile successfully.
Again simple when you put it that way, thank you. Just been doing, and wants a few later packages than I have installed, first up debhelper (>=11) when I have 10.2.5 installed. Then libtiff5 and libtiffxx5 (=4.0.10-4) but 4.0.8-2+deb9u4 is to be installed when run apt-get. Looks like will need to see what might be available in the later release (buster). I might have to do a dist upgrade.
4. cd ..
5. install the packages you just built with:
dpkg -iBE *1.0.27-3.1~backport*.deb
Yes, I do like the packaging and the suitable manipulation, and that it handles dependencies and the like, mostly. System Administration, every computer needs it, and with a PC, you are your own System Administrator. The way Microsoft treats it and tries to hide and automate and makes so difficult to fix their errors, along with hiding file extensions by default, along with relying on the extension rather than actually looking at the contents is a very large measure of why I regard Windows and Windows software not even worth pirating, let alone paying for.
craig
Again many thanks, expect will succeed shortly, but may need to do other aspects of life, being ready for work on Monday, too early. As an interim, a couple of documents photographed and needing cropping and balance adjusting if I do not complete today. Scanning will be so much better. Mark Trickett