From unknown Fri Jun 20 07:09:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#37845 <37845@debbugs.gnu.org> To: bug#37845 <37845@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add ephemeralpg. Reply-To: bug#37845 <37845@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:09:46 +0000 retitle 37845 [PATCH] gnu: Add ephemeralpg. reassign 37845 guix-patches submitter 37845 Christopher Baines severity 37845 normal tag 37845 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 21 02:00:54 2019 Received: (at submit) by debbugs.gnu.org; 21 Oct 2019 06:00:55 +0000 Received: from localhost ([127.0.0.1]:55596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMQkQ-0003Pv-8r for submit@debbugs.gnu.org; Mon, 21 Oct 2019 02:00:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:60163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMQkO-0003Pn-7D for submit@debbugs.gnu.org; Mon, 21 Oct 2019 02:00:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39222) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMQkL-0003Ok-8R for guix-patches@gnu.org; Mon, 21 Oct 2019 02:00:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMQkI-0004KN-TB for guix-patches@gnu.org; Mon, 21 Oct 2019 02:00:48 -0400 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:44306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iMQkI-0004K5-LE for guix-patches@gnu.org; Mon, 21 Oct 2019 02:00:46 -0400 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id D858C1757E for ; Mon, 21 Oct 2019 07:00:44 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id b3f1529d for ; Mon, 21 Oct 2019 06:00:44 +0000 (UTC) From: Christopher Baines To: guix-patches@gnu.org Subject: [PATCH] gnu: Add ephemeralpg. Date: Mon, 21 Oct 2019 07:00:44 +0100 Message-Id: <20191021060044.9696-1-mail@cbaines.net> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:7e00::f03c:91ff:fe69:8da9 X-Spam-Score: 2.2 (++) 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: This is a general utility, but I'm particularly interested in using this to enable build time tests for the guix-data-service package. * gnu/packages/databases.scm (ephemeralpg): New variable. --- gnu/packages/databases.scm | 62 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: eradman.com] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [2a01:7e00:0:0:f03c:91ff:fe69:8da9 listed in] [zen.spamhaus.org] 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 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: 1.2 (+) 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: This is a general utility, but I'm particularly interested in using this to enable build time tests for the guix-data-service package. * gnu/packages/databases.scm (ephemeralpg): New variable. --- gnu/packages/databases.scm | 62 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: eradman.com] -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [2a01:7e00:0:0:f03c:91ff:fe69:8da9 listed in] [zen.spamhaus.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines This is a general utility, but I'm particularly interested in using this = to enable build time tests for the guix-data-service package. * gnu/packages/databases.scm (ephemeralpg): New variable. --- gnu/packages/databases.scm | 62 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index f8e72565a0..7e26e9ebbd 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -216,6 +216,68 @@ standard Go idioms.") (home-page "http://labix.org/mgo") (license license:bsd-2))) =20 +(define-public ephemeralpg + (package + (name "ephemeralpg") + (version "2.8") + (source + (origin + (method url-fetch) + (uri (string-append + "http://eradman.com/ephemeralpg/code/ephemeralpg-" + version ".tar.gz")) + (sha256 + (base32 "1dpfxsd8a52psx3zlfbqkw53m35w28qwyb87a8anz143x6gnkkr4"))= )) + (build-system gnu-build-system) + (arguments + '(#:make-flags (list "CC=3Dgcc" + (string-append "PREFIX=3D" %output)) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'check + (lambda* (#:key inputs #:allow-other-keys) + ;; The intention for one test is to test without PostgreSQL= on + ;; the $PATH, so replace the test $PATH with just the util-= linux + ;; bin, which contains getopt. It will hopefully be possibl= e to + ;; remove this for releases after 2.8. + (substitute* "test.rb" + (("/bin:/usr/bin") + (string-append (assoc-ref inputs "util-linux") + "/bin"))) + ;; Set the LC_ALL=3DC as some tests use sort, and the local= e + ;; affects the order. It will hopefully be possible to remo= ve + ;; this for releases after 2.8. + (setenv "LC_ALL" "C") + (invoke "ruby" "test.rb") + #t)) + (add-after 'install 'wrap + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (wrap-program (string-append out "/bin/pg_tmp") + `("PATH" ":" prefix + (,(string-append (assoc-ref inputs "util-linux") + "/bin") + ,(string-append (assoc-ref inputs "postgresql") + "/bin") + ;; For getsocket + ,(string-append out "/bin"))))) + #t))))) + (inputs + `(("postgresql" ,postgresql) + ("util-linux" ,util-linux))) + (native-inputs + `(("ruby" ,ruby))) + (home-page "http://eradman.com/ephemeralpg/") + (synopsis "Run temporary PostgreSQL databases") + (description + "@code{pg_tmp} creates temporary PostgreSQL databases, suitable for= tasks +like running software test suites. Temporary databases created with +@code{pg_tmp} have a limited shared memory footprint and are automatical= ly +garbage-collected after a configurable number of seconds (the default is +60).") + (license license:gpl2))) + (define-public es-dump-restore (package (name "es-dump-restore") --=20 2.23.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 21 09:44:41 2019 Received: (at 37845) by debbugs.gnu.org; 21 Oct 2019 13:44:41 +0000 Received: from localhost ([127.0.0.1]:55985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMXzF-0006Eh-BV for submit@debbugs.gnu.org; Mon, 21 Oct 2019 09:44:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMXzC-0006ES-Qy for 37845@debbugs.gnu.org; Mon, 21 Oct 2019 09:44:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iMXz6-0000xX-TU; Mon, 21 Oct 2019 09:44:32 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=59000 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iMXz6-0003TA-Ce; Mon, 21 Oct 2019 09:44:32 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Christopher Baines Subject: Re: [bug#37845] [PATCH] gnu: Add ephemeralpg. References: <20191021060044.9696-1-mail@cbaines.net> Date: Mon, 21 Oct 2019 15:44:29 +0200 In-Reply-To: <20191021060044.9696-1-mail@cbaines.net> (Christopher Baines's message of "Mon, 21 Oct 2019 07:00:44 +0100") Message-ID: <877e4y1ade.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37845 Cc: 37845@debbugs.gnu.org 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.3 (---) Hi Chris, Christopher Baines skribis: > This is a general utility, but I'm particularly interested in using this = to > enable build time tests for the guix-data-service package. > > * gnu/packages/databases.scm (ephemeralpg): New variable. [...] > + (license license:gpl2))) I think this is ISC, no? Apart from that, it LGTM. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 21 13:29:29 2019 Received: (at 37845-done) by debbugs.gnu.org; 21 Oct 2019 17:29:29 +0000 Received: from localhost ([127.0.0.1]:57790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMbUm-0008Uj-Nv for submit@debbugs.gnu.org; Mon, 21 Oct 2019 13:29:28 -0400 Received: from mira.cbaines.net ([212.71.252.8]:57078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMbUk-0008Ub-Nq for 37845-done@debbugs.gnu.org; Mon, 21 Oct 2019 13:29:27 -0400 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id D1143172F7; Mon, 21 Oct 2019 18:29:25 +0100 (BST) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id ce13f78a; Mon, 21 Oct 2019 17:29:25 +0000 (UTC) References: <20191021060044.9696-1-mail@cbaines.net> <877e4y1ade.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Christopher Baines To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#37845] [PATCH] gnu: Add ephemeralpg. In-reply-to: <877e4y1ade.fsf@gnu.org> Date: Mon, 21 Oct 2019 18:29:25 +0100 Message-ID: <87eez6qa6i.fsf@cbaines.net> 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: 37845-done Cc: 37845-done@debbugs.gnu.org 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; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi Chris, > > Christopher Baines skribis: > >> This is a general utility, but I'm particularly interested in using this= to >> enable build time tests for the guix-data-service package. >> >> * gnu/packages/databases.scm (ephemeralpg): New variable. > > [...] > >> + (license license:gpl2))) > > I think this is ISC, no? Ah, yep, I probably didn't change that from whatever package definition I copied... I've updated it now. > Apart from that, it LGTM. Thanks! Great, with the above change, I've pushed this as 6fc03fccd41c1687933a0a70a40efcb5ed821995. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl2t6vVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XepvRAAh3Z6sdjC0QxHSQzNAwHi9F/DfmASUWf2PiEO/5lwRtqTZLJVe3IU/s4H BQoEvkMOrkGYAgRY0DI+6kTbR/tBe++XmJb/WkmnN/jkPcjjml9nD2GMUNaLIeMX QLwof73+k4MOva2/rnsZzQB1Tb9vcP5ETteefRsM5tInibewKaMMq3Yn6AeolZRh 7mc9GklW1Muyv1DQD8UIjD+pi1VaLPXyK9Hm7QCxWa0+noq30rOafhbTkz0ENX4l mIqIxrvPhjI1aeSzhU5yRzQJLdQupLxwAKh4Qo5EDqRplZIMuK7ktn/npuYunDsm ih1jgBhrxGqmFPwLq0kSokAhrRM2RrX8doMMf1ElZH1at/cu8STODKu01Ay+sPmi SOxihUmWokls/zitjN4UvAfUv8GogfayORlJJFyafCc/mj1mL6nD2ppjy3CXNqir eHvQcXGrScKeGnkzRIQ6uBh2Mhq5y11BXsjcaPzsiOgbnYlgVXK1glUsmb1Dgv7w XIYRl8voXXuGfituaaWxLWD8QDtbIj4KQUvflKSQtLnAyReOZI8ju00cxOv65ZVo 70P05RM4z9cOalsjW8aEVafKP5u/YoEU+zK0qBgTm6kBy2grg3lc7sFsqnmXxvq0 yLswPWi/zwN9AHefdAnj2hDAqofnmq2XW6TYfRxkRdVScHC5ru8= =kaxJ -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 20 07:09:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 19 Nov 2019 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator