You are not logged in.

#1 2018-01-12 03:17:51

scossu
Member
Registered: 2018-01-08
Posts: 20

Is bdb support compiled in Redland?

Hello,
I have one specific question for the redland package maintainer and a broader question.

I have manually compiled the redland-bindings package and I am using the Arch redland package (1:1.0.17-4) to use the Python bindings. I am interested in the BDB-backed 'hashes' backend.

In Python, as I try to open a BerkeleyDB I get an error:

>>> import RDF
>>> hst = RDF.HashStorage('test', options="new='yes',hash-type='bdb',dir='/tmp/redland_test'")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/site-packages/RDF.py", line 1571, in __init__
    options_string = options)
  File "/usr/lib/python3.6/site-packages/RDF.py", line 1545, in __init__
    raise RedlandError("Creating Storage failed")
RDF.RedlandError: 'Creating Storage failed'

Conversely, the 'memory' hash-type works, so the first thing I thought about is any possible missing libraries or compile options.

My specific question is: is the BDB option compiled into the redland package?

The broader question is: is there a way to check the compile options for packages in the official Arch repositories?

Thanks,
s

Last edited by scossu (2018-01-12 03:18:40)

Offline

#2 2018-01-12 03:25:39

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,553

Re: Is bdb support compiled in Redland?

Offline

#3 2018-01-12 03:31:25

scossu
Member
Registered: 2018-01-08
Posts: 20

Re: Is bdb support compiled in Redland?

Thanks for the express response!

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr \
    --enable-release \
    --disable-static \
    --with-raptor=system \
    --with-rasqal=system \
    --with-sqlite=3 \
    --with-bdb=no

That is quite self-explanatory. I guess that I will have to compile it myself, however I wonder if there is a good reason to have `with_bdb` turned off.

Offline

#4 2018-01-12 03:34:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,553

Re: Is bdb support compiled in Redland?

The db package has held back updates because of licensing issues, so it's generally preferred to not link packages to BDB in Arch if it can be avoided.

Last edited by Scimmia (2018-01-12 03:34:37)

Offline

#5 2018-01-12 03:35:51

scossu
Member
Registered: 2018-01-08
Posts: 20

Re: Is bdb support compiled in Redland?

Got it. Thanks again,
s

Offline

#6 2018-01-12 03:54:18

scossu
Member
Registered: 2018-01-08
Posts: 20

Re: Is bdb support compiled in Redland?

Sorry if this is a newbie question but this is the first time I compile an official Arch package:

$ makepkg -sp redland.pkgbuild 
==> Making package: redland 1:1.0.17-5 (Thu Jan 11 21:50:00 CST 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found redland-1.0.17.tar.gz
  -> Found redland-1.0.17.tar.gz.asc
==> ERROR: rpath.diff was not found in the build directory and is not a URL.

I haven't even modified the PKGBUILD yet.

This seems to be the relevant line:

source=(http://download.librdf.org/source/$pkgname-$pkgver.tar.gz{,.asc}
        rpath.diff)

What am I doing wrong?

Offline

#7 2018-01-12 03:58:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,785

Re: Is bdb support compiled in Redland?

How did you acquire the PKGBUILD file?  Did you download it? or did your grab the Tarbell? Clone the repository?

There are often more files than just the PKGBUILD.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2018-01-12 04:02:52

scossu
Member
Registered: 2018-01-08
Posts: 20

Re: Is bdb support compiled in Redland?

Oh my goodness, sorry if I reported you by mistake!

The reply was: I just curl'd the "plain" version I got from Scimmia's link. That has worked for me with AUR, but maybe I have been lucky so far?

Offline

#9 2018-01-12 04:16:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,785

Re: Is bdb support compiled in Redland?

scossu wrote:

Oh my goodness, sorry if I reported you by mistake!

You did wink  No harm, no foul.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#10 2018-01-12 04:46:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,553

Offline

Board footer

Powered by FluxBB