From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id YK/bLRBr12Xq+gAAqHPOHw:P1 (envelope-from ) for ; Thu, 22 Feb 2024 16:41:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YK/bLRBr12Xq+gAAqHPOHw (envelope-from ) for ; Thu, 22 Feb 2024 16:41:04 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mccd.space header.s=fm3 header.b=smHM5GzJ; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=N0o1sVsl; 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=1708616464; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wnL9KmTvI4hwH1CJCygeXlbQIGSAO3ldGrQN315iA/k=; b=j8zIuJnKM7bArPifpBG7UVQzlkOqehkrx/hXOJCepsDWdaVokWrwzZHmeLiqE8Yuhoj7Ix XaPIotjIJtAXRgWMlOIiaf0CColyH/hGHmYliwXG3RDNCrK0vWDe/YNAb2r0AhyImZamWM joOkrpWPOBHA1H5SeK75WAGsCrmAj6+DlxGARmrUMQfCB/R8hL7wF6ef964agnWeWa5xAy eVieBGVzDgcBWohbDAJ/LYmdk3+aosmiYOINGvS2WR2CliklMTZiRqvVbct3GT7Oy+ebW9 XPvyxJR8dpJ9H2Op1KjheVkHEXhNQ/g/74+nQPwgkLrIUWroSgRBT0Ep95ZNSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mccd.space header.s=fm3 header.b=smHM5GzJ; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=N0o1sVsl; 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=1708616464; a=rsa-sha256; cv=none; b=dOpW7POTso9P1jFO0unRhO1oOFMOUMpJJMSuSMdnL48ut6ayQAY+/M3xACiTaEPqyURsZL iuNLNjdmBp13P1LHVEC/PVzYEIUgdZZ0ZtBNcG1ift33zWB/YMZAYENExqvf82JNKh6P7E JP+0Z/GxANmGHayALL6t/lRkWCvRbdI/m/YQDccTQE/DwhGPMN7FJflPSt2CzIoMZ5lM6i tqvkMd7ziIh4AkaClVq8p49e80nZJV0/9/J8j8Q07ovlHGABS/L48tU2vZrE2liRi+qclo lNQavcRza4qZRKwzEJm8fPFoiks09k0RkdHTze4WX4nDF+CQj1GLgjuTwwPvcw== 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 8285E6A610 for ; Thu, 22 Feb 2024 16:41:02 +0100 (CET) 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+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-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -2.71 X-Spam-Score: -2.71 X-Migadu-Queue-Id: 8285E6A610 X-TUID: zRTI6l/Sngtf * 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 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))) base-commit: fdbf4192f5eaa7fdb5e6e2e98ada0726c8104824 -- 2.43.2