[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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 2 February 2012 at 14:18, Carlos Borroto wrote:
| On Tue, Jan 31, 2012 at 5:37 AM, Andreas Tille <tille@debian.org> 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
| > configure).
| 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?

I have several dozen debian/rules files around, but rarely need it. Here it
was I have commented out for Rmpi aka r-cran-rmpi:

#!/usr/bin/make -f
# 							-*- makefile -*-
# debian/rules file for the Debian/GNU Linux r-cran-rmpi package
# Copyright 2003-2010 by Dirk Eddelbuettel <edd@debian.org>

include /usr/share/R/debian/r-cran.mk


I think extraInstallFlags is due to a patch Steffen once needed / supplied.

| This is the 'debian/rules' file I copied from r-cran-rocr:
| #!/usr/bin/make -f
| include /usr/share/R/debian/r-cran.mk
| # Require a number equal or superior than the R version the package
| was built with.
| install/r-$(debRreposname)-$(cranName)::
| 	echo "R:Depends=r-base-core (>= $(shell R --version | head -n1 | perl
| -ne 'print / +([0-9]\.[0-9]+\.[0-9])/')~)" >>
| debian/r-$(debRreposname)-$(cranName).substvars

Nice substvars trick. I still do that part by hand in debian/control.


| Thanks,
| Carlos

"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx

Reply to: