From unknown Fri Jun 20 19:52:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41363] knot-resolver: Enable reloading of policy files (add lua-cqueues) Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 May 2020 15:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41363 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 41363@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158973056120731 (code B ref -1); Sun, 17 May 2020 15:50:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 May 2020 15:49:21 +0000 Received: from localhost ([127.0.0.1]:44353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLXV-0005OJ-4n for submit@debbugs.gnu.org; Sun, 17 May 2020 11:49:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:33502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaKYM-0003kC-Hp for submit@debbugs.gnu.org; Sun, 17 May 2020 10:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaKYM-0003gb-A0 for guix-patches@gnu.org; Sun, 17 May 2020 10:46:10 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:49564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaKYK-0005Xu-RN for guix-patches@gnu.org; Sun, 17 May 2020 10:46:10 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 413A2A0364 for ; Sun, 17 May 2020 14:46:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZdyfWjHuJUZO for ; Sun, 17 May 2020 14:46:06 +0000 (UTC) Received: from mercury.simonsouth.net (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 02DAFA033B for ; Sun, 17 May 2020 14:46:05 +0000 (UTC) From: Simon South Date: Sun, 17 May 2020 10:46:05 -0400 Message-ID: <878shqtyaa.fsf@mercury.simonsouth.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.68.200.34; envelope-from=simon@simonsouth.net; helo=mailout.easymail.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/17 10:46:06 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sun, 17 May 2020 11:49:20 -0400 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: -2.3 (--) This patch series enables the automatic reloading of response-policy zone (RPZ) files by Knot Resolver. Specifically these patches - Add package definitions for the cqueues Lua extension module and the luaossl module on which it relies, and - Add lua5.1-cqueues as an input to knot-resolver. With these changes applied, Knot Resolver can be configured with lines like modules = { 'policy' } policy.add(policy.rpz(policy.DENY, '/etc/dns/blacklist.txt', true)) and it will automatically reload RPZ rules from /etc/dns/blacklist.txt whenever that file changes. This makes it easy to use Knot Resolver to block unwanted sites using a list of domains downloaded periodically from the Internet. I've tested these changes on x86-64 and aarch64. On x86-64 everything works as expected. On aarch64, the packages build and install fine but Knot Resolver fails to load the configuration above with policy.lua:430: [poli] lua-cqueues required to watch and reload RPZ file This is due to a known issue with LuaJIT on aarch64 (see e.g. https://github.com/LuaJIT/LuaJIT/pull/230): $ ./pre-inst-env guix environment knot-resolver --ad-hoc knot-resolver $ $(head -n 3 `which kresd` | tail -n 2) # set LUA_PATH, LUA_CPATH $ luajit -e 'require("cqueues")' luajit: bad light userdata pointer stack traceback: [C]: at 0xffffa556a960 [C]: in function 'require' ... $ Otherwise (i.e. after changing "true" to "false" in the configuration above) Knot Resolver continues to work as it did before, so I expect existing users will not be affected. I'll work on diagnosing the upstream bug but thought I'd submit these patches in the meantime. -- Simon South simon@simonsouth.net From unknown Fri Jun 20 19:52:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41363] [PATCH 1/3] gnu: Add lua-ossl. References: <878shqtyaa.fsf@mercury.simonsouth.net> In-Reply-To: <878shqtyaa.fsf@mercury.simonsouth.net> Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 May 2020 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41363 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 41363@debbugs.gnu.org Received: via spool by 41363-submit@debbugs.gnu.org id=B41363.158973180023225 (code B ref 41363); Sun, 17 May 2020 16:10:02 +0000 Received: (at 41363) by debbugs.gnu.org; 17 May 2020 16:10:00 +0000 Received: from localhost ([127.0.0.1]:44426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLrU-00062V-Fs for submit@debbugs.gnu.org; Sun, 17 May 2020 12:10:00 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:48866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLrS-000628-KW for 41363@debbugs.gnu.org; Sun, 17 May 2020 12:09:59 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 1AD2E211FF for <41363@debbugs.gnu.org>; Sun, 17 May 2020 16:09:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo06-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u0x4u2l3Yfx8 for <41363@debbugs.gnu.org>; Sun, 17 May 2020 16:09:52 +0000 (UTC) Received: from mercury.simonsouth.net (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id AD250211FB for <41363@debbugs.gnu.org>; Sun, 17 May 2020 16:09:52 +0000 (UTC) From: Simon South Date: Sun, 17 May 2020 12:09:38 -0400 Message-Id: <20200517160940.5132-1-simon@simonsouth.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: -3.3 (---) * gnu/packages/lua.scm (make-lua-ossl): New function. (lua-ossl, lua5.1-ossl, lua5.2-ossl): New variables. --- gnu/packages/lua.scm | 63 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 181ce76559..147ed8d9f7 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice ;;; Copyright © 2018 Fis Trivial ;;; Copyright © 2020 Nicolas Goaziou +;;; Copyright © 2020 Simon South ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,6 +39,7 @@ #:use-module (guix build-system trivial) #:use-module (gnu packages) #:use-module (gnu packages readline) + #:use-module (gnu packages m4) #:use-module (gnu packages tls) #:use-module (gnu packages xml) #:use-module (gnu packages glib) @@ -292,6 +294,67 @@ directory structure and file attributes.") (define-public lua5.2-filesystem (make-lua-filesystem "lua5.2-filesystem" lua-5.2)) +(define (make-lua-ossl name lua) + (package + (name name) + (version "20170903") + (source (origin + (method url-fetch) + (uri (string-append "https://25thandclement.com/~william/" + "projects/releases/luaossl-" version ".tgz")) + (sha256 + (base32 + "10392bvd0lzyibipblgiss09zlqh3a5zgqg1b9lgbybpqb9cv2k3")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (let ((out (assoc-ref %outputs "out")) + (lua-api-version ,(version-major+minor (package-version lua)))) + (list "CC=gcc" + "CFLAGS='-D HAVE_SYS_SYSCTL_H=0'" ; sys/sysctl.h is deprecated + (string-append "DESTDIR=" out) + (string-append "LUA_APIS=" lua-api-version) + "prefix=")) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (add-after 'install 'check + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (lua-version ,(version-major+minor (package-version lua)))) + (setenv "LUA_CPATH" + (string-append out "/lib/lua/" lua-version "/?.so;;")) + (setenv "LUA_PATH" + (string-append out "/share/lua/" lua-version "/?.lua;;")) + (with-directory-excursion "regress" + (for-each (lambda (f) + (invoke "lua" f)) + (find-files "." "^[0-9].*\\.lua$")))) + #t))))) + (native-inputs + `(("m4", m4))) + (inputs + `(("lua" ,lua) + ("openssl" ,openssl))) + (home-page "https://25thandclement.com/~william/projects/luaossl.html") + (synopsis "OpenSSL bindings for Lua") + (description "The luaossl extension module for Lua provides comprehensive, +low-level bindings to the OpenSSL library, including support for certificate and +key management, key generation, signature verification, and deep bindings to the +distinguished name, alternative name, and X.509v3 extension interfaces. It also +binds OpenSSL's bignum, message digest, HMAC, cipher, and CSPRNG interfaces.") + (license license:expat))) + +(define-public lua-ossl + (make-lua-ossl "lua-ossl" lua)) + +(define-public lua5.1-ossl + (make-lua-ossl "lua5.1-ossl" lua-5.1)) + +(define-public lua5.2-ossl + (make-lua-ossl "lua5.2-ossl" lua-5.2)) + (define (make-lua-sec name lua) (package (name name) -- 2.26.2 From unknown Fri Jun 20 19:52:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41363] [PATCH 2/3] gnu: Add lua-cqueues. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 May 2020 16:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41363 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 41363@debbugs.gnu.org Received: via spool by 41363-submit@debbugs.gnu.org id=B41363.158973180223238 (code B ref 41363); Sun, 17 May 2020 16:10:03 +0000 Received: (at 41363) by debbugs.gnu.org; 17 May 2020 16:10:02 +0000 Received: from localhost ([127.0.0.1]:44428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLrU-00062X-S8 for submit@debbugs.gnu.org; Sun, 17 May 2020 12:10:01 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:48880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLrT-00062B-Kh for 41363@debbugs.gnu.org; Sun, 17 May 2020 12:10:00 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 87A6E21218 for <41363@debbugs.gnu.org>; Sun, 17 May 2020 16:09:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo06-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Iv3Zefq-ThAe for <41363@debbugs.gnu.org>; Sun, 17 May 2020 16:09:54 +0000 (UTC) Received: from mercury.simonsouth.net (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 40D49211FB for <41363@debbugs.gnu.org>; Sun, 17 May 2020 16:09:52 +0000 (UTC) From: Simon South Date: Sun, 17 May 2020 12:09:39 -0400 Message-Id: <20200517160940.5132-2-simon@simonsouth.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200517160940.5132-1-simon@simonsouth.net> References: <20200517160940.5132-1-simon@simonsouth.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: -3.3 (---) * gnu/packages/lua.scm (make-lua-cqueues): New function. (lua-cqueues, lua5.1-cqueues, lua5.2-cqueues): New variables. --- gnu/packages/lua.scm | 106 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 147ed8d9f7..958b317d62 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -403,6 +403,112 @@ secure session between the peers.") (define-public lua5.2-sec (make-lua-sec "lua5.2-sec" lua-5.2)) +(define (make-lua-cqueues name lua lua-ossl) + (package + (name name) + (version "20171014") + (source (origin + (method url-fetch) + (uri (string-append "https://25thandclement.com/~william/" + "projects/releases/cqueues-" version ".tgz")) + (sha256 + (base32 + "1dabhpn6r0hlln8vx9hxm34pfcm46qzgpb2apmziwg5z51fi4ksb")))) + (build-system gnu-build-system) + (arguments + `(#:modules ((guix build gnu-build-system) + (guix build utils) + (ice-9 string-fun)) + #:make-flags + (let ((out (assoc-ref %outputs "out")) + (lua-api-version ,(version-major+minor (package-version lua)))) + (list "CC=gcc" + (string-append "LUA_APIS=" lua-api-version))) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (replace 'install + (lambda* (#:key make-flags outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (apply invoke "make" "install" + (append make-flags + (list (string-append "DESTDIR=" out) + "prefix=")))))) + (add-after 'install 'check + (lambda* (#:key inputs outputs make-flags #:allow-other-keys) + (let* + ((lua-version ,(version-major+minor (package-version lua))) + (env-suffix (if (equal? lua-version "5.1") + "" + (string-append + "_" + (string-replace-substring lua-version "." "_")))) + + (lua-ossl (assoc-ref inputs "lua-ossl")) + (out (assoc-ref outputs "out")) + + (lua-cpath (lambda (p) + (string-append p "/lib/lua/" lua-version "/?.so"))) + (lua-path (lambda (p) + (string-append p "/share/lua/" lua-version "/?.lua")))) + ;; The test suite sets Lua-version-specific search-path variables + ;; when available so we must do the same, as these take + ;; precedence over the generic "LUA_CPATH" and "LUA_PATH" + (setenv (string-append "LUA_CPATH" env-suffix) + (string-append + (string-join (map lua-cpath (list out lua-ossl)) ";") + ";;")) + (setenv (string-append "LUA_PATH" env-suffix) + (string-append + (string-join (map lua-path (list out lua-ossl)) ";") + ";;")) + + ;; Skip regression tests we expect to fail + (with-directory-excursion "regress" + (for-each (lambda (f) + (rename-file f (string-append f ".skip"))) + (append + ;; Regression tests that require network + ;; connectivity + '("22-client-dtls.lua" + "30-starttls-completion.lua" + "62-noname.lua" + "153-dns-resolvers.lua") + + ;; Regression tests that require LuaJIT + '("44-resolvers-gc.lua" + "51-join-defunct-thread.lua") + + ;; Regression tests that require Lua 5.3 + (if (not (equal? lua-version "5.3")) + '("152-thread-integer-passing.lua") + '())))) + + (apply invoke "make" "check" make-flags))))))) + (native-inputs + `(("m4" ,m4))) + (inputs + `(("lua" ,lua) + ("openssl" ,openssl))) + (propagated-inputs + `(("lua-ossl" ,lua-ossl))) + (home-page "https://25thandclement.com/~william/projects/cqueues.html") + (synopsis "Event loop for Lua using continuation queues") + (description "The cqueues extension module for Lua implements an event loop +that operates through the yielding and resumption of coroutines. It is designed +to be non-intrusive, composable, and embeddable within existing applications.") + (license license:expat))) + +(define-public lua-cqueues + (make-lua-cqueues "lua-cqueues" lua lua-ossl)) + +(define-public lua5.1-cqueues + (make-lua-cqueues "lua5.1-cqueues" lua-5.1 lua5.1-ossl)) + +(define-public lua5.2-cqueues + (make-lua-cqueues "lua5.2-cqueues" lua-5.2 lua5.2-ossl)) + (define-public lua-penlight (package (name "lua-penlight") -- 2.26.2 From unknown Fri Jun 20 19:52:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41363] [PATCH 3/3] gnu: knot-resolver: Enable automatic reloading of policy files. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 May 2020 16:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41363 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 41363@debbugs.gnu.org Received: via spool by 41363-submit@debbugs.gnu.org id=B41363.158973180723290 (code B ref 41363); Sun, 17 May 2020 16:11:02 +0000 Received: (at 41363) by debbugs.gnu.org; 17 May 2020 16:10:07 +0000 Received: from localhost ([127.0.0.1]:44433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLra-00063a-Pu for submit@debbugs.gnu.org; Sun, 17 May 2020 12:10:07 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:48896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLrV-00062E-I3 for 41363@debbugs.gnu.org; Sun, 17 May 2020 12:10:01 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 74F14212E4 for <41363@debbugs.gnu.org>; Sun, 17 May 2020 16:09:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo06-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qPR-JXAidmqP for <41363@debbugs.gnu.org>; Sun, 17 May 2020 16:09:56 +0000 (UTC) Received: from mercury.simonsouth.net (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 3CB60211FB for <41363@debbugs.gnu.org>; Sun, 17 May 2020 16:09:54 +0000 (UTC) From: Simon South Date: Sun, 17 May 2020 12:09:40 -0400 Message-Id: <20200517160940.5132-3-simon@simonsouth.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200517160940.5132-1-simon@simonsouth.net> References: <20200517160940.5132-1-simon@simonsouth.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: -3.3 (---) * gnu/packages/dns.scm (knot-resolver)[inputs]: Add lua5.1-cqueues. --- gnu/packages/dns.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 469ef7605d..fdf9ed9dea 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -723,8 +723,9 @@ synthesis, and on-the-fly re-configuration.") ("libuv" ,libuv) ("lmdb" ,lmdb) ("luajit" ,luajit) - ;; TODO: Add optional lua modules: basexx, cqueues and psl. + ;; TODO: Add optional lua modules: basexx and psl. ("lua-bitop" ,lua5.1-bitop) + ("lua-cqueues" ,lua5.1-cqueues) ("lua-filesystem" ,lua5.1-filesystem) ("lua-sec" ,lua5.1-sec) ("lua-socket" ,lua5.1-socket))) -- 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Sun May 17 12:59:02 2020 Received: (at control) by debbugs.gnu.org; 17 May 2020 16:59:02 +0000 Received: from localhost ([127.0.0.1]:44506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMcv-0002IU-Up for submit@debbugs.gnu.org; Sun, 17 May 2020 12:59:02 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:50096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMcu-0002I0-B8 for control@debbugs.gnu.org; Sun, 17 May 2020 12:59:00 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 1BBE6A0F7A for ; Sun, 17 May 2020 16:58:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VGIlphNBi2xm for ; Sun, 17 May 2020 16:58:55 +0000 (UTC) Received: from mercury.simonsouth.net (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id E4DF7A0F2A for ; Sun, 17 May 2020 16:58:54 +0000 (UTC) From: Simon South To: control@debbugs.gnu.org Date: Sun, 17 May 2020 12:58:54 -0400 Message-ID: <87y2pqsdkh.fsf@mercury.simonsouth.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: control 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.3 (-) tags 41363 + patch thank you From unknown Fri Jun 20 19:52:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41363] [PATCH 1/3] gnu: Add lua-ossl. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 May 2020 12:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41363 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41363@debbugs.gnu.org Received: via spool by 41363-submit@debbugs.gnu.org id=B41363.15898051472427 (code B ref 41363); Mon, 18 May 2020 12:33:02 +0000 Received: (at 41363) by debbugs.gnu.org; 18 May 2020 12:32:27 +0000 Received: from localhost ([127.0.0.1]:46193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaewU-0000d5-QT for submit@debbugs.gnu.org; Mon, 18 May 2020 08:32:27 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:52236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaewS-0000cn-Q1 for 41363@debbugs.gnu.org; Mon, 18 May 2020 08:32:25 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 3608CBFA79 for <41363@debbugs.gnu.org>; Mon, 18 May 2020 12:32:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo04-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo04-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N8pmp2OiGiEj for <41363@debbugs.gnu.org>; Mon, 18 May 2020 12:32:18 +0000 (UTC) Received: from mercury.simonsouth.net (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id D0E79BFA6C for <41363@debbugs.gnu.org>; Mon, 18 May 2020 12:32:17 +0000 (UTC) From: Simon South References: <878shqtyaa.fsf@mercury.simonsouth.net> <20200517160940.5132-1-simon@simonsouth.net> Date: Mon, 18 May 2020 08:32:17 -0400 In-Reply-To: <20200517160940.5132-1-simon@simonsouth.net> (Simon South's message of "Sun, 17 May 2020 12:09:38 -0400") Message-ID: <87367xifu6.fsf@mercury.simonsouth.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) 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: -3.3 (---) --=-=-= Content-Type: text/plain luaossl doesn't actually require M4 to build, unlike cqueues. Here's a replacement patch that omits M4 from the package inputs. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-lua-ossl.patch Content-Transfer-Encoding: quoted-printable Content-Description: [PATCH 1/3] gnu: Add lua-ossl. >From 610918a771b84a081af24940ae94d35b1af7511e Mon Sep 17 00:00:00 2001 From: Simon South Date: Fri, 15 May 2020 11:18:44 -0400 Subject: [PATCH 1/3] gnu: Add lua-ossl. To: 41363@debbugs.gnu.org * gnu/packages/lua.scm (make-lua-ossl): New function. (lua-ossl, lua5.1-ossl, lua5.2-ossl): New variables. --- gnu/packages/lua.scm | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 181ce76559..defb7b68e6 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -11,6 +11,7 @@ ;;; Copyright =C2=A9 2018, 2019 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2018 Fis Trivial ;;; Copyright =C2=A9 2020 Nicolas Goaziou +;;; Copyright =C2=A9 2020 Simon South ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,6 +39,7 @@ #:use-module (guix build-system trivial) #:use-module (gnu packages) #:use-module (gnu packages readline) + #:use-module (gnu packages m4) #:use-module (gnu packages tls) #:use-module (gnu packages xml) #:use-module (gnu packages glib) @@ -292,6 +294,65 @@ directory structure and file attributes.") (define-public lua5.2-filesystem (make-lua-filesystem "lua5.2-filesystem" lua-5.2)) =20 +(define (make-lua-ossl name lua) + (package + (name name) + (version "20170903") + (source (origin + (method url-fetch) + (uri (string-append "https://25thandclement.com/~william/" + "projects/releases/luaossl-" version ".t= gz")) + (sha256 + (base32 + "10392bvd0lzyibipblgiss09zlqh3a5zgqg1b9lgbybpqb9cv2k3")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (let ((out (assoc-ref %outputs "out")) + (lua-api-version ,(version-major+minor (package-version lua))= )) + (list "CC=3Dgcc" + "CFLAGS=3D'-D HAVE_SYS_SYSCTL_H=3D0'" ; sys/sysctl.h is dep= recated + (string-append "DESTDIR=3D" out) + (string-append "LUA_APIS=3D" lua-api-version) + "prefix=3D")) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (add-after 'install 'check + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (lua-version ,(version-major+minor (package-version lua= )))) + (setenv "LUA_CPATH" + (string-append out "/lib/lua/" lua-version "/?.so;;= ")) + (setenv "LUA_PATH" + (string-append out "/share/lua/" lua-version "/?.lu= a;;")) + (with-directory-excursion "regress" + (for-each (lambda (f) + (invoke "lua" f)) + (find-files "." "^[0-9].*\\.lua$")))) + #t))))) + (inputs + `(("lua" ,lua) + ("openssl" ,openssl))) + (home-page "https://25thandclement.com/~william/projects/luaossl.html") + (synopsis "OpenSSL bindings for Lua") + (description "The luaossl extension module for Lua provides comprehens= ive, +low-level bindings to the OpenSSL library, including support for certifica= te and +key management, key generation, signature verification, and deep bindings = to the +distinguished name, alternative name, and X.509v3 extension interfaces. I= t also +binds OpenSSL's bignum, message digest, HMAC, cipher, and CSPRNG interface= s.") + (license license:expat))) + +(define-public lua-ossl + (make-lua-ossl "lua-ossl" lua)) + +(define-public lua5.1-ossl + (make-lua-ossl "lua5.1-ossl" lua-5.1)) + +(define-public lua5.2-ossl + (make-lua-ossl "lua5.2-ossl" lua-5.2)) + (define (make-lua-sec name lua) (package (name name) --=20 2.26.2 --=-=-=-- From unknown Fri Jun 20 19:52:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41363] knot-resolver: Enable reloading of policy files (add lua-cqueues) Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 May 2020 10:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41363 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41363@debbugs.gnu.org Received: via spool by 41363-submit@debbugs.gnu.org id=B41363.15898840328470 (code B ref 41363); Tue, 19 May 2020 10:28:02 +0000 Received: (at 41363) by debbugs.gnu.org; 19 May 2020 10:27:12 +0000 Received: from localhost ([127.0.0.1]:49329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jazSp-0002CX-QO for submit@debbugs.gnu.org; Tue, 19 May 2020 06:27:12 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:49310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jazSn-0002CI-Ki for 41363@debbugs.gnu.org; Tue, 19 May 2020 06:27:09 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 26E19BFDC3 for <41363@debbugs.gnu.org>; Tue, 19 May 2020 10:27:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo04-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo04-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8OJZKjOBOQKp for <41363@debbugs.gnu.org>; Tue, 19 May 2020 10:27:03 +0000 (UTC) Received: from laptop (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id D93FEBFB98 for <41363@debbugs.gnu.org>; Tue, 19 May 2020 10:27:03 +0000 (UTC) From: Simon South References: <878shqtyaa.fsf@mercury.simonsouth.net> Date: Tue, 19 May 2020 06:25:49 -0400 In-Reply-To: <878shqtyaa.fsf@mercury.simonsouth.net> (Simon South's message of "Sun, 17 May 2020 10:46:05 -0400") Message-ID: <87d070kyqa.fsf@simonsouth.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) 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: -3.3 (---) Simon South writes: > This is due to a known issue with LuaJIT on aarch64... Just realized the URIs I used for cqueues and luaossl are out-of-date and this issue has been addressed in newer releases (https://github.com/wahern/cqueues/pull/225). I'll send updated patches shortly. -- Simon South simon@simonsouth.net From unknown Fri Jun 20 19:52:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41363] knot-resolver: Enable reloading of policy files (add lua-cqueues) References: <878shqtyaa.fsf@mercury.simonsouth.net> In-Reply-To: <878shqtyaa.fsf@mercury.simonsouth.net> Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 May 2020 19:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41363 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41363@debbugs.gnu.org Received: via spool by 41363-submit@debbugs.gnu.org id=B41363.159078097219327 (code B ref 41363); Fri, 29 May 2020 19:37:02 +0000 Received: (at 41363) by debbugs.gnu.org; 29 May 2020 19:36:12 +0000 Received: from localhost ([127.0.0.1]:56263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeknb-00051f-Lr for submit@debbugs.gnu.org; Fri, 29 May 2020 15:36:12 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:32792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeknZ-00051T-LS for 41363@debbugs.gnu.org; Fri, 29 May 2020 15:36:10 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id D210521279 for <41363@debbugs.gnu.org>; Fri, 29 May 2020 19:36:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo06-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rwmsEwWwuLHX for <41363@debbugs.gnu.org>; Fri, 29 May 2020 19:36:02 +0000 (UTC) Received: from mercury.simonsouth.net (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 2F3AA22BE6 for <41363@debbugs.gnu.org>; Fri, 29 May 2020 19:36:01 +0000 (UTC) From: Simon South Date: Fri, 29 May 2020 15:36:01 -0400 Message-ID: <87v9keleji.fsf@mercury.simonsouth.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) 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: -3.3 (---) --=-=-= Content-Type: text/plain I'm posting updated patches here as a work-in-progress, in case anyone else is interested. The patches are not yet ready to be applied. The package definitions are pretty much complete (I believe), however the regression tests for luajit-cqueues are failing for me on both aarch64 and x86_64. On aarch64, the test for issue #71 (only) fails with 71-empty-cqueue: ....... 71-empty-cqueue: testing issue 71A 71-empty-cqueue: 71A OK 71-empty-cqueue: testing 71B 71-empty-cqueue: setting alert on inner loop 71-empty-cqueue: stepping inner loop 71-empty-cqueue: polling inner loop 71-empty-cqueue: stepping inner loop 71-empty-cqueue: timeout before inner loop test completed This test, along with the rest of the suite, passes fine if the stock Lua 5.1 interpreter is used instead, which suggests a possible regression in LuaJIT. (Building LuaJIT from the latest revision in its source repository leads to the same error.) On x86_64, that test passes but a different one fails: 141-segfault-on-accept: OK PANIC: unprotected error in call to Lua API (attempt to call a thread value) I've written to the authors of cqueues regarding the first issue but have not received a response. I may try following up with LuaJIT's author as a next step; a bit of analysis might reveal why these tests are failing but my interest here is in getting a DNS server up and running, not in learning Lua or diving into the internals of a compiler. Perhaps someone more familiar with these libraries, language and tools could help? -- Simon South ssouth@simonsouth.net --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-luajit-ossl.patch Content-Transfer-Encoding: quoted-printable >From d648ce07cd4828b4f2a848464a31efd76f00cb7c Mon Sep 17 00:00:00 2001 From: Simon South Date: Fri, 15 May 2020 11:18:44 -0400 Subject: [PATCH 1/3] gnu: Add luajit-ossl. * gnu/packages/lua.scm (make-lua-ossl): New function. (luajit-ossl): New variable. --- gnu/packages/lua.scm | 82 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index 181ce76559..ab86e24bb9 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -11,6 +11,7 @@ ;;; Copyright =C2=A9 2018, 2019 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2018 Fis Trivial ;;; Copyright =C2=A9 2020 Nicolas Goaziou +;;; Copyright =C2=A9 2020 Simon South ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,6 +39,7 @@ #:use-module (guix build-system trivial) #:use-module (gnu packages) #:use-module (gnu packages readline) + #:use-module (gnu packages m4) #:use-module (gnu packages tls) #:use-module (gnu packages xml) #:use-module (gnu packages glib) @@ -292,6 +294,86 @@ directory structure and file attributes.") (define-public lua5.2-filesystem (make-lua-filesystem "lua5.2-filesystem" lua-5.2)) =20 +(define (make-lua-ossl name lua) + (package + (name name) + (version "20190731") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wahern/luaossl.git") + (commit (string-append "rel-" version)))) + (sha256 + (base32 + "03xmhy90qrby8pbwqdwy2xa7bk5jbpfzzrmpj83klzw7zkyf2k96")))) + (build-system gnu-build-system) + (arguments + `(#:modules ((guix build gnu-build-system) + (guix build utils) + (ice-9 popen) + (ice-9 rdelim)) + #:make-flags + (let ((out (assoc-ref %outputs "out")) + (lua-api-version ,(if (eq? lua luajit) + "5.1" + (version-major+minor + (package-version lua))))) + (list "CC=3Dgcc" + "CFLAGS=3D'-D HAVE_SYS_SYSCTL_H=3D0'" ; sys/sysctl.h is dep= recated + (string-append "DESTDIR=3D" out) + (string-append "LUA_APIS=3D" lua-api-version) + "prefix=3D")) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (add-after 'install 'check + (lambda* (#:key outputs #:allow-other-keys) + (let* ((lua-api-version ,(if (eq? lua luajit) + "5.1" + (version-major+minor + (package-version lua)))) + (lua-cpath (lambda (p) + (string-append p "/lib/lua/" lua-api-vers= ion + "/?.so"))) + (lua-path (lambda (p) + (string-append p "/share/lua/" lua-api-ver= sion + "/?.lua"))) + (lua-interp (begin + (setenv "CC" "gcc") + (read-line + (open-pipe* OPEN_READ "mk/luapath" "lua= ")))) + (out (assoc-ref outputs "out"))) + (setenv "LUA_CPATH" (string-append (lua-cpath out) ";;")) + (setenv "LUA_PATH" (string-append (lua-path out) ";;")) + + (with-directory-excursion "regress" + (for-each (lambda (f) + (invoke lua-interp f)) + (filter + ;; Omit a test that requires lua-cqueues, as t= hat + ;; requires this package also + (lambda (f) + (not (equal? f "./148-custom-extensions.lua"= ))) + (find-files "." "^[0-9].*\\.lua$"))))) + #t))))) + (inputs + `(("lua" ,lua) + ;; TODO: Support interpreters other than LuaJIT using luaffifb or a + ;; similar FFI-compatibility module + ("openssl" ,openssl))) + (home-page "https://25thandclement.com/~william/projects/luaossl.html") + (synopsis "OpenSSL bindings for Lua") + (description "The luaossl extension module for Lua provides comprehens= ive, +low-level bindings to the OpenSSL library, including support for certifica= te and +key management, key generation, signature verification, and deep bindings = to the +distinguished name, alternative name, and X.509v3 extension interfaces. I= t also +binds OpenSSL's bignum, message digest, HMAC, cipher, and CSPRNG interface= s.") + (license license:expat))) + +(define-public luajit-ossl + (make-lua-ossl "luajit-ossl" luajit)) + (define (make-lua-sec name lua) (package (name name) --=20 2.26.2 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-gnu-Add-lua-cqueues.patch >From 0cf2c3b798071048d70c39d9f6697e8137e24251 Mon Sep 17 00:00:00 2001 From: Simon South Date: Fri, 15 May 2020 18:18:51 -0400 Subject: [PATCH 2/3] gnu: Add lua-cqueues. * gnu/packages/lua.scm (make-lua-cqueues): New function. (luajit-cqueues): New variable. --- gnu/packages/lua.scm | 106 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/gnu/packages/lua.scm b/gnu/packages/lua.scm index ab86e24bb9..dd14f7dd43 100644 --- a/gnu/packages/lua.scm +++ b/gnu/packages/lua.scm @@ -422,6 +422,112 @@ secure session between the peers.") (define-public lua5.2-sec (make-lua-sec "lua5.2-sec" lua-5.2)) +(define (make-lua-cqueues name lua lua-ossl) + (package + (name name) + (version "20190813") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wahern/cqueues.git") + (commit (string-append "rel-" version)))) + (sha256 + (base32 + "0yin39cldhc1l6rr33nj2z8la6rvv0c70g47rkvjb7s0wy760ggz")))) + (build-system gnu-build-system) + (arguments + `(#:modules ((guix build gnu-build-system) + (guix build utils) + (ice-9 string-fun)) + #:make-flags + (let ((lua-api-version ,(if (eq? lua luajit) + "5.1" + (version-major+minor (package-version lua))))) + (list "CC=gcc" + (string-append "LUA_APIS=" lua-api-version))) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (replace 'install + (lambda* (#:key make-flags outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (apply invoke "make" "install" + (append make-flags + (list (string-append "DESTDIR=" out) + "prefix=")))))) + (add-after 'install 'check + (lambda* (#:key inputs make-flags outputs #:allow-other-keys) + (let* ((lua-api-version ,(if (eq? lua luajit) + "5.1" + (version-major+minor + (package-version lua)))) + (lua-cpath (lambda (p) + (string-append p "/lib/lua/" lua-api-version + "/?.so"))) + (lua-path (lambda (p) + (string-append p "/share/lua/" lua-api-version + "/?.lua"))) + (env-suffix (if (equal? lua-api-version "5.1") + "" + (string-append + "_" + (string-replace-substring lua-api-version + "." "_")))) + (lua-ossl (assoc-ref inputs "lua-ossl")) + (out (assoc-ref outputs "out"))) + ;; The test suite sets Lua-version-specific search-path variables + ;; when available so we must do the same, as these take + ;; precedence over the generic "LUA_CPATH" and "LUA_PATH" + (setenv (string-append "LUA_CPATH" env-suffix) + (string-append + (string-join (map lua-cpath (list out lua-ossl)) ";") + ";;")) + (setenv (string-append "LUA_PATH" env-suffix) + (string-append + (string-join (map lua-path (list out lua-ossl)) ";") + ";;")) + + ;; Skip regression tests we expect to fail + (with-directory-excursion "regress" + (for-each (lambda (f) + (rename-file f (string-append f ".skip"))) + (append + ;; Tests that require network connectivity + '("22-client-dtls.lua" + "30-starttls-completion.lua" + "62-noname.lua" + "153-dns-resolvers.lua") + + ;; Tests that require LuaJIT + (if ,(not (eq? lua luajit)) + '("44-resolvers-gc.lua" + "51-join-defunct-thread.lua") + '()) + + ;; Tests that require Lua 5.3 + (if (not (equal? lua-api-version "5.3")) + '("152-thread-integer-passing.lua") + '())))) + + (apply invoke "make" "check" make-flags))))))) + (native-inputs + `(("m4" ,m4))) + (inputs + `(("lua" ,lua) + ("openssl" ,openssl))) + (propagated-inputs + `(("lua-ossl" ,lua-ossl))) + (home-page "https://25thandclement.com/~william/projects/cqueues.html") + (synopsis "Event loop for Lua using continuation queues") + (description "The cqueues extension module for Lua implements an event loop +that operates through the yielding and resumption of coroutines. It is designed +to be non-intrusive, composable, and embeddable within existing applications.") + (license license:expat))) + +(define-public luajit-cqueues + (make-lua-cqueues "luajit-cqueues" luajit luajit-ossl)) + (define-public lua-penlight (package (name "lua-penlight") -- 2.26.2 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0003-gnu-knot-resolver-Enable-automatic-reloading-of-poli.patch >From c8b4d696c96a3dc81e84aa05a24220cbadf90809 Mon Sep 17 00:00:00 2001 From: Simon South Date: Sat, 16 May 2020 14:35:27 -0400 Subject: [PATCH 3/3] gnu: knot-resolver: Enable automatic reloading of policy files. * gnu/packages/dns.scm (knot-resolver)[inputs]: Add lua5.1-cqueues. --- gnu/packages/dns.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 7ff0501ab2..dea24cf7c9 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -723,8 +723,9 @@ synthesis, and on-the-fly re-configuration.") ("libuv" ,libuv) ("lmdb" ,lmdb) ("luajit" ,luajit) - ;; TODO: Add optional lua modules: basexx, cqueues and psl. + ;; TODO: Add optional lua modules: basexx and psl. ("lua-bitop" ,lua5.1-bitop) + ("lua-cqueues" ,lua5.1-cqueues) ("lua-filesystem" ,lua5.1-filesystem) ("lua-sec" ,lua5.1-sec) ("lua-socket" ,lua5.1-socket))) -- 2.26.2 --=-=-=-- From unknown Fri Jun 20 19:52:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41363] knot-resolver: Enable reloading of policy files (add lua-cqueues) Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 17 Jun 2020 10:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41363 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon South Cc: 41363@debbugs.gnu.org, Julien Lepiller Received: via spool by 41363-submit@debbugs.gnu.org id=B41363.159238816225310 (code B ref 41363); Wed, 17 Jun 2020 10:03:01 +0000 Received: (at 41363) by debbugs.gnu.org; 17 Jun 2020 10:02:42 +0000 Received: from localhost ([127.0.0.1]:50396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlUu2-0006aA-F6 for submit@debbugs.gnu.org; Wed, 17 Jun 2020 06:02:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jlUu0-0006Zx-D0 for 41363@debbugs.gnu.org; Wed, 17 Jun 2020 06:02:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42782) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jlUtu-0002wl-So; Wed, 17 Jun 2020 06:02:34 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=40570 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jlUtu-0001Zt-GL; Wed, 17 Jun 2020 06:02:34 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <878shqtyaa.fsf@mercury.simonsouth.net> Date: Wed, 17 Jun 2020 12:02:33 +0200 In-Reply-To: <878shqtyaa.fsf@mercury.simonsouth.net> (Simon South's message of "Sun, 17 May 2020 10:46:05 -0400") Message-ID: <875zbqrow6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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: -3.3 (---) Hi, Julien, could you take a look at this patch series? I figured you probably know Knot better than I do. https://issues.guix.gnu.org/41363 Thanks in advance, Ludo=E2=80=99. Simon South skribis: > This patch series enables the automatic reloading of response-policy > zone (RPZ) files by Knot Resolver. Specifically these patches > > - Add package definitions for the cqueues Lua extension module and the > luaossl module on which it relies, and > > - Add lua5.1-cqueues as an input to knot-resolver. > > With these changes applied, Knot Resolver can be configured with lines > like > > modules =3D { 'policy' } > policy.add(policy.rpz(policy.DENY, '/etc/dns/blacklist.txt', true)) > > and it will automatically reload RPZ rules from /etc/dns/blacklist.txt > whenever that file changes. This makes it easy to use Knot Resolver to > block unwanted sites using a list of domains downloaded periodically > from the Internet. > > I've tested these changes on x86-64 and aarch64. On x86-64 everything > works as expected. > > On aarch64, the packages build and install fine but Knot Resolver fails > to load the configuration above with > > policy.lua:430: [poli] lua-cqueues required to watch and reload RPZ f= ile > > This is due to a known issue with LuaJIT on aarch64 (see e.g. > https://github.com/LuaJIT/LuaJIT/pull/230): > > $ ./pre-inst-env guix environment knot-resolver --ad-hoc knot-resolver > $ $(head -n 3 `which kresd` | tail -n 2) # set LUA_PATH, LUA_CPATH > $ luajit -e 'require("cqueues")' > luajit: bad light userdata pointer > stack traceback: > [C]: at 0xffffa556a960 > [C]: in function 'require' > ... > $ > > Otherwise (i.e. after changing "true" to "false" in the configuration > above) Knot Resolver continues to work as it did before, so I expect > existing users will not be affected. > > I'll work on diagnosing the upstream bug but thought I'd submit these > patches in the meantime. > > -- > Simon South > simon@simonsouth.net From unknown Fri Jun 20 19:52:05 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Simon South Subject: bug#41363: closed (Re: [bug#41363] knot-resolver: Enable reloading of policy files (add lua-cqueues)) Message-ID: References: <87pn9nsaox.fsf@gnu.org> <878shqtyaa.fsf@mercury.simonsouth.net> X-Gnu-PR-Message: they-closed 41363 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 41363@debbugs.gnu.org Date: Thu, 25 Jun 2020 10:27:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1593080821-16906-1" This is a multi-part message in MIME format... ------------=_1593080821-16906-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #41363: knot-resolver: Enable reloading of policy files (add lua-cqueues) which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 41363@debbugs.gnu.org. --=20 41363: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41363 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1593080821-16906-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 41363-done) by debbugs.gnu.org; 25 Jun 2020 10:27:00 +0000 Received: from localhost ([127.0.0.1]:39745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joP5w-0004OT-78 for submit@debbugs.gnu.org; Thu, 25 Jun 2020 06:27:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joP5t-0004OC-LZ for 41363-done@debbugs.gnu.org; Thu, 25 Jun 2020 06:26:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37628) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joP5n-0007Gk-0V; Thu, 25 Jun 2020 06:26:51 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=34018 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1joP5c-0002Rb-Sg; Thu, 25 Jun 2020 06:26:46 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon South Subject: Re: [bug#41363] knot-resolver: Enable reloading of policy files (add lua-cqueues) References: <878shqtyaa.fsf@mercury.simonsouth.net> Date: Thu, 25 Jun 2020 12:26:38 +0200 In-Reply-To: <878shqtyaa.fsf@mercury.simonsouth.net> (Simon South's message of "Sun, 17 May 2020 10:46:05 -0400") Message-ID: <87pn9nsaox.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41363-done Cc: 41363-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: -3.3 (---) Hi Simon, Simon South skribis: > This patch series enables the automatic reloading of response-policy > zone (RPZ) files by Knot Resolver. Specifically these patches > > - Add package definitions for the cqueues Lua extension module and the > luaossl module on which it relies, and > > - Add lua5.1-cqueues as an input to knot-resolver. > > With these changes applied, Knot Resolver can be configured with lines > like > > modules =3D { 'policy' } > policy.add(policy.rpz(policy.DENY, '/etc/dns/blacklist.txt', true)) > > and it will automatically reload RPZ rules from /etc/dns/blacklist.txt > whenever that file changes. This makes it easy to use Knot Resolver to > block unwanted sites using a list of domains downloaded periodically > from the Internet. > > I've tested these changes on x86-64 and aarch64. On x86-64 everything > works as expected. I went ahead and applied this patch series (builds fine on x86_64). > On aarch64, the packages build and install fine but Knot Resolver fails > to load the configuration above with > > policy.lua:430: [poli] lua-cqueues required to watch and reload RPZ f= ile > > This is due to a known issue with LuaJIT on aarch64 (see e.g. > https://github.com/LuaJIT/LuaJIT/pull/230): > > $ ./pre-inst-env guix environment knot-resolver --ad-hoc knot-resolver > $ $(head -n 3 `which kresd` | tail -n 2) # set LUA_PATH, LUA_CPATH > $ luajit -e 'require("cqueues")' > luajit: bad light userdata pointer > stack traceback: > [C]: at 0xffffa556a960 > [C]: in function 'require' > ... > $ > > Otherwise (i.e. after changing "true" to "false" in the configuration > above) Knot Resolver continues to work as it did before, so I expect > existing users will not be affected. > > I'll work on diagnosing the upstream bug but thought I'd submit these > patches in the meantime. Should we disable the Lua dependency on AArch64? Thank you, and apologies for the delay! Ludo=E2=80=99. ------------=_1593080821-16906-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 May 2020 15:49:21 +0000 Received: from localhost ([127.0.0.1]:44353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLXV-0005OJ-4n for submit@debbugs.gnu.org; Sun, 17 May 2020 11:49:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:33502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaKYM-0003kC-Hp for submit@debbugs.gnu.org; Sun, 17 May 2020 10:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaKYM-0003gb-A0 for guix-patches@gnu.org; Sun, 17 May 2020 10:46:10 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:49564) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaKYK-0005Xu-RN for guix-patches@gnu.org; Sun, 17 May 2020 10:46:10 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 413A2A0364 for ; Sun, 17 May 2020 14:46:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZdyfWjHuJUZO for ; Sun, 17 May 2020 14:46:06 +0000 (UTC) Received: from mercury.simonsouth.net (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 02DAFA033B for ; Sun, 17 May 2020 14:46:05 +0000 (UTC) From: Simon South To: guix-patches@gnu.org Subject: knot-resolver: Enable reloading of policy files (add lua-cqueues) Date: Sun, 17 May 2020 10:46:05 -0400 Message-ID: <878shqtyaa.fsf@mercury.simonsouth.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.68.200.34; envelope-from=simon@simonsouth.net; helo=mailout.easymail.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/17 10:46:06 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 17 May 2020 11:49:20 -0400 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: -2.3 (--) This patch series enables the automatic reloading of response-policy zone (RPZ) files by Knot Resolver. Specifically these patches - Add package definitions for the cqueues Lua extension module and the luaossl module on which it relies, and - Add lua5.1-cqueues as an input to knot-resolver. With these changes applied, Knot Resolver can be configured with lines like modules = { 'policy' } policy.add(policy.rpz(policy.DENY, '/etc/dns/blacklist.txt', true)) and it will automatically reload RPZ rules from /etc/dns/blacklist.txt whenever that file changes. This makes it easy to use Knot Resolver to block unwanted sites using a list of domains downloaded periodically from the Internet. I've tested these changes on x86-64 and aarch64. On x86-64 everything works as expected. On aarch64, the packages build and install fine but Knot Resolver fails to load the configuration above with policy.lua:430: [poli] lua-cqueues required to watch and reload RPZ file This is due to a known issue with LuaJIT on aarch64 (see e.g. https://github.com/LuaJIT/LuaJIT/pull/230): $ ./pre-inst-env guix environment knot-resolver --ad-hoc knot-resolver $ $(head -n 3 `which kresd` | tail -n 2) # set LUA_PATH, LUA_CPATH $ luajit -e 'require("cqueues")' luajit: bad light userdata pointer stack traceback: [C]: at 0xffffa556a960 [C]: in function 'require' ... $ Otherwise (i.e. after changing "true" to "false" in the configuration above) Knot Resolver continues to work as it did before, so I expect existing users will not be affected. I'll work on diagnosing the upstream bug but thought I'd submit these patches in the meantime. -- Simon South simon@simonsouth.net ------------=_1593080821-16906-1-- From unknown Fri Jun 20 19:52:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41363] knot-resolver: Enable reloading of policy files (add lua-cqueues) Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jun 2020 14:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41363 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 41363-done@debbugs.gnu.org Received: via spool by 41363-done@debbugs.gnu.org id=D41363.159309472124193 (code D ref 41363); Thu, 25 Jun 2020 14:19:02 +0000 Received: (at 41363-done) by debbugs.gnu.org; 25 Jun 2020 14:18:41 +0000 Received: from localhost ([127.0.0.1]:40876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joSi8-0006I9-Rw for submit@debbugs.gnu.org; Thu, 25 Jun 2020 10:18:41 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:42796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joSi4-0006Hr-At for 41363-done@debbugs.gnu.org; Thu, 25 Jun 2020 10:18:39 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 29F93A0FA6; Thu, 25 Jun 2020 14:18:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id diBXJIPWEENr; Thu, 25 Jun 2020 14:18:31 +0000 (UTC) Received: from mars (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 758EFA0F63; Thu, 25 Jun 2020 14:18:29 +0000 (UTC) From: Simon South References: <878shqtyaa.fsf@mercury.simonsouth.net> <87pn9nsaox.fsf@gnu.org> Date: Thu, 25 Jun 2020 10:18:28 -0400 In-Reply-To: <87pn9nsaox.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 25 Jun 2020 12:26:38 +0200") Message-ID: <87zh8rcjpn.fsf@simonsouth.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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: -3.3 (---) Ludovic Court=C3=A8s writes: > Should we disable the Lua dependency on AArch64? I'd leave it as-is (despite the confusing error message), since you can work around the issue on AArch64 with a rebuilt kernel configured to use 39-bit virtual addresses rather than the default 48. Plus I'm most of the way towards updated patches that use more recent versions of cqueues and luaossl, which avoids the problem altogether. This is still on my to-do list though not a priority at the moment. --=20 Simon South simon@simonsouth.net From unknown Fri Jun 20 19:52:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#41363] knot-resolver: Enable reloading of policy files (add lua-cqueues) Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 25 Jun 2020 21:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41363 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon South Cc: 41363-done@debbugs.gnu.org Received: via spool by 41363-done@debbugs.gnu.org id=D41363.15931191838322 (code D ref 41363); Thu, 25 Jun 2020 21:07:01 +0000 Received: (at 41363-done) by debbugs.gnu.org; 25 Jun 2020 21:06:23 +0000 Received: from localhost ([127.0.0.1]:41339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joZ4h-0002AA-DP for submit@debbugs.gnu.org; Thu, 25 Jun 2020 17:06:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joZ4e-00029w-B9 for 41363-done@debbugs.gnu.org; Thu, 25 Jun 2020 17:06:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45164) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joZ4Y-00033W-QF; Thu, 25 Jun 2020 17:06:14 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59598 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1joZ4W-0005Z1-B2; Thu, 25 Jun 2020 17:06:14 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <878shqtyaa.fsf@mercury.simonsouth.net> <87pn9nsaox.fsf@gnu.org> <87zh8rcjpn.fsf@simonsouth.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 Messidor an 228 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 25 Jun 2020 23:06:10 +0200 In-Reply-To: <87zh8rcjpn.fsf@simonsouth.net> (Simon South's message of "Thu, 25 Jun 2020 10:18:28 -0400") Message-ID: <87lfkaq2il.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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: -3.3 (---) Simon South skribis: > Ludovic Court=C3=A8s writes: >> Should we disable the Lua dependency on AArch64? > > I'd leave it as-is (despite the confusing error message), since you can > work around the issue on AArch64 with a rebuilt kernel configured to use > 39-bit virtual addresses rather than the default 48. > > Plus I'm most of the way towards updated patches that use more recent > versions of cqueues and luaossl, which avoids the problem > altogether. This is still on my to-do list though not a priority at the > moment. OK, sounds good! Thanks, Ludo=E2=80=99.