From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kristofer Buffington Subject: testing issues after adding package to guix Date: Tue, 14 Nov 2017 12:07:09 -0500 Message-ID: <87tvxweqma.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEegU-0007vT-Az for guix-devel@gnu.org; Tue, 14 Nov 2017 12:07:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEegO-0008JT-5m for guix-devel@gnu.org; Tue, 14 Nov 2017 12:07:38 -0500 Received: from mail-ot0-x231.google.com ([2607:f8b0:4003:c0f::231]:47857) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEegO-0008HE-0v for guix-devel@gnu.org; Tue, 14 Nov 2017 12:07:32 -0500 Received: by mail-ot0-x231.google.com with SMTP id s4so8000300ote.4 for ; Tue, 14 Nov 2017 09:07:30 -0800 (PST) Received: from libre (mb94636d0.tmodns.net. [208.54.70.185]) by smtp.gmail.com with ESMTPSA id h36sm4079458otd.64.2017.11.14.09.07.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Nov 2017 09:07:27 -0800 (PST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hello guix! I am having problems testing a package I just added to guix. I have been talking with rekado on #guix about it. I have successfully built guix from git and now am having trouble linting the new package definition: kristofer@libre ~/src/guix [env]$ ./pre-inst-env guix lint guile-wiredtiger ;;; note: source file /home/kristofer/src/guix/gnu/packages/databases.scm ;;; newer than compiled /home/kristofer/src/guix/gnu/packages/databases.go ;;; note: source file /home/kristofer/src/guix/gnu/packages/databases.scm ;;; newer than compiled /home/kristofer/.guix-profile/lib/guile/2.2/site-ccache/gnu/packages/databases.go ;;; note: source file /home/kristofer/src/guix/gnu/packages/databases.scm ;;; newer than compiled /run/current-system/profile/lib/guile/2.2/site-ccache/gnu/packages/databases.go guix lint: error: guile-wiredtiger: unknown package Here is the git diff origin/master HEAD diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 38ca5708d..4694fa82e 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -56,6 +56,7 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) + #:use-module (gnu packages guile) #:use-module (gnu packages time) #:use-module (gnu packages jemalloc) #:use-module (gnu packages language) @@ -82,6 +83,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) #:use-module (guix build-system python) @@ -1495,6 +1497,43 @@ trees (LSM), for sustained throughput under random insert workloads.") ;; configure.ac: WiredTiger requires a 64-bit build. (supported-systems '("x86_64-linux" "mips64el-linux" "aarch64-linux")))) +(define guile-wiredtiger + (package + (name "guile-wiredtiger") + (version "20171113.6cbc51da") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://framagit.org/a-guile-mind/guile-wiredtiger.git") + (commit "6cbc51dab95d28fe31ae025fbdd88f3ecbf2111b"))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "0x3qwpgch5pg0k21kc792h4y6b36a8xd1zkfq8ar2l2mqmpzkzyd")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f + #:configure-flags + (list (string-append "--with-libwiredtiger-prefix=" + (assoc-ref %build-inputs "wiredtiger"))) + #:make-flags '("GUILE_AUTO_COMPILE=0") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'bootstrap + (lambda _ (zero? (system* "sh" "bootstrap"))))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("pkg-config" ,pkg-config))) + (inputs + `(("wiredtiger" ,wiredtiger) + ("guile-lib" ,guile-lib) + ("guile" ,guile-2.2))) + (synopsis "Wired Tiger bindings for GNU Guile") + (description "Wired Tiger bindings for GNU Guile. Build your own database!") + (home-page "https://framagit.org/a-guile-mind/guile-wiredtiger") + (license license:gpl3+))) + (define-public perl-db-file (package (name "perl-db-file")