From patchwork Wed Jun 23 12:38:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 30639 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 EAC0A27BC81; Wed, 23 Jun 2021 13:41:52 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6C7CC27BC78 for ; Wed, 23 Jun 2021 13:41:52 +0100 (BST) Received: from localhost ([::1]:51010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lw2CU-0000iL-AN for patchwork@mira.cbaines.net; Wed, 23 Jun 2021 08:41:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lw2Ak-0007jD-O6 for guix-patches@gnu.org; Wed, 23 Jun 2021 08:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lw2Ak-0002NZ-GU for guix-patches@gnu.org; Wed, 23 Jun 2021 08:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lw2Ak-0004VV-Ev for guix-patches@gnu.org; Wed, 23 Jun 2021 08:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49152] [PATCH]: gnu: Add cl-posix-mqueue Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 23 Jun 2021 12:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49152 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Guillaume Le Vaillant Cc: 49152@debbugs.gnu.org Received: via spool by 49152-submit@debbugs.gnu.org id=B49152.162445194317253 (code B ref 49152); Wed, 23 Jun 2021 12:40:02 +0000 Received: (at 49152) by debbugs.gnu.org; 23 Jun 2021 12:39:03 +0000 Received: from localhost ([127.0.0.1]:40507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw29n-0004U9-0p for submit@debbugs.gnu.org; Wed, 23 Jun 2021 08:39:03 -0400 Received: from mail-wm1-f51.google.com ([209.85.128.51]:53084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw29l-0004Tc-Jc for 49152@debbugs.gnu.org; Wed, 23 Jun 2021 08:39:02 -0400 Received: by mail-wm1-f51.google.com with SMTP id n23so1540991wms.2 for <49152@debbugs.gnu.org>; Wed, 23 Jun 2021 05:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BBfakiRXB269de8E037guRWdUlvqRL5eyAhN/+jPb58=; b=ODz95aP9TmonBJ+8A2LYLeQe3UR78mNLjlFzdZ4dw+faOb1AmTyxub9rWkVJxA64mC zHMtiv2jXo57DQA9HSpE3OBlicibR/bwiHpMSw1LHX0Nf4PGRB6xV/S5UNcPOJkPbFea ptjgcSHXFIW04FxGGcoyj+jkhIqz0CBN1afiY5ZCqrnCeEzzVWmgQg+/5mt6deQMXCxm HKuBpMFtfTgSyCEE76qevW1GRLGCdV2Qox2QFmXw632n6Ux66nNN4qg5Cy+sfJZCq1PZ lC6b7OjM7Qai2GoBd20nJHU9kuo1qkBB39uxqGFmyWdkmQgZ+oQJ6rSsJflFQB1855FE CttA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BBfakiRXB269de8E037guRWdUlvqRL5eyAhN/+jPb58=; b=r2VVyraC0N2/61/xRME8mUVv5Uk5haPty7m/M9QB5dVpjcRzuv1Mt1rD84GCkPkDQg CNwr2EGTNrK3ce8LPBAsqQFKeTCNJs1fJZuh2C158JpIHORdHyGSigcGbLreQa+JJ8w1 Y3pWf22LOvko4FvpGSXftXvhm8tTYeyzd6r6KI+vidrg+BYCsqxpgI+nAVbmH+GIgHAS Us7w3KJsLPNZ69iU7sVUgKkjpzvU1gQPyyoFAsDryjO2zESRoIiuuUfe2raVxQEOfeYK 3JzIurFeAKM1Gpd3vJykKOAq+88Zkf8/t5L9s/7L6jQCIXf211D176FXgKIDrl4gOM5N 2OcA== X-Gm-Message-State: AOAM531nRvr6trpQppWQbpsgF4bRCa9ASGs6RIb4inaNIPaxbvZan6bu FUlTcLGY4VmXcFwYyByS43GXaB8xU4Tid8Ep+nM= X-Google-Smtp-Source: ABdhPJzXBI2z5uVAYmZLIgV7bh0j/fz/T6HqciqZIe0ICsE+sQFvvqvW5z4qmVl9NJ1yhdVbJdm6xdOrfFMbqTuvW9M= X-Received: by 2002:a7b:c0d6:: with SMTP id s22mr4668578wmh.52.1624451935764; Wed, 23 Jun 2021 05:38:55 -0700 (PDT) MIME-Version: 1.0 References: <87o8bydj3d.fsf@kitej> In-Reply-To: <87o8bydj3d.fsf@kitej> From: Sharlatan Hellseher Date: Wed, 23 Jun 2021 12:38:44 +0000 Message-ID: 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" X-getmail-retrieved-from-mailbox: Patches Hi Guillaume, When I add glibc to inputs I've got a lot of warning about collision for each components of it such as: warning: collision encountered: /gnu/store/ksy2b6fwfmz40gjajvspl87ia4vsfzj7-glibc-2.31/lib/libresolv.so.2 /gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib/libresolv.so.2 warning: choosing /gnu/store/ksy2b6fwfmz40gjajvspl87ia4vsfzj7-glibc-2.31/lib/libresolv.so.2 But package is built and worked eventually in the end. On Tue, 22 Jun 2021 at 15:17, Guillaume Le Vaillant wrote: > > I noticed that your patch doesn't substitute the full path of the librt > library (in 'src/spec.lisp'). I suppose it should work anyway because > librt comes with the glibc package which is probably always available in > some way, but I think it would be better to use the full path for > consistency. > > Also, cl-ppcre should be a native input for the tests according to > 'cl-posix-mqueue-tests.asd'. > > Could you send an updated patch? --- … наш разум - превосходная объяснительная машина которая способна найти смысл почти в чем угодно, истолковать любой феномен, но совершенно не в состоянии принять мысль о непредсказуемости. From 35a1b7c9e0af4fef25686cdb8b379462456ca532 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 23 Jun 2021 13:34:55 +0100 Subject: [PATCH] gnu: Add cl-posix-mqueue * gnu/packages/lisp-xyx: (sbcl-cl-posix-mqueue, ecl-cl-posix-mqueue, cl-posix-mqueue): New variables --- gnu/packages/lisp-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index f2fe9c93d1..204a470df0 100644 --- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -17695,3 +17695,51 @@ computing and event based message handling.") (define-public cl-gserver (sbcl-package->cl-source-package sbcl-cl-gserver)) + +(define-public sbcl-cl-posix-mqueue + (let ((commit "8977370c7206d1f62bd1be80f4254af40654b83f") + (revision "1")) + (package + (name "sbcl-cl-posix-mqueue") + (version (git-version "0.1.2" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xFA25E/cl-posix-mqueue") + (commit commit))) + (file-name (git-file-name "cl-posix-mqueue" version)) + (sha256 + (base32 "04519rg8vc782z097dzlb8nx0skab2fy2zd0m60r6mz2nw8xdvh6")))) + (build-system asdf-build-system/sbcl) + (arguments + `(#:test-asd-file "cl-posix-mqueue-tests.asd" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-librt-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/spec.lisp" + (("librt.so" all) + (string-append (assoc-ref inputs "glibc") "/lib/" all)))))))) + (native-inputs + `(("rove" ,sbcl-rove) + ("cl-ppcre" ,sbcl-cl-ppcre))) + (inputs + `(("alexandira" ,sbcl-alexandria) + ("babel" ,sbcl-babel) + ("cffi" ,sbcl-cffi) + ("glibc" ,glibc) + ("local-time" ,sbcl-local-time))) + (home-page "https://github.com/xFA25E/cl-posix-mqueue") + (synopsis "Common Lisp binding to POSIX mqueue") + (description + "This package provides a Common Lisp bindings to POSIX message queue - an +IPC (Inter-Process Communication) method that is easy to use and quick to +setup.") + (license license:gpl3+)))) + +(define-public ecl-cl-posix-mqueue + (sbcl-package->ecl-package sbcl-cl-posix-mqueue)) + +(define-public cl-posix-mqueue + (sbcl-package->cl-source-package sbcl-cl-posix-mqueue)) -- 2.32.0