From patchwork Thu Feb 22 14:55:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marc Coquand X-Patchwork-Id: 60883 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3834627BBEA; Thu, 22 Feb 2024 15:41:06 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6DA4027BBE2 for ; Thu, 22 Feb 2024 15:41:02 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdBBo-0005ie-RM; Thu, 22 Feb 2024 10:40:48 -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 1rdBBn-0005P0-5E for guix-patches@gnu.org; Thu, 22 Feb 2024 10:40:47 -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 1rdBBg-0002qC-AB for guix-patches@gnu.org; Thu, 22 Feb 2024 10:40:46 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rdBC2-0001dM-5N for guix-patches@gnu.org; Thu, 22 Feb 2024 10:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69309] [PATCH] gnu: Add libpg_query Resent-From: Marc Coquand Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 22 Feb 2024 15:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69309 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69309@debbugs.gnu.org Cc: Marc Coquand X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17086164146122 (code B ref -1); Thu, 22 Feb 2024 15:41:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Feb 2024 15:40:14 +0000 Received: from localhost ([127.0.0.1]:36355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdBBF-0001ad-2c for submit@debbugs.gnu.org; Thu, 22 Feb 2024 10:40:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:48780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdAnD-0000P1-1A for submit@debbugs.gnu.org; Thu, 22 Feb 2024 10:15:24 -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 1rdAT4-0004mS-Js for guix-patches@gnu.org; Thu, 22 Feb 2024 09:54:34 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdAT2-0002ck-N3 for guix-patches@gnu.org; Thu, 22 Feb 2024 09:54:34 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 465F45C00BE; Thu, 22 Feb 2024 09:54:30 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 22 Feb 2024 09:54:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mccd.space; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm3; t=1708613670; x=1708700070; bh=wn L9KmTvI4hwH1CJCygeXlbQIGSAO3ldGrQN315iA/k=; b=smHM5GzJc0+t7SbW6d JEZy5EHThqkd822QA5NTsIz2/htWHcUqWBlWHmd7EBZfOLEzdZGY0zQO8Ew0j6Qy Op7OsUuZB4owa9qXIx0pSlOr8lwtpvl4dEp2ECgVeQ5qf6TRJkco4G4+SAQcHD1C YchkKVOzp7B36zynXTPAJxinLcxkvpv3wriieSYW4AWFEvgKF7vzXnUF62LL1xYc OReTe6nEgkZcY6xdXKuYtTLkAcCAdckPRTDmQMfXEmIkegK8E6O1HWrDx6GVSyf2 IvTsdp9OA8BU4MXH/YlwiWTMry44xRZ/WbvHCa6fPpPWhZ26Hb29wa3VllRZxgRa yXug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1708613670; x=1708700070; bh=wnL9KmTvI4hwH 1CJCygeXlbQIGSAO3ldGrQN315iA/k=; b=N0o1sVslNs4sRsdLbzFbuZhvNj0X+ BbApJTGN3ykaeuO0IYDlXjAeYvHruOjnNxQX3eHkMAaJYXZ9C0A5psxC5Piki3+b kduD4wv5637WzzJlxV1sn0c1kJEsFu4rD/b7j+8lq2DNJeS/RHCQ2WPb+gPgtzDy G3ltrXBamUK8qZGqO6q7XFwfpFU2tixTTXiMfFcAcKAvuJ1uoaBnijowkAldeWnu nZer5SAK+orz8p+67NmKjT+FzCHT2ix0tz+YlzVq+qG+g8W8T6X2Ytu1Qrgdf3h8 5WXgASuennKYlvRTO+gQaYWALQP0Zwku0E4ShjBZ4ggPlWt2s+gI0CyeQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeeggdeikecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofggtgfgsehtkeertd ertdejnecuhfhrohhmpeforghrtgcuvehoqhhurghnugcuoehmrghrtgesmhgttggurdhs phgrtggvqeenucggtffrrghtthgvrhhnpedtieeiieeugfffieevudegfeffveevheefle evleetkeeghfehveetteelffeuvdenucffohhmrghinhepghhnuhdrohhrghdpghhithhh uhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepmhgrrhgtsehmtggtugdrshhprggtvg X-ME-Proxy: Feedback-ID: ia2d149fd:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Feb 2024 09:54:29 -0500 (EST) From: Marc Coquand Date: Thu, 22 Feb 2024 08:55:02 -0600 Message-ID: <53f7322718138c68263c55aeffb787b316fbfdf0.1708613702.git.marc@mccd.space> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 Received-SPF: pass client-ip=66.111.4.25; envelope-from=marc@mccd.space; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 22 Feb 2024 10:32:19 -0500 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/libpg_query.scm The name of the library is libpg_query, so it has not been renamed to use hyphen despite the linters complaints. There is also a warning: No valid tags found that I have been unable to resolve. Change-Id: I7fff485880397cfe1d0b9e7c5beb835882454cd2 Signed-off-by: Marc Coquand --- gnu/packages/libpg_query.scm | 64 ++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 gnu/packages/libpg_query.scm base-commit: fdbf4192f5eaa7fdb5e6e2e98ada0726c8104824 diff --git a/gnu/packages/libpg_query.scm b/gnu/packages/libpg_query.scm new file mode 100644 index 0000000000..f80ed4827a --- /dev/null +++ b/gnu/packages/libpg_query.scm @@ -0,0 +1,64 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2024 Marc Coquand +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages libpg_query) + #:use-module (gnu packages) + #:use-module (gnu packages base) + #:use-module (gnu packages commencement) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix utils) + #:use-module (guix download) + #:use-module (guix build-system gnu) + #:use-module ((guix licenses) #:prefix license:) + ) + +(define-public libpg_query + (package + (name "libpg_query") + (version "16-5.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pganalyze/libpg_query") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0wk39vx3pbq19s89qh5k4a45hdnpm6c476sbq4w0g430ly6313sz")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (add-before 'build 'set-additional-paths + (lambda* (#:key inputs #:allow-other-keys) + (setenv "CC" "gcc") + (substitute* "Makefile" + (("prefix = /usr/local") + (string-append "prefix=" + (assoc-ref %outputs "out"))))))))) + (inputs (list which gcc-toolchain)) + (home-page "https://github.com/pganalyze/libpg_query") + (synopsis + "C library for accessing the PostgreSQL parser outside of the server environment") + (description + "C library for accessing the PostgreSQL parser outside of the server. +This library uses the actual PostgreSQL server source to parse SQL queries + and return the internal PostgreSQL parse tree.") + (license license:bsd-3)))