From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id IEKbJXV112XFdQAAqHPOHw:P1 (envelope-from ) for ; Thu, 22 Feb 2024 17:25:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id IEKbJXV112XFdQAAqHPOHw (envelope-from ) for ; Thu, 22 Feb 2024 17:25:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=RahNI3yE; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708619032; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KQcb3qk9yyHSGEZsj9x1VeSjLLDsZ/vcXdrJlhZ/OYM=; b=PUh0zk5RWSp8EZKJUKHU17+AC+dy+0zF63pJ83g3oHob3KqUTjXwdKgU2gUvIpCaAixITR zxn/gcN/evgwhMW4E5AQCnwS/RKXHGISZw72G4D3308wg5aXk2ZXpl2Taad2DOHzI74QY9 NSYaBV7o+/Pu3FmoZ2oxmASrlWQ5pjle1NzQmp/kRmjrDRxjJ7HSvIQrixvMD6DwQubLUD OUH/wehOFAZOUwqRAHOfpmvSqep3q9gLM6+Qpz67o1bDsS4SydgFnrMaw66W85P/axWNam YdWMT2gSE4oohuVMpZTqtegCy6nHTlq/LjNkLYyXEW/x6SraQEgRspqt/XqQMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=RahNI3yE; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708619032; a=rsa-sha256; cv=none; b=U0h5f18BPtHOv+EkQYyv2laQC2GIoucgR05vfjRFLYGpwNyOjamXhlVYp2tn8URH7zzQMo H6KkDTRcBEGdqS8O0SHfVEFr8Y3/eQzPyxM2MCd+ap674VLAYXJCSuyeNEAzplAMtIiy9f rpr3asy72Y2BJHeA81m8NV4D/b2iibVNa5BTuKinOX/AXvC1CNc3w8lj0FzigP29SJtYDP foj9yX4/8roJA/Fz81XEq7MaymHBUad8p2HszToLJora3awMh7uQaduWYXr2f0UMGF4xq0 nKxVYVshOEoVauK1nR3peKzdbhvylR1Tmzev3u32K/OEBqJ70poLGjwHUb5t8A== 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 8B0AB262B3 for ; Thu, 22 Feb 2024 17:23:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdBrK-0000XG-VN; Thu, 22 Feb 2024 11:23:42 -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 1rdBrI-0000Wv-QS for guix-patches@gnu.org; Thu, 22 Feb 2024 11:23:40 -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 1rdBrH-0006XP-Eo for guix-patches@gnu.org; Thu, 22 Feb 2024 11:23:39 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rdBre-0003uM-CB for guix-patches@gnu.org; Thu, 22 Feb 2024 11:24:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68813] [core-updates PATCH 02/20] gnu: Add lutok. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 22 Feb 2024 16:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68813 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68813@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 68813-submit@debbugs.gnu.org id=B68813.170861898514866 (code B ref 68813); Thu, 22 Feb 2024 16:24:02 +0000 Received: (at 68813) by debbugs.gnu.org; 22 Feb 2024 16:23:05 +0000 Received: from localhost ([127.0.0.1]:39147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdBqi-0003rg-Qv for submit@debbugs.gnu.org; Thu, 22 Feb 2024 11:23:05 -0500 Received: from mail-pg1-f170.google.com ([209.85.215.170]:46200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdBqd-0003qp-Dq for 68813@debbugs.gnu.org; Thu, 22 Feb 2024 11:23:03 -0500 Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-5cddfe0cb64so6121228a12.0 for <68813@debbugs.gnu.org>; Thu, 22 Feb 2024 08:22:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708618890; x=1709223690; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KQcb3qk9yyHSGEZsj9x1VeSjLLDsZ/vcXdrJlhZ/OYM=; b=RahNI3yEHQCNb8syr5oBTUtZgvynWxGd6pt+Hvp29PbZgOuLZrdfizpjL2/cB/OJWl ZTBxObyl/ejGXvJmqK1nV7KvQvR0OQ7LU7MCNmNMAGZQJLVl9bufXi640T137i6WerND MgIrwrNwvc4oXC28XFhnb5rMV8/+Y46PabzA8th0gL2VrSMcrVNOoilWbZEptxIIKaZE imcpkMgl4HcAs5wm663h5bVfJWX6A33NAMGG6lqKspJT36V3pCboaSNtmz/ibiFAWmv8 JzWj0ZjHD98r8cfpGpmQysn0UB7OQPZM9nrMBAob2PIuWsGuyQJ8AQ1OpPGVooDqLZkH XggQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708618890; x=1709223690; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KQcb3qk9yyHSGEZsj9x1VeSjLLDsZ/vcXdrJlhZ/OYM=; b=OAzxnCPSDjbGosuin5fDhWflTCczOyjs4c0HnIWhyJt+9ofeI4xzBujaw14eCcE+fZ jim384/+WHBoQDHdwkZzw1Gb/9SqocY0bOo2llTZUtmADecdPRGY0Lbpj6mnqFwxQcQp b+E5SCbDZVpDIpsZ/5V09E6+uoIKCB/Y5X4P98DcHOsjJy1mNNzEMP+8o6TLA7EXcBmo Tt+gTdGhaGM0htLNBvVgTCRbA8f1WxjylJ9BQfkX44p1QhmaP/vNYP6nzwbCZtc5+qjs 3ilTWnbJJ0UHD3s3e5RjZitgeL4IVbfUuahSB7jVXN3e5r32vjDuYB5fs97Ei1cqr8cq cyiA== X-Gm-Message-State: AOJu0YzGKIaoHQTmX9a9yVmijMA+8GPnUa/zbjbkfr61gnbAzyRmBePj fcmNPhFxIXs8yqLBpHQbODdT1vB8S/mhkUK3TXccGDbIftlATEGmcqfDz26d X-Google-Smtp-Source: AGHT+IG/oTvPuhu4XPybs9WisX10r6RV/e0VRiJ1/N2Lq2R5VnTA4b/zd6wQATw94Bv1pu9uIai0Aw== X-Received: by 2002:a05:6214:da1:b0:68f:5dca:4889 with SMTP id h1-20020a0562140da100b0068f5dca4889mr17689516qvh.15.1708618475306; Thu, 22 Feb 2024 08:14:35 -0800 (PST) Received: from localhost.localdomain (dsl-155-144.b2b2c.ca. [66.158.155.144]) by smtp.gmail.com with ESMTPSA id od5-20020a0562142f0500b0068fa74cfa79sm2078437qvb.117.2024.02.22.08.14.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 08:14:35 -0800 (PST) From: Maxim Cournoyer Date: Thu, 22 Feb 2024 11:10:01 -0500 Message-ID: <87acb345dd391c487368583bd6fa2a47cefb40df.1708618218.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: 2.73 X-Spam-Score: 2.73 X-Migadu-Queue-Id: 8B0AB262B3 X-TUID: 5PJ9uaFnSMtT * gnu/packages/lua.scm (lutok): New variable. Change-Id: I595b26c601c8ca8c997c86e8f8eb17fbe363a038 --- gnu/packages/lua.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 1cde6bd66c..07c803d27e 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2022 Leo Nikkilä ;;; Copyright © 2023 Yovan Naumovski ;;; Copyright © 2023 Valter Nazianzeno +;;; Copyright © 2024 Maxim Cournoyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -48,9 +49,11 @@ (define-module (gnu packages lua) #:use-module (guix build-system meson) #:use-module (guix build-system trivial) #:use-module (gnu packages) + #:use-module (gnu packages autotools) #:use-module (gnu packages bash) #:use-module (gnu packages boost) #:use-module (gnu packages build-tools) + #:use-module (gnu packages check) #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages gperf) @@ -898,6 +901,44 @@ (define-public lua5.2-bitop (define-public lua5.1-bitop (make-lua-bitop "lua5.1-bitop" lua-5.1)) +(define-public lutok + (package + (name "lutok") + (version "0.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/freebsd/lutok") + (commit (string-append name "-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0a2vc2wy5hasw69h1mz768ywx6c4ccl9jzzd4ixddwba3z3ha03b")))) + (build-system gnu-build-system) + ;; Disable the test suite to avoid a circular dependency on kyua. + (arguments (list #:tests? #f)) + (native-inputs (list autoconf automake libtool pkg-config)) + (inputs (list atf)) + (propagated-inputs (list lua-5.2)) ;included in c_gate.hpp + (home-page "https://github.com/freebsd/lutok") + (synopsis "Lightweight C++ API for Lua") + (description "Lutok is a lightweight C++ API library for Lua. + +Lutok provides thin C++ wrappers around the Lua C API to ease the interaction +between C++ and Lua. These wrappers make intensive use of @acronym{RAII, +Resource Acquisition is Initialization} to prevent resource leakage, expose +C++-friendly data types, report errors by means of exceptions and ensure that +the Lua stack is always left untouched in the face of errors. The library +also provides a small subset of miscellaneous utility functions built on top +of the wrappers. + +Lutok focuses on providing a clean and safe C++ interface; the drawback is +that it is not suitable for performance-critical environments. In order to +implement error-safe C++ wrappers on top of a Lua C binary library, Lutok adds +several layers or abstraction and error checking that go against the original +spirit of the Lua C API and thus degrade performance.") + (license license:bsd-3))) + (define-public selene (package (name "selene") -- 2.41.0