From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sMEgHZmWcWdHBwAA62LTzQ:P1 (envelope-from ) for ; Sun, 29 Dec 2024 18:36:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sMEgHZmWcWdHBwAA62LTzQ (envelope-from ) for ; Sun, 29 Dec 2024 19:36:09 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Im8Rq54T; dkim=fail ("headers rsa verify failed") header.d=whispers-vpn.org header.s=protonmail header.b=UQ2S1iFZ; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735497369; h=from:from:sender:sender:reply-to: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=FL9IyvSZsXVrJ1ZN4hHu+tZTusf8B9p9hHdldEO5QWo=; b=n3bbJSUV/3b/gp38QLm+lrg5rDaU3m1nF2KHpt15fgrjcOh6qEfJ+PAAvNFhadap27ncYh S+S0gMVG5/0WqvbvhEPO0B7hCphqiJ5x/T1HCl0OxPd8/gXsYBy0un33lacHh/H07KLC1y kKa2EhFI8wYYF1/Y1g64YOHVOP5j/H+tTdTCEnqQ6qt7TF8QW3tf5p/21oSwPoU6cpbjyd dDJPJyu4256ZqyzgM1dfsb4U/kr0ggc1g798gE0PqesBKd5VHYPNL9XbBp50fhvxyyAFSH wrk+oAIRy2i+t1xKTk3VzryetdWBgp4kXchEyYSxBgVzvllMz1yH5H6ezO3JPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Im8Rq54T; dkim=fail ("headers rsa verify failed") header.d=whispers-vpn.org header.s=protonmail header.b=UQ2S1iFZ; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735497369; a=rsa-sha256; cv=none; b=tsmtCCWkh9dpStoou08Hksld5R+qwpm8HoTNvwqVMKtNxRDsgdHT2Jioui8Y1MILtO1kPk eGhddNCwmBhpSeP+N89gYn6Mzj0+HnfdOkS4WqwqzvNWHIn1x8vuncMRz7hfOvsOF7ib14 GQr/XEMrnLQrf9+YXUNinVCC/2SYlyIWN0i9756nSVbilM53XxGkIGuVM71ankoSAOa9aa kpA7uokbdLAw6ed3RcuWVas5k7aratZbrezILnnYhb7q8Np1WcNdeFo4LuEa5SLXNwCdgz YC6Z/CH6BvsxK2J43GD8vPSPMtRYFcEbg4OA+HBIGUtUab/jmRmyq5DHorLNmA== 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 01EEE62386 for ; Sun, 29 Dec 2024 19:36:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRy8y-0006nH-U7; Sun, 29 Dec 2024 13:36:04 -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 1tRy8w-0006n6-6P for guix-patches@gnu.org; Sun, 29 Dec 2024 13:36:02 -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 1tRy8v-0005K9-Tu for guix-patches@gnu.org; Sun, 29 Dec 2024 13:36:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:From:Date:To:In-Reply-To:References:Subject; bh=FL9IyvSZsXVrJ1ZN4hHu+tZTusf8B9p9hHdldEO5QWo=; b=Im8Rq54T1SOArkKTZDHVIftKEVCcQK1GJ/TSf1pT0r83NseEDABTJsAt1JmX7jvWBz02xTe/ID+fooVvwhYmY40wD9yGxsH9OMglRQzm1XrYld6Dh36tkDKsbaJ7dZevzVE/9xbux9UUGS/Le4L5ZIV00vRk+T8VHV/w2Zr0VQF8aTPseTe70NCuzTzHJmqJDpWxt5Jv3dvm/iCvYrDN8b597A/M5/lyLu9aQ8Qs3c0cFW809FxC6jAdoZ94Kx4L0T3nGtPLrCLfJ1WGfrI9dbDAXfM8QgUDAFYCULzuOvREvBu/Y/xwIcvsPGNZyGH+QUW4/ag9e4hOu7z6FShsqg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRy8v-0006f1-Nz for guix-patches@gnu.org; Sun, 29 Dec 2024 13:36:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75063] [PATCH 1/2] gnu: dict: Add symbols to help users configure FreeDict with dicod. References: In-Reply-To: Resent-From: Runciter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Dec 2024 18:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75063 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 75063@debbugs.gnu.org Received: via spool by 75063-submit@debbugs.gnu.org id=B75063.173549733325561 (code B ref 75063); Sun, 29 Dec 2024 18:36:01 +0000 Received: (at 75063) by debbugs.gnu.org; 29 Dec 2024 18:35:33 +0000 Received: from localhost ([127.0.0.1]:56140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRy8S-0006eC-Id for submit@debbugs.gnu.org; Sun, 29 Dec 2024 13:35:32 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]:58633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRy8Q-0006dw-Bn for 75063@debbugs.gnu.org; Sun, 29 Dec 2024 13:35:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whispers-vpn.org; s=protonmail; t=1735497323; x=1735756523; bh=FL9IyvSZsXVrJ1ZN4hHu+tZTusf8B9p9hHdldEO5QWo=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=UQ2S1iFZ/r+e7b52FbsBbAVSOnnUF5bGaFvejsJ1Tuc9TpxnCd2oqiNq2DIYE8Lm6 1JnGAckSNxF0reAq1S8ib+udzeG2k8xkQf9MNNio19HxkxAl/xc14XEs9qxKZ+oibC OSi7sfB5AjgXQFjkXiIDSEdxfiJm9VrlPIPZWoX1LQhjh+AqjW2kmBIHPwbtOdL5/D J5sonEX1mLfp4vLiVWbv0R9Csw/v5UC7fYKoRzX7vUQLF2+9mp2oR7NWsK3FFE19PQ dxuw4kpyQ3/kOK7i0ep27rhwqTFcnwxbH4Hchd4ecl8Sdijy5Ia+4gh7rGRq5fUUty f+KRm5zojQRaQ== Date: Sun, 29 Dec 2024 18:35:19 +0000 Message-ID: <87o70u5odd.fsf@whispers-vpn.org> Feedback-ID: 119317227:user:proton X-Pm-Message-ID: b59bae0b98913a02fbfa6ab41bc084f39bb138c4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Reply-to: Runciter X-ACL-Warn: , Runciter via Guix-patches From: Runciter via Guix-patches via 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: mx12.migadu.com X-Migadu-Spam-Score: -0.50 X-Spam-Score: -0.50 X-Migadu-Queue-Id: 01EEE62386 X-TUID: VXS7EgBaGYsr Hello Ludo, I tested your config in a VM and it's not as bad as I thought. There's a little problem though, which is one of those I anticipated: the `load-module` statement of dicod.conf is uselessly repeated for each non-complex dictorg database configured by the Guix service. I have copied the dicod.conf that your configuration creates at the bottom of this message. You can see the duplicates statements, 4 in your case because you configured 4 non-complex dictorg dictionaries. I'm going to go for symbols which create non-complex databases, like your config. It's probably not going to be very easy to see if the duplicate module loading in dicod causes a performance hit when one uses a large number of dictorg databases, or all of them... Therefore, in the info manual, I'm also going to change the configuration example into one where only a handful of databases are registered into the service, as opposed to all of them in my initial patch. I'll send a revised patch later this week. If that is deemed to be required, in order to fix the duplicate module loading of dicod, one could always change the Scheme in the `dicod-configuration-file` procedure. Runciter =3D=3D BELOW THE dicod.conf CREATED WITH 4 NON-COMPLEX DICTORG DATABASES: = =3D=3D listen (localhost); load-module gcide; database { name "gcide"; handler "gcide dbdir=3D/gnu/store/wsxc3jg8m2fi7qhlr2rrv4ik9vqhv6bp-gcide= -0.53/share/gcide idxdir=3D/gnu/store/jflf8h70g61fsc4xgclasghjsmwqsa5c-dico= d-gcide-index"; } load-module dictorg; database { name "freedict"; handler "dictorg database=3D/gnu/store/nld9vc9f9jgk3x4hawjlnnzw8vzvavz2-= freedict-dictionaries-0.0.0-0.914b5f7/share/dictd/fra-eng"; } load-module dictorg; database { name "freedict"; handler "dictorg database=3D/gnu/store/nld9vc9f9jgk3x4hawjlnnzw8vzvavz2-= freedict-dictionaries-0.0.0-0.914b5f7/share/dictd/eng-fra"; } load-module dictorg; database { name "freedict"; handler "dictorg database=3D/gnu/store/nld9vc9f9jgk3x4hawjlnnzw8vzvavz2-= freedict-dictionaries-0.0.0-0.914b5f7/share/dictd/eng-spa"; } load-module dictorg; database { name "freedict"; handler "dictorg database=3D/gnu/store/nld9vc9f9jgk3x4hawjlnnzw8vzvavz2-= freedict-dictionaries-0.0.0-0.914b5f7/share/dictd/spa-eng"; }