[sane-devel] Unable to Build Sane Backends
adamrichter4 at gmail.com
Thu Sep 3 04:23:33 BST 2020
Hi, Wes ald Ralph.
I am sorry for not noticing this thread earlier. This is a known bug
with the .tar.gz source releases before 1.0.31 and is in the bug
tracking system at
https://gitlab.com/sane-project/backends/-/issues/248 . 1.0.31 should
build for you.
The issue is that the releases in a certain range of versions were
made from git snapshots which did not include ./configure and related
files that are normally built for a release, and the version of
configure.ac invokes "git describe --dirty" to figure out the version
number, which requires a .git directory tree, which is not included in
the .tar.gz source release.
Any of the following three solutions should work:
(a) edit autogen.sh to replace "[git describe --ditry]" with the
version number you want,
(b) build 1.0.31 instead,
(c) build from git clone (you can check out the versions using version
branch names, which you can see with "git branch -a").
I encourage you to report back if any of the above three options do
not work for you or if all are inadequate for your situation.
On Wed, Sep 2, 2020 at 5:46 PM Ralph Little <skelband at gmail.com> wrote:
> On 2020-09-02 2:16 p.m., Wes Rishel wrote:
> re: apt-get build-dep libsane
> Ralph, I must be doing something wrong:
> $ sudo apt-get build-dep libsane
> Reading package lists... Done
> E: You must put some 'source' URIs in your sources.list
> I have also tried libsane1. Reading various pages on the error message it looks like apt-get is not finding a repository for libsane. Is that correct? I see where I might uncomment an entry in /etc/apt/sources.list but I'm unsure what entry to change. There is nothing specific to sane in that file.
> I don't remember which repo that you said that you were using.
> If you have a "Software Sources" app in your menu under Administration (if you're using a graphical environment) or something similar, start that and enable "Source code repositories" or whatever seems similar.
> Alternatively, you might be looking for some commented out entry in a file in /etc/apt/sources.list.d or /etc/apt/sources.list containing "deb-src". Uncomment that and do:
> sudo apt-get update
> How you might do this really depends on the distro setup.
> Then you should be able to run the build-dep.
More information about the sane-devel