Help making r-cran-rsqlite use Debian's sqlite3 (Was: Re: Bug#657919: ITP: r-cran-digest - Create cryptographic hash digests of R objects)
On Tue, Jan 31, 2012 at 5:37 AM, Andreas Tille <email@example.com> wrote:
>> | They all build right now. I'm missing the license text to add for
>> | packages using MIT and Artistic-2, an easy fix I think. The only major
>> | issue I found was with RSQLite, which includes the sqlite3 source, but
>> | I'm guessing I need to link against Debian's sqlite3.
>> Then you may need to patch the upstream configure. When I was doing the
>> automatic builds of 2000+ (at the time) CRAN packages that were autogenerated
>> as .deb package, I just left it as is. Given that R needs to run on Windoze,
>> OS X and various Linux/Unix flavours it was defensible for for Seth to
>> include the sources.
> For the manual packaging targeting at a Debian release I would strongly
> recommend to use Debian packaged sqlite3 (by patching upstream
I have taken a look at the upstream's configure, but haven't quite
understand how to correctly patch it. They did include
'--with-sqlite-dir', '--with-sqlite-inc' and '--with-sqlite-lib',
these can be use to avoid using the bundled sqlite3. How could I set
these options when the package builds?
This is the 'debian/rules' file I copied from r-cran-rocr:
# Require a number equal or superior than the R version the package
was built with.
echo "R:Depends=r-base-core (>= $(shell R --version | head -n1 | perl
-ne 'print / +([0-9]\.[0-9]+\.[0-9])/')~)" >>