From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 05 04:23:32 2019 Received: (at submit) by debbugs.gnu.org; 5 Feb 2019 09:23:32 +0000 Received: from localhost ([127.0.0.1]:60067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqwx2-0003YK-77 for submit@debbugs.gnu.org; Tue, 05 Feb 2019 04:23:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqwwz-0003Xp-SH for submit@debbugs.gnu.org; Tue, 05 Feb 2019 04:23:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:42487) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gqwwt-0005Xw-AZ for submit@debbugs.gnu.org; Tue, 05 Feb 2019 04:23:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqwwr-0005ge-Ma for guix-patches@gnu.org; Tue, 05 Feb 2019 04:23:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,UNPARSEABLE_RELAY autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqwwq-0005X3-9k for guix-patches@gnu.org; Tue, 05 Feb 2019 04:23:21 -0500 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:46256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqwwq-0005Vw-0y for guix-patches@gnu.org; Tue, 05 Feb 2019 04:23:20 -0500 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 3EA9B16B88 for ; Tue, 5 Feb 2019 09:23:17 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 32a63038 for ; Tue, 5 Feb 2019 09:23:16 +0000 (UTC) From: Christopher Baines To: guix-patches@gnu.org Subject: [PATCH] gnu: Add guile-dbd-postgresql. Date: Tue, 5 Feb 2019 09:23:16 +0000 Message-Id: <20190205092316.3563-1-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) 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: -0.0 (/) Currently, there are packages for guile-dbi and guile-dbd-sqlite3, but th= e PostgreSQL and MySQL parts are not packaged. As GNA which did host the re= lease archives for guile-dbi no longer exists, this package definition uses the upstream Git repository. * gnu/packages/guile-xyz.scm (guile-dbd-postgresql): New variable. (guile-dbi)[arguments]: Add guile-dbd-postgresql to the rpath through the [inputs]: Add guile-dbd-postgresql. --- gnu/packages/guile-xyz.scm | 67 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 3 deletions(-) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 9640d17c3c..e959275318 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -45,6 +45,7 @@ #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages compression) + #:use-module (gnu packages databases) #:use-module (gnu packages disk) #:use-module (gnu packages ed) #:use-module (gnu packages emacs) @@ -63,6 +64,7 @@ #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages networking) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages readline) @@ -1046,8 +1048,10 @@ library}.") (list (string-append "--with-guile-site-dir=3D" %output "/share/guile/site/2.2"= )) #:make-flags - (list (string-append "LDFLAGS=3D-Wl,-rpath=3D" %output "/lib:" - (assoc-ref %build-inputs "guile-dbd-sqlite3"= ) "/lib")) + (list (string-append + "LDFLAGS=3D-Wl,-rpath=3D" %output "/lib:" + (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":" + (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib")) #:phases (modify-phases %standard-phases (add-after 'install 'patch-extension-path @@ -1059,7 +1063,8 @@ library}.") (substitute* dbi.scm (("libguile-dbi") ext)) #t)))))) (inputs - `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3))) ; only shared library,= no scheme files + `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3) + ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared li= brary, no scheme files (propagated-inputs `(("guile" ,guile-2.2))) (synopsis "Guile database abstraction layer") @@ -1106,6 +1111,62 @@ It currently supports MySQL, Postgres and SQLite3.= ") SQL databases. This package implements the interface for SQLite.") (license license:gpl2+))) =20 +(define-public guile-dbd-postgresql + (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b") + (revision 0)) + (package + (name "guile-dbd-postgresql") + (version (string-append + "2.1.6-" (number->string revision) "." (string-take comm= it 7))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/opencog/guile-dbi.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni"= )))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + ;; The upstream Git repository contains all the code, so = change + ;; to the relevant directory. + (chdir "guile-dbd-postgresql") + #t)) + (add-after 'chdir 'patch-src/Makefile.am + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/Makefile.am" + (("/usr/include") + (string-append (assoc-ref inputs "postgresql") "/inclu= de"))) + #t)) + (add-after 'patch-src/Makefile.am 'patch-src + (lambda _ + (substitute* "src/guile-dbd-postgresql.c" + (("postgresql/libpq-fe\\.h") "libpq-fe.h")) + #t))))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("automake" ,automake) + ("autoconf" ,autoconf) + ("perl" ,perl) + ("libtool" ,libtool) + ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) + (inputs + `(("postgresql" ,postgresql) + ("zlib" ,zlib))) + (synopsis "Guile DBI driver for PostgreSQL") + (home-page + "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postg= resql") + (description + "@code{guile-dbi} is a library for Guile that provides a convenie= nt +interface to SQL databases. This package implements the interface for +PostgreSQL.") + (license license:gpl2+)))) + (define-public guile-config (package (name "guile-config") --=20 2.20.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 05 10:44:41 2019 Received: (at 34327-done) by debbugs.gnu.org; 5 Feb 2019 15:44:41 +0000 Received: from localhost ([127.0.0.1]:33636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gr2tq-0000r0-Ji for submit@debbugs.gnu.org; Tue, 05 Feb 2019 10:44:41 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:36590 helo=mira.cbaines.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gr2tl-0000qn-Hz for 34327-done@debbugs.gnu.org; Tue, 05 Feb 2019 10:44:37 -0500 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 B823016BA0; Tue, 5 Feb 2019 15:44:31 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id fa5d0cc5; Tue, 5 Feb 2019 15:44:31 +0000 (UTC) References: <20190205092316.3563-1-mail@cbaines.net> <87womeh650.fsf@elephly.net> User-agent: mu4e 1.0; emacs 26.1 From: Christopher Baines To: Ricardo Wurmus Subject: Re: [bug#34327] [PATCH] gnu: Add guile-dbd-postgresql. In-reply-to: <87womeh650.fsf@elephly.net> Date: Tue, 05 Feb 2019 15:44:31 +0000 Message-ID: <87wome5jfk.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: 34327-done Cc: 34327-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 Ricardo Wurmus writes: > Christopher Baines writes: > >> Currently, there are packages for guile-dbi and guile-dbd-sqlite3, but t= he >> PostgreSQL and MySQL parts are not packaged. As GNA which did host the r= elease >> archives for guile-dbi no longer exists, this package definition uses the >> upstream Git repository. >> >> * gnu/packages/guile-xyz.scm (guile-dbd-postgresql): New variable. >> (guile-dbi)[arguments]: Add guile-dbd-postgresql to the rpath through the >> [inputs]: Add guile-dbd-postgresql. > > =E2=80=9Cto the rpath through the=E2=80=9D =E2=80=A6? How odd, it was meant to say "to the rpath through the #:make-flags". > The rest looks good to me. Thanks for taking a look, I've updated the commit message and pushed. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlxZr19fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XewqhAAkAhAg3snQIG+qTJU8W6BppnWNG/j9A+YpTQZY8X49Hvb6svcE3t04G5k +Q2Dw02HNRo4gfohALIB4bXga5Geo630mZki88wboWwnn2251dvdf6KYz26E/7bG hVPJV0ecJysYeoqIpEKF07xEOTwgmmla6H2mYrgUFppyWMIToP6xr+SIs7Knarm5 3WgcAPy4SaGmQnPb25WtnHr9DzYQr3ANSXO1pRiccuQemTA5bfZX2mGWQEVWQ1w7 HJ/0ADcTZkFMmrMLeixbGsLfPXziOiS9AnEP5QBkvK+zztJueg1BPXaMH/HjktYf asUkhY7PMKkZzlaowjw4s5sqHTdX9DBAHXe2+DzYfpapHu55EAd8WHXjSPxuepUp kWJu/pCbO/tLTw3YLrp++yrWlBhWX+J1W21Ji39PX5EUy7FJP3lRLARqgKK5DxY1 LvFEkdCYhZ1a7J2xUX/F2JSVwtQl9DfcPTO1C1nci3mQpnlwNGjWtN6bvb6x6Ecu UAOVKO/fZBkFZTFmE98NBlkwSOctj6DYmmnp8UAxpK/4sU8f1vVipBlh14FeR9/R /BqqlPhW/wjWT2fpDcYeL8c2iusy08HyNYfJJR/i8OlYhulS6B6YIHDtHqXEImgC OtMkLAC+reD0vKjEGOF76dlSh5Io4uQtkYf8sgnXy16SBYApF/0= =7llb -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 05 21:25:30 2019 Received: (at 34327) by debbugs.gnu.org; 6 Feb 2019 02:25:30 +0000 Received: from localhost ([127.0.0.1]:33897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grCu2-0005et-BV for submit@debbugs.gnu.org; Tue, 05 Feb 2019 21:25:30 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grCty-0005ei-K2 for 34327@debbugs.gnu.org; Tue, 05 Feb 2019 21:25:27 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1549363121; cv=none; d=zoho.com; s=zohoarc; b=MqmaCWLTW7FBQR4LAMLAAdT0F5yJf5gKNOB6DczywGeFTf58VIiynOJ73JFglkXMiF42cWUXa4DeKDrcoTjpIAGZ9RYPS0lkxP+EFOQBXiRTRXj7LsQ8Pzgb4z/v3xEIK5VoRQf49ZiCu2j3j9Mgy4MQKeRZ0fwqY4ngrDNBCvo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1549363121; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=PIqihWNO1JvF+JZtsev30NKI3//3lTnLDSg1VFw5p/I=; b=m6AozNoByoVJ7R77p0+e7UFT6d0G/deKAlDTLxC5QCiq9y21EckcGgx6CAOFLtNdMsfKYJLWHv8g9pbdrkM8Wf+vtkwJM0DaTwG/MkETueihEQIr1ivRW4ItIE02zNnYGuiijglNYEWWTxOcR5ykfyxiB58YH8FZJTKVmbPoW1g= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1549363121; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=613; bh=PIqihWNO1JvF+JZtsev30NKI3//3lTnLDSg1VFw5p/I=; b=CeTQPhsnsA5kPpQiE4DrPdlajZnJOrMu7VdSGp6+6VKpyfj85gZzI/h2P12TF7QS yEnWocdA5WQXyXMjxApy8/tefpsHlSIPYr9bZmtqfCawtPVb5KAyLrPO81wMCS5pXxc vO2c+iH9w5/Z243qUhu8xEeBXjc/BEcW+BaSNbFQ= Received: from localhost (p3E9E957E.dip0.t-ipconnect.de [62.158.149.126]) by mx.zohomail.com with SMTPS id 1549363118987447.48755992117265; Tue, 5 Feb 2019 02:38:38 -0800 (PST) References: <20190205092316.3563-1-mail@cbaines.net> User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus To: Christopher Baines Subject: Re: [bug#34327] [PATCH] gnu: Add guile-dbd-postgresql. In-reply-to: <20190205092316.3563-1-mail@cbaines.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 05 Feb 2019 11:38:35 +0100 Message-ID: <87womeh650.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 34327 Cc: 34327@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 (-) Christopher Baines writes: > Currently, there are packages for guile-dbi and guile-dbd-sqlite3, but the > PostgreSQL and MySQL parts are not packaged. As GNA which did host the re= lease > archives for guile-dbi no longer exists, this package definition uses the > upstream Git repository. > > * gnu/packages/guile-xyz.scm (guile-dbd-postgresql): New variable. > (guile-dbi)[arguments]: Add guile-dbd-postgresql to the rpath through the > [inputs]: Add guile-dbd-postgresql. =E2=80=9Cto the rpath through the=E2=80=9D =E2=80=A6? The rest looks good to me. --=20 Ricardo From unknown Sun Jun 15 08:43:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 06 Mar 2019 12:24:04 +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