Package Details: ocaml-sqlite3 5.1.0-1

Git Clone URL: https://aur.archlinux.org/ocaml-sqlite3.git (read-only, click to copy)
Package Base: ocaml-sqlite3
Description: SQLite3 bindings for OCaml
Upstream URL: https://mmottl.github.io/sqlite3-ocaml/
Keywords: ocaml sqlite3
Licenses: MIT
Conflicts: sqlite3-ocaml
Provides: sqlite3-ocaml
Replaces: sqlite3-ocaml
Submitter: None
Maintainer: fungible
Last Packager: fungible
Votes: 50
Popularity: 0.000000
First Submitted: 2010-12-30 01:31 (UTC)
Last Updated: 2021-12-20 10:54 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

alerque commented on 2023-12-28 09:05 (UTC)

This may have worked at some point due to transitive dependencies, but it does not work now. The library gets installed at /sqlite3 (yes at the file system root!). Here is a patch that fixes this that can be applied with git am < file.patch:


From a270a9e83e5143a98ccf14b853c3ea39a20194ca Mon Sep 17 00:00:00 2001
From: Caleb Maclennan <caleb@alerque.com>
Date: Thu, 28 Dec 2023 12:01:38 +0300
Subject: [PATCH] Sanitize install location so lib not at FS root

Signed-off-by: Caleb Maclennan <caleb@alerque.com>
---
 .SRCINFO |  3 ++-
 PKGBUILD | 10 ++++++----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 512c2b3..bc01d02 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,12 @@
 pkgbase = ocaml-sqlite3
    pkgdesc = SQLite3 bindings for OCaml
    pkgver = 5.1.0
-   pkgrel = 1
+   pkgrel = 2
    url = https://mmottl.github.io/sqlite3-ocaml/
    arch = x86_64
    license = MIT
    makedepends = dune
+   makedepends = ocaml-findlib
    depends = ocaml
    depends = ocaml-stdio
    depends = sqlite>=3
diff --git a/PKGBUILD b/PKGBUILD
index 6b5c1a9..f1e1871 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,3 +1,4 @@
+# Contributor: Caleb Maclennan <caleb@alerque.com>
 # Contributor: Eric Fung <loseurmarbles[AT]gmail[DOT]com>
 # Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
 # Contributor: Tambet Arak <tambetarak+nospam@gmail.com>
@@ -7,13 +8,13 @@

 pkgname=ocaml-sqlite3
 pkgver=5.1.0
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 license=('MIT')
 pkgdesc='SQLite3 bindings for OCaml'
 url='https://mmottl.github.io/sqlite3-ocaml/'
 depends=('ocaml' 'ocaml-stdio' 'sqlite>=3')
-makedepends=('dune')
+makedepends=('dune' 'ocaml-findlib')
 provides=('sqlite3-ocaml')
 replaces=('sqlite3-ocaml')
 conflicts=('sqlite3-ocaml')
@@ -33,8 +34,9 @@ package() {
         "${pkgdir}/usr/share/licenses/${pkgname}" \
         "${pkgdir}/$(ocamlfind -printconf destdir)"

-    dune install --prefix "${pkgdir}/usr/share" \
-                 --libdir "${pkgdir}$(ocamlfind printconf destdir)"
+    dune install --destdir "$pkgdir" \
+                 --prefix "/usr/share" \
+                 --libdir "$(ocamlfind printconf destdir)"

     mv "${pkgdir}/usr/share/doc/sqlite3" "${pkgdir}/usr/share/doc/${pkgname}"

-- 
2.43.0

oriba commented on 2019-06-01 15:04 (UTC)

@Samsagax: I have answered this so many times. Look here, it's not a package issue: https://stackoverflow.com/questions/9166489/inconsistent-assumptions-over-interface-ocaml

Samsagax commented on 2019-06-01 14:26 (UTC) (edited on 2019-06-01 14:35 (UTC) by Samsagax)

I'm having a problem when building at build start on 4.4.1:

File "src/config/discover.ml", line 1:
Error: The files /usr/lib/ocaml/base/base.cmi
       and /usr/lib/ocaml/stdio/stdio.cmi make inconsistent assumptions
       over interface Shadow_stdlib

Is something missing?

oriba commented on 2019-03-10 00:25 (UTC)

@Kunda: hey, this is not a makepkg-Workshop, nor is it irc here. Ask on irc and/or Arch wiki for such rudimental questions.

Kunda commented on 2019-03-09 22:14 (UTC)

@oriba what are the flags that I should pass to makepkg ?

oriba commented on 2019-03-04 20:42 (UTC)

@Kunda: I don't know if install-helpers support it. The old AUR-installer-tools did (afaik) not support that, so that you maybe need to do this manually. This means you need to use makepkg.

Kunda commented on 2019-03-04 16:31 (UTC)

@oriba what is the command to recompile all dependencies ?

oriba commented on 2019-02-25 22:22 (UTC)

@Kunda: please keep your OCaml-compiler up to date and recompile all dependencies. Then I would guess the error messages will vanish.

tambeta commented on 2019-02-25 09:12 (UTC)

Disowning, as I'm not familiar with the OCaml ecosystem and did a one-shot fix of the package.