From unknown Mon Aug 18 11:32:22 2025 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: Wed, 24 Jan 2024 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68696 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68696@debbugs.gnu.org X-Debbugs-Original-To: Guix patches Received: via spool by submit@debbugs.gnu.org id=B.17061243294744 (code B ref -1); Wed, 24 Jan 2024 19:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jan 2024 19:25:29 +0000 Received: from localhost ([127.0.0.1]:46637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSisL-0001ER-0V for submit@debbugs.gnu.org; Wed, 24 Jan 2024 14:25:29 -0500 Received: from lists.gnu.org ([2001:470:142::17]:55890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSisI-0001EE-Ph for submit@debbugs.gnu.org; Wed, 24 Jan 2024 14:25:28 -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 1rSis1-0001HI-M8 for guix-patches@gnu.org; Wed, 24 Jan 2024 14:25:15 -0500 Received: from mta-07-3.privateemail.com ([198.54.118.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSirt-0005nn-FA for guix-patches@gnu.org; Wed, 24 Jan 2024 14:25:07 -0500 Received: from mta-07.privateemail.com (localhost [127.0.0.1]) by mta-07.privateemail.com (Postfix) with ESMTP id 41A2F18000AE for ; Wed, 24 Jan 2024 14:24:52 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aartaka.me; s=default; t=1706124292; bh=3SLjhLdNv43JCyX94YkPtc7+4NgHjciRqjLiLgoK55M=; h=From:To:Subject:Date:From; b=ygJD2y7j6xg+pdIn2vaggtVM/2foreFccOiTZ1c04VEc1aBAUI1QS0nb3cQESqHvr /1OrUarhPkKbyFbhv0/Kds1goYWNiP41FbAutoMWtTipPZOVARC1/trTQ1SJi9Q6eM XlPmJntNMnbsMjK3bfTcjrr8srwRh8DqSe624VwcmVRUV0GeA0FtJaVZYOv6k2CmVQ yCk6eyvGEluvDj0WcKQdEx6wuUSfQomj1lIj8JvPb5f+rhRLPU4GwhD6TiFFTwgRgQ JT3pRchbenR0sgr6ZrdC5Xtm/IYiUpF9OKn9XNhnUNlcbUTPHBCra0B/HNk4SgCRIg 3Sxfv5JONVSSg== Received: from paranoidal (unknown [185.167.217.34]) by mta-07.privateemail.com (Postfix) with ESMTPA for ; Wed, 24 Jan 2024 14:24:51 -0500 (EST) User-agent: mu4e 1.10.8; emacs 29.1 From: Artyom Bologov Date: Wed, 24 Jan 2024 23:21:50 +0400 Message-ID: <87le8eedrb.fsf@aartaka.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=198.54.118.214; envelope-from=mail@aartaka.me; helo=MTA-07-3.privateemail.com X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 4.5 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello Guix, This patch adds guile-lmdb module. From 9d67b6438d8e5c42d6d4e9c8eca46038c80f05ea 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. Content analysis details: (4.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.167.217.34 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello Guix, This patch adds guile-lmdb module. From 9d67b6438d8e5c42d6d4e9c8eca46038c80f05ea 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. Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.167.217.34 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain Hello Guix, This patch adds guile-lmdb module. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-guile-lmdb.patch Content-Description: gnu: add guile-lmdb. >From 9d67b6438d8e5c42d6d4e9c8eca46038c80f05ea 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 | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 9c4c308d05..08f4a67d07 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -2012,6 +2012,47 @@ (define-public guile-dbd-mysql for MySQL.") (license license:gpl2+))) +(define-public guile-lmdb + (package + (name "guile-lmdb") + (version "0.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aartaka/guile-lmdb") + (commit "438143ca9ba157faec6f4c2740092c31c733fbfe"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0p43c8ppbhzpi944in0z2jqr7acl8pm7s1x0p5f0idqda6n6f828")))) + (build-system guile-build-system) + (arguments + '(#:source-directory "modules" + #:phases (modify-phases %standard-phases + (add-before 'build 'substitute-lmdb-so + (lambda* (#:key inputs #:allow-other-keys) + (let ((lmdb (string-append (assoc-ref inputs "lmdb") + "/lib/liblmdb.so"))) + (substitute* + '("modules/lmdb/lmdb.scm") + (("liblmdb.so") + lmdb)) + #t)))))) + (native-inputs (list guile-3.0)) + (inputs (list guile-3.0 lmdb)) + (home-page "https://github.com/aartaka/guile-lmdb") + (synopsis "Bindings for LMDB (Lightning Memory-Mapped Database) in Guile.") + (description "Scheme wrapper around liblmdb.so. +Most name 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\n") + (license license:gpl3+))) + (define-public guile-config (package (name "guile-config") -- 2.41.0 --=-=-= Content-Type: text/plain Thanks, -- Artyom Bologov --=-=-=-- From unknown Mon Aug 18 11:32:22 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68696] [PATCH] gnu: Add guile-lmdb. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jan 2024 22:15:02 +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: Artyom Bologov Cc: 68696@debbugs.gnu.org Received: via spool by 68696-submit@debbugs.gnu.org id=B68696.170622089312533 (code B ref 68696); Thu, 25 Jan 2024 22:15:02 +0000 Received: (at 68696) by debbugs.gnu.org; 25 Jan 2024 22:14:53 +0000 Received: from localhost ([127.0.0.1]:49470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT7zp-0003G5-39 for submit@debbugs.gnu.org; Thu, 25 Jan 2024 17:14:53 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:56567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rT7zj-0003FQ-NR for 68696@debbugs.gnu.org; Thu, 25 Jan 2024 17:14:48 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40eac352733so54822535e9.0 for <68696@debbugs.gnu.org>; Thu, 25 Jan 2024 14:14:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706220876; x=1706825676; darn=debbugs.gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=rBZ0C/XpATulhSCZOVcjakwxGZRReYovlvFsjFYpfYw=; b=gY71W2H6gd7WxxBDvu9F2N1upvTSPnWAOwBPKO3vZZHLIwaBEgM4FHZ30Kh86YY82h Ch36uMh3a3sLV/oKUgbvB0Oef3g0YjxnVmtTFF6CjKI3ze8xY7ruh6U6PKChXLMa9Rq2 Hr06MHQshyQTf03PNI+3R7rFoPhlsQFlw+myvDIz52NkV+5rt+OyOnVYO79LF5uk6OWa xqMMU/0AUf8dwNTHVb7eq/e2r1Prm23lj6c/hAgYqLFCog/KNBtiA9qFVwrVgBRF0qss chPT41DN8y5jAhSEDxr9Yqsk9hWH3xhlf2i1rEIQKoIrlnIyS27kIqPzpDTCuQyUxgqu s0dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706220876; x=1706825676; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rBZ0C/XpATulhSCZOVcjakwxGZRReYovlvFsjFYpfYw=; b=UlVXEy1ZRofkc+GfusIV4ol4LsTTOAsKzhDXqriN1yqU0nYOmlwR2Z+K8piHjPjm1Y ym3eq4PrR+ZoQmbDX5YnXpvtCUZBcsm0xS9+0ANzkq3FZfYwaENcMDFcfaYmvTS9s4tl JWjcizkC+NZldH7xVnmS7amGt9+o3LezxBJqwpcw94jeGZnZ+f+tCzSQVzqH+ViTLNvU YyqbXGyjsntoCIf/bWTcvv5Ueptw2AXCqLB8DEVAm86hfT/ylgj4thIhrve8qp/E0Zj2 8O49/po2r3Oo9KYWodkM7CDLXS6f8cTSn1U7QwUXcNFh0v05szl9iP0+iNpORrvnv+mO UsEg== X-Gm-Message-State: AOJu0YwVBJIHft65YhvXvKEEaTPe0guFxCDo+R2CxaLCWznSFGj5P1Kx HZJxAiPp9GM9r5wUXiGFEhf7N8SfYhfTr218o+4cutwLaGO9fsMWD29M0iFeGWo= X-Google-Smtp-Source: AGHT+IEMekDRMrvPhQJ8BNhlw+WcqDvTW/3qm7EmSAcZn0l6d95v9qh//nlK4DmH+FwW7Ir+QwWKMQ== X-Received: by 2002:a05:600c:1c9c:b0:40e:d2b6:ba44 with SMTP id k28-20020a05600c1c9c00b0040ed2b6ba44mr215938wms.31.1706220875580; Thu, 25 Jan 2024 14:14:35 -0800 (PST) Received: from guxtil (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id ay17-20020a05600c1e1100b0040ec7a6d39esm3858583wmb.16.2024.01.25.14.14.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 14:14:34 -0800 (PST) From: Sharlatan Hellseher In-Reply-To: <87le8eedrb.fsf@aartaka.me> (Artyom Bologov's message of "Wed, 24 Jan 2024 23:21:50 +0400") References: <87le8eedrb.fsf@aartaka.me> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Thu, 25 Jan 2024 22:14:32 +0000 Message-ID: <87sf2ljc1j.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi, Thank you for patch! >+ (package >+ (name "guile-lmdb") >+ (version "0.0.1") >+ (source (origin >+ (method git-fetch) >+ (uri (git-reference >+ (url "https://github.com/aartaka/guile-lmdb") >+ (commit "438143ca9ba157faec6f4c2740092c31c733fbfe"))) >+ (file-name (git-file-name name version)) >+ (sha256 >+ (base32 >+ "0p43c8ppbhzpi944in0z2jqr7acl8pm7s1x0p5f0idqda6n6f828")))) As this project has no version tags, take a look at how the package style may be altered in this case. (gnu packages lisp-xyz) contains quite a lot of examples without releases. --8<---------------cut here---------------start------------->8--- (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")))) --8<---------------cut here---------------end--------------->8--- - revision :: bumps on every package update in guix, starting from 0. > + (arguments > + '(#:source-directory "modules" > + #:phases (modify-phases %standard-phases > + (add-before 'build 'substitute-lmdb-so > + (lambda* (#:key inputs #:allow-other-keys) > + (let ((lmdb (string-append (assoc-ref inputs "lmdb") > + "/lib/liblmdb.so"))) > + (substitute* > + '("modules/lmdb/lmdb.scm") > + (("liblmdb.so") > + lmdb)) > + #t)))))) You may simplify this part a little by using G-Expressions: --8<---------------cut here---------------start------------->8--- (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)))))))) --8<---------------cut here---------------end--------------->8--- - this-package-input commonly used replacement for (string-append (assoc-ref inputs ... - lambdas in phases don't need trailing #t. > + (synopsis "Bindings for LMDB (Lightning Memory-Mapped Database) in Guile.") You need to drop full stop in the end of synopsis, and may use full description instead of acronym+description. > (description "Scheme wrapper around liblmdb.so. It may be rephrased as "This package provides a scheme wrapper for liblmdb.so." > +@end itemize\n") You may drop \n here. Please take a look at review points, and apply guix lint in the end. Looking forward for V2! Thans, Oleg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmWy3UgACgkQdtcnv/Ys 0rW3oxAAquUyTZbU29/sSgcUEDkQB9su5C/CTGkYnyne5kQi/mflMhYyauxWWWsH 3LQpmvLtBdDtoAN9+Fe0lgdFlvRHiNhaxHU+dVQnf7/dMANyY9tdXsVmjOmB6JXx Gg0WeL6gWHfCkZ1wZnAcUUZ46eMfPbP8palERZuj/dhZLrK/IX6sLSNRpmXGFQRu 553UbD3aeER3cw6WX8n47HTnLWpczaQGl2P5m+IAxd5+7UdUiOmMjzXoyB2KTvx9 Vn05sHSWdlGdYM3wB5dC3zhjipBbdQJz+8tVNs51JyeVUVLRC/syb89CyOqW9PJY NzY7jggwoUYDvSgdWtk7cuPdVbrdE3Zcq+jXyQG/CygDgCB0wCnqf+buKMwOhz/9 TRsvV74brsHXMlMQV2j8gU2Z+98F/L2he4ZbS8qB/XdT78ZuuqzI0GywKJYUCImc mifGK+DuJUna1jAR27Cxzw+w4HcENV8uoocwDlrQjGMJ/4vO+gJ1Oi1PfSQxRbO1 LGHfRnLvf62QP0qCUlkjK97pm6SumCfI+5GlSkvaPjBMHyYV8dg0Y2Jm4Xfr1/9u A+KK2g6GILeLzrRvH4cGzlfhbzolDzaT7CN2b0U0uKavsFEKBNuTnEo5caWidyGK TolloX0yOUKCFbEn8DSt1d6j18YoJz/IeIq/dyVmfgCfAfZhKXg= =fIx5 -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 11:32:22 2025 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-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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 pat [...] Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.167.217.34 listed in zen.spamhaus.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [198.54.118.214 listed in list.dnswl.org] -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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 pat [...] Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.167.217.34 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [198.54.118.214 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= 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. --=-=-=-- From unknown Mon Aug 18 11:32:22 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Artyom Bologov Subject: bug#68696: closed ([PATCH] gnu: Add guile-lmdb.) Message-ID: References: <87bk97kadn.fsf@gmail.com> <87le8eedrb.fsf@aartaka.me> X-Gnu-PR-Message: they-closed 68696 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 68696@debbugs.gnu.org Date: Fri, 26 Jan 2024 22:18:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1706307482-16888-1" This is a multi-part message in MIME format... ------------=_1706307482-16888-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #68696: [PATCH] gnu: Add guile-lmdb. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 68696@debbugs.gnu.org. --=20 68696: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68696 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1706307482-16888-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 68696-done) by debbugs.gnu.org; 26 Jan 2024 22:17:40 +0000 Received: from localhost ([127.0.0.1]:52975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTUW3-0004No-Nw for submit@debbugs.gnu.org; Fri, 26 Jan 2024 17:17:39 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:50411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTUW2-0004Nc-9w for 68696-done@debbugs.gnu.org; Fri, 26 Jan 2024 17:17:38 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40e76109cdeso18571485e9.0 for <68696-done@debbugs.gnu.org>; Fri, 26 Jan 2024 14:17:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706307446; x=1706912246; darn=debbugs.gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=oDalVisfW7K0WLW4DxoXXWg+jY92FAJWUycA8QNBKzw=; b=POX+Jn72EDbmAEIaQYdwZ7es3hEpwj1DkExAlMPnqI1+ZB2Tt1mzeLuFYKebk20Qc2 LppVbuH/C8vfjAinjOwrgnMxPo8H2QdD7Rk47iy+KUTsw0Y9U//MiIYEo9A3GK40vK08 CZSV8BoL1idXcQn8uzwbQHve1Hbh2/gUXh/AfRuqwRBul8nuQll5+kiH9UmDn7cLMhUD VPZLT+epWw/q5zgdmc8tSwN1wGDiH9Xvw6B7oiMElGT8y6sgsBrmYuQkIVplzqDb7yHr xbSD0hXp++dhlgG+nUazIa5AMOzMF6UKIjpaFj3i4FIW+8CTy6ipcDt114u689UcUD3C gPIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706307446; x=1706912246; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oDalVisfW7K0WLW4DxoXXWg+jY92FAJWUycA8QNBKzw=; b=ivH06PgzWB10MFKt+rM3zPePkQdDGuxYQxd9LC6eaMJLC/iwLT/uTf8tx4ew7FwOWc xK6ULxBYxF/1zc5EiLTebH7j+Bdk8ubg/PoBirSDHe/w+tr2EkPgYoRwR4eh0YZSHqYb OGn+7x8Cof09uJRWMq26zsyykRNBAUX08V/FBdKrm6vd2tdqmzuxIjpd4gl+/nx4A0Od +hUh4O8f+C5bWMOQQ9vmWhl7l/oIFEU7ItesTYllRSx/BV47/K+8k57f6/0ZYPv4yScI fmmd5a8B9Xh4CMH7ERkvlzedlTJxkKUilMrgOYFduJJkG/FvrKjbPCHGpOkatoc7Ndr0 Wb1A== X-Gm-Message-State: AOJu0YwSta27Uo3+KzIwGzZlZ6ca1XKmwb3HMVcResV6/j5XFEf9AYT6 qLbvnrX2NW7ZYafYADPti7Kc26b3QJkJmXx/hhw49Usk6bahA3MR4Vtd+dwaUcs= X-Google-Smtp-Source: AGHT+IH2xapwAjk//wJX+bvBN/dsNFC8y/lVIyZBjQDOZn5Tv/Z83w0AVI5RZ5cHbdli8Vtqfz3Vvg== X-Received: by 2002:a05:600c:1f8d:b0:40e:ce97:4447 with SMTP id je13-20020a05600c1f8d00b0040ece974447mr346288wmb.13.1706307445569; Fri, 26 Jan 2024 14:17:25 -0800 (PST) Received: from guxtil (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id h4-20020adfa4c4000000b00337d4eed87asm2101683wrb.115.2024.01.26.14.17.24 for <68696-done@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 14:17:25 -0800 (PST) From: Sharlatan Hellseher To: 68696-done@debbugs.gnu.org Subject: [PATCH] gnu: Add guile-lmdb. Date: Fri, 26 Jan 2024 22:17:24 +0000 Message-ID: <87bk97kadn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68696-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Pushed as d9d97e26c152d7b5ff13f8aa7a030fee2004bf79 to master.=20 Thanks, Oleg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmW0L3QACgkQdtcnv/Ys 0rUiRA//a9jknS94cVWqPIxFXdlQqdE5wdK9DruEPZpIJU07Ky/rEGM4uu9u0lIF 3NpBdZyxnLbYiZGO4TUPi43LP2tZXm0DmwN0BDGzv1vaCNIo0egTWTNqebbrGsju d9+8l+K5/BU4uwvbzFfKbhB2DYexoNENqCveU0VbFpMegYKctvZHh5lwJJf1a/vx VBezbPN6PDd8+4v0LDKHyKtEHsO4K+Bgmq84LJ2rAwdoKOGdl2JXEboE5+/F0DY4 3Q6fGObQbjZILCTnuFApQtGYyn/oENXlD9vbho+sXdu1Rd2QZPj7zzkaW0Zph84K Q2lzOp/hVKCOnWEe2BaNWmWfjKlnrv1vtdqLCoNASrPC7yQgSpb7W5njXTM4virX YWdc/i8xttN4TWOlyFxEUUOB6vl81gCxAZ9Vmj9jeD9ZgtQ/orE4c2/DJv/dnp/f 1JzZPArNMaaxH+tWKPdtY//ZxBmmBpDqI6JqQ7PF+ItYAEoOeRVgGB31mHXZou56 97lZZc3NSEnXOFkfYRFvl3wna0b/GmNayyovDHTAlaxuBbDTLT5ANdd3sb52ITMp dHG+mWqSklYKGaznu+RSXlVx9EwiAhnO2RUsxZ+OPRz6c5obTlDPez33aCUeODr9 uIh5GANpXHP+Ia+vivmtfbzygXzK5BrMJVFTvDYSnc8puH9/dvg= =rCLW -----END PGP SIGNATURE----- --=-=-=-- ------------=_1706307482-16888-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 24 Jan 2024 19:25:29 +0000 Received: from localhost ([127.0.0.1]:46637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSisL-0001ER-0V for submit@debbugs.gnu.org; Wed, 24 Jan 2024 14:25:29 -0500 Received: from lists.gnu.org ([2001:470:142::17]:55890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSisI-0001EE-Ph for submit@debbugs.gnu.org; Wed, 24 Jan 2024 14:25:28 -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 1rSis1-0001HI-M8 for guix-patches@gnu.org; Wed, 24 Jan 2024 14:25:15 -0500 Received: from mta-07-3.privateemail.com ([198.54.118.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSirt-0005nn-FA for guix-patches@gnu.org; Wed, 24 Jan 2024 14:25:07 -0500 Received: from mta-07.privateemail.com (localhost [127.0.0.1]) by mta-07.privateemail.com (Postfix) with ESMTP id 41A2F18000AE for ; Wed, 24 Jan 2024 14:24:52 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aartaka.me; s=default; t=1706124292; bh=3SLjhLdNv43JCyX94YkPtc7+4NgHjciRqjLiLgoK55M=; h=From:To:Subject:Date:From; b=ygJD2y7j6xg+pdIn2vaggtVM/2foreFccOiTZ1c04VEc1aBAUI1QS0nb3cQESqHvr /1OrUarhPkKbyFbhv0/Kds1goYWNiP41FbAutoMWtTipPZOVARC1/trTQ1SJi9Q6eM XlPmJntNMnbsMjK3bfTcjrr8srwRh8DqSe624VwcmVRUV0GeA0FtJaVZYOv6k2CmVQ yCk6eyvGEluvDj0WcKQdEx6wuUSfQomj1lIj8JvPb5f+rhRLPU4GwhD6TiFFTwgRgQ JT3pRchbenR0sgr6ZrdC5Xtm/IYiUpF9OKn9XNhnUNlcbUTPHBCra0B/HNk4SgCRIg 3Sxfv5JONVSSg== Received: from paranoidal (unknown [185.167.217.34]) by mta-07.privateemail.com (Postfix) with ESMTPA for ; Wed, 24 Jan 2024 14:24:51 -0500 (EST) User-agent: mu4e 1.10.8; emacs 29.1 From: Artyom Bologov To: Guix patches Subject: [PATCH] gnu: Add guile-lmdb. Date: Wed, 24 Jan 2024 23:21:50 +0400 Message-ID: <87le8eedrb.fsf@aartaka.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=198.54.118.214; envelope-from=mail@aartaka.me; helo=MTA-07-3.privateemail.com X-Spam_score_int: 16 X-Spam_score: 1.6 X-Spam_bar: + X-Spam_report: (1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 4.5 (++++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello Guix, This patch adds guile-lmdb module. From 9d67b6438d8e5c42d6d4e9c8eca46038c80f05ea 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. Content analysis details: (4.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.167.217.34 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello Guix, This patch adds guile-lmdb module. From 9d67b6438d8e5c42d6d4e9c8eca46038c80f05ea 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. Content analysis details: (3.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [185.167.217.34 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= Content-Type: text/plain Hello Guix, This patch adds guile-lmdb module. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-guile-lmdb.patch Content-Description: gnu: add guile-lmdb. >From 9d67b6438d8e5c42d6d4e9c8eca46038c80f05ea 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 | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 9c4c308d05..08f4a67d07 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -2012,6 +2012,47 @@ (define-public guile-dbd-mysql for MySQL.") (license license:gpl2+))) +(define-public guile-lmdb + (package + (name "guile-lmdb") + (version "0.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aartaka/guile-lmdb") + (commit "438143ca9ba157faec6f4c2740092c31c733fbfe"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0p43c8ppbhzpi944in0z2jqr7acl8pm7s1x0p5f0idqda6n6f828")))) + (build-system guile-build-system) + (arguments + '(#:source-directory "modules" + #:phases (modify-phases %standard-phases + (add-before 'build 'substitute-lmdb-so + (lambda* (#:key inputs #:allow-other-keys) + (let ((lmdb (string-append (assoc-ref inputs "lmdb") + "/lib/liblmdb.so"))) + (substitute* + '("modules/lmdb/lmdb.scm") + (("liblmdb.so") + lmdb)) + #t)))))) + (native-inputs (list guile-3.0)) + (inputs (list guile-3.0 lmdb)) + (home-page "https://github.com/aartaka/guile-lmdb") + (synopsis "Bindings for LMDB (Lightning Memory-Mapped Database) in Guile.") + (description "Scheme wrapper around liblmdb.so. +Most name 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\n") + (license license:gpl3+))) + (define-public guile-config (package (name "guile-config") -- 2.41.0 --=-=-= Content-Type: text/plain Thanks, -- Artyom Bologov --=-=-=-- ------------=_1706307482-16888-1--