
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
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 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 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) 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. 4. cd .. 5. install the packages you just built with: dpkg -iBE *1.0.27-3.1~backport*.deb craig -- craig sanders <cas@taz.net.au>