From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4Ez5KdrVs2UsrAAA62LTzQ:P1 (envelope-from ) for ; Fri, 26 Jan 2024 16:55:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 4Ez5KdrVs2UsrAAA62LTzQ (envelope-from ) for ; Fri, 26 Jan 2024 16:55:06 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=aartaka.me header.s=default header.b=EevN+SN5; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706284506; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=e7UkIFUFI7iCIRv10fQDbkPYDi+mqu0cHlKQhqSB804=; b=S9Bb07ZBHidqrAnEblMga5S3kpppxByBdT4KHdmfcRHk5tsFjybRLaZYx8ZRtvBKm0nv3K zuuNVV/UOh2fA9nTZETJXniSRASPJ2nNmvJ831Ko1/xIDB8epkdUuYr3ltB/cZCT3a+w1A u6mQtlAoGbTkJDPh5i3CheD3KrG67xHOrwaWtJNSRQCO22MzFIbukMhDNPAkh+5HWtuyfC v9PpmghJhkRAuHFoZCIA/jlhzWsnS7vNpxtVlbol1DaYCLBMiBXMgxC2CbYWCmpW1FeNZF yD9Ub8r3ibV2TT9zjrX0LLE+rFPMVCtdgrxPEIQ1VTewC/6BwqtAxeyNNJ/a2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=aartaka.me header.s=default header.b=EevN+SN5; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706284506; a=rsa-sha256; cv=none; b=OeGb+mMKZKY8jj0adA6Ja+HxgBEx3PPuGFWpr0dXoVx3XhtctzkcX0E1TZ0Rx+pj6xUx2+ jSWBpzelEZ6uxFVxVT99VFYAW+Fa49LgAQXS9wRJ827l523dtxcEOGHEI8uoJPNYwzy15k F3JgYQsN6v0DuR2PgW6Tg2ayFKc++Yco00ctXAEU5Unb3xr9zCeQJX7MO3bomIMBQA0DAx iceyG1KnJRn2prG4lNSSB6brIxs4TFq647meOlBmqyKuaSWI9bb9l+7q7o4bAOfZE6LAy+ 64imCx4W5Z9hCH4cQMSBjZ3AEHUcILZXh75luwVCZ1DpMPsKAJSTYtItyw2D1w== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 575EF38AA6 for ; Fri, 26 Jan 2024 16:55:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTOXj-0006W5-EY; Fri, 26 Jan 2024 10:55:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTOXf-0006Vf-KC for guix-patches@gnu.org; Fri, 26 Jan 2024 10:54:56 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTOXf-0002aE-B5 for guix-patches@gnu.org; Fri, 26 Jan 2024 10:54:55 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTOXl-0001uV-O3 for guix-patches@gnu.org; Fri, 26 Jan 2024 10:55:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68696] [PATCH] gnu: Add guile-lmdb. Resent-From: Artyom Bologov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 26 Jan 2024 15:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68696 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sharlatan Hellseher Cc: 68696@debbugs.gnu.org, Artyom Bologov Received: via spool by 68696-submit@debbugs.gnu.org id=B68696.17062844647293 (code B ref 68696); Fri, 26 Jan 2024 15:55:01 +0000 Received: (at 68696) by debbugs.gnu.org; 26 Jan 2024 15:54:24 +0000 Received: from localhost ([127.0.0.1]:52494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTOX9-0001tZ-HB for submit@debbugs.gnu.org; Fri, 26 Jan 2024 10:54:24 -0500 Received: from mta-07-3.privateemail.com ([198.54.118.214]:21112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTOX7-0001tG-3B for 68696@debbugs.gnu.org; Fri, 26 Jan 2024 10:54:21 -0500 Received: from mta-07.privateemail.com (localhost [127.0.0.1]) by mta-07.privateemail.com (Postfix) with ESMTP id 9DEEE180004D; Fri, 26 Jan 2024 10:54:07 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aartaka.me; s=default; t=1706284447; bh=BilaDnAG2SsKKHhTWIo1XhEzpLpbHNbnQknQALYweBA=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=EevN+SN5sqPEFDbSviBXIcmtYlQq8v/1uVuNYp2YB1/kBRM+AfivdE1U0LC3XLNid sYqA+fQYqC0vvVVomoUPvzGmZxr7ghL9r4Etpl9dlR95qK+B6kESED6Kjqn/F4h5Vj 3z7a73EybPhWljh2tIa+njXUPJv+aups8pNlOMJy+twwGY4Wk9zuBu5s/uw6IyGzng 5Yfq8mf4Bvmge/qqjuk3RM9fSxVBaX02bO6SzJ7CYsgJRCd8B6DXvdu7P4Mkr2VgLD iSTBEcB0i6CTIznuhSYRli6r3HnYTW1n9ImfRkTDi2+RAnUWg7ieRq+2SL66zwgeUv joRnCJQIZvy0g== Received: from paranoidal (unknown [185.167.217.34]) by mta-07.privateemail.com (Postfix) with ESMTPA; Fri, 26 Jan 2024 10:54:04 -0500 (EST) References: <87le8eedrb.fsf@aartaka.me> <87sf2ljc1j.fsf@gmail.com> User-agent: mu4e 1.10.8; emacs 29.1 From: Artyom Bologov Date: Fri, 26 Jan 2024 19:50:07 +0400 In-reply-to: <87sf2ljc1j.fsf@gmail.com> Message-ID: <87jznwxf9q.fsf@aartaka.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.66 X-Migadu-Queue-Id: 575EF38AA6 X-Spam-Score: -6.66 X-Migadu-Scanner: mx11.migadu.com X-TUID: PlNDYG5anUD5 --=-=-= Content-Type: text/plain Hi Oleg, Thanks for your patience in this review! I addressed most of comments and ran guix lint on the installed package (not sure how exactly that should work, but it didn't error at least). Find the new patch attached. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-guile-lmdb.patch Content-Description: gnu: Add guile-lmdb. >From 3f708d6977e238616e73f0aa11f7de66487754b3 Mon Sep 17 00:00:00 2001 From: Artyom Bologov Date: Wed, 24 Jan 2024 23:20:52 +0400 Subject: [PATCH] gnu: Add guile-lmdb. * gnu/packages/guile-xyz.scm (guile-lmdb): New variable. --- gnu/packages/guile-xyz.scm | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 9c4c308d05..b175a16c41 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -2012,6 +2012,48 @@ (define-public guile-dbd-mysql for MySQL.") (license license:gpl2+))) +(define-public guile-lmdb + (let ((commit "438143ca9ba157faec6f4c2740092c31c733fbfe") + (revision "0")) + (package + (name "guile-lmdb") + (version (git-version "0.0.1" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aartaka/guile-lmdb") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0p43c8ppbhzpi944in0z2jqr7acl8pm7s1x0p5f0idqda6n6f828")))) + (build-system guile-build-system) + (arguments + (list + #:source-directory "modules" + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'substitute-lmdb-so + (lambda _ + (let ((lmdb (string-append + #$(this-package-input "lmdb") "/lib/liblmdb.so"))) + (substitute* "modules/lmdb/lmdb.scm" + (("liblmdb.so") lmdb)))))))) + (native-inputs (list guile-3.0)) + (inputs (list guile-3.0 lmdb)) + (home-page "https://github.com/aartaka/guile-lmdb") + (synopsis "Bindings for Lightning Memory-Mapped Database in Guile") + (description "This package provides a Scheme wrapper around liblmdb.so. +Most names are the same as LMDB ones, except for prefix absence. +Several conveniences are added on top: +@itemize +@item @code{call-with-env-and-txn} and @code{call-with-cursor} wrappers. +@item @code{for-cursor} procedure for cursor iteration. +@item @code{val} and @code{stat} types. +@item Error signaling instead of integer return values. +@end itemize") + (license license:gpl3+)))) + (define-public guile-config (package (name "guile-config") -- 2.41.0 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > You may simplify this part a little by using G-Expressions: That's on my learning TODO list, haven't got to them yet! > You may drop \n here. Did it out of pure mimicking for other packages. Nice that I don't need to cargo-cult it =F0=9F=98=83 Thanks, -- Artyom. --=-=-=--