From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter Oliver Newsgroups: gmane.emacs.devel Subject: Versioned Tree-sitter parser libraries Date: Sun, 16 Apr 2023 15:20:51 +0100 (BST) Message-ID: <462cd248-1269-ac55-bf94-f137b2c51697@mavit.org.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-1463811583-1053476025-1681654851=:3933" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27560"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 16 16:21:49 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1po3GH-00070t-Dk for ged-emacs-devel@m.gmane-mx.org; Sun, 16 Apr 2023 16:21:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1po3FV-0000C1-3G; Sun, 16 Apr 2023 10:21:01 -0400 Original-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 1po3FT-0000Bt-2j for emacs-devel@gnu.org; Sun, 16 Apr 2023 10:20:59 -0400 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1po3FR-00032f-D6 for emacs-devel@gnu.org; Sun, 16 Apr 2023 10:20:58 -0400 Original-Received: by mail-wm1-x336.google.com with SMTP id eo6-20020a05600c82c600b003ee5157346cso14145851wmb.1 for ; Sun, 16 Apr 2023 07:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; t=1681654854; x=1684246854; h=mime-version:message-id:subject:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=XqXOQW4Z1pv9k9NFJIQuQzuXGjpExiSus7OrI/BQqXc=; b=AKe+OkB1MB1zWABpLcCB3Dth/+L1TdbLB5GSC90+nFH7vEEaGc9bEm3VFtfPCobWnq HTHbhINnbH2a72/2JSUqcdcp6rqAGUsJCLdIQuEOfwrilLNUXHHkgNdqp0wkWnDovkPB 5/xyrag5JJpLGJUb2Zq+lrubhYk1ozjL0pJBU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681654854; x=1684246854; h=mime-version:message-id:subject:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XqXOQW4Z1pv9k9NFJIQuQzuXGjpExiSus7OrI/BQqXc=; b=aOHJV8ovDoTu1z6u3qzSVbUCYuvCZU+0BTeCGfC+D8+JHvYiDKWDUc+wjGwvkTvHtN NCmyYsgDCWO7nDzDpxPDLq+xbxjSIgQ6ECAD3YbHMxttGx9ZT51JQ7eQ1HpEe9V1PgMY Uz9N41bca7+Or0JoWIdXGiKtdm9+zceeZttUjyxPqIou7cmyHbDvjSzLI43ls0MTDGL5 owyzlrKGS6j45FQ5JwKc8dECCIaM8pZWfSFgFpBAbAqOTxTxfKQw1vSIpYomyK91gUzf LWs0u5GM9z5uVuiahEGo2I/ukfpBXBUTn5XqZiC1S076DizQUY7H6jV/eRiY7EwSN7PX Z8fg== X-Gm-Message-State: AAQBX9exUX3/nRTVkRZjrvfpPP+VOsLYKynPS7kw9sJZOW0wXPnf3W8A PgrBtHGeRZiUcDCUBeiB94inoLUuh7woRIi/L0U= X-Google-Smtp-Source: AKy350b79Xh3SHI4RDrGFQ7uWgtUhC2Gljl2EXWV0suN63A9V5dhjkYKVklBnb5QE+YUST5mVRvBBw== X-Received: by 2002:a05:600c:205a:b0:3f1:6fef:9862 with SMTP id p26-20020a05600c205a00b003f16fef9862mr1989947wmg.13.1681654853695; Sun, 16 Apr 2023 07:20:53 -0700 (PDT) Original-Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165814-cust1925.vm31.cable.virginm.net. [82.34.135.134]) by smtp.gmail.com with ESMTPSA id z16-20020a5d4c90000000b002c7163660a9sm8147419wrs.105.2023.04.16.07.20.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Apr 2023 07:20:53 -0700 (PDT) Original-Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.17.1/8.17.1) with ESMTPS id 33GEKpQr049698 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Sun, 16 Apr 2023 15:20:51 +0100 Original-Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.17.1/8.17.1/Submit) with ESMTP id 33GEKpo8049695 for ; Sun, 16 Apr 2023 15:20:51 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=p.d.oliver@mavit.org.uk; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305343 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811583-1053476025-1681654851=:3933 Content-Type: text/plain; format=flowed; charset=UTF-8 Content-Transfer-Encoding: 8BIT A number of Tree-sitter parsers include a Makefile that will install, e.g., /usr/lib/libtree-sitter-json.so.0.0. However, I notice that Emacs 29.0.90 will find it only if there exists a symlink /usr/lib/libtree-sitter-json.so. Is this desirable? The background to this question is that I’m thinking about packaging Tree-sitter parsers as RPMs for Fedora (https://pagure.io/tree-sitter-json/blob/rawhide/f/tree-sitter-json.spec). Typical Fedora practice (https://docs.fedoraproject.org/en-US/packaging-guidelines/#_devel_packages) is to assume that the unversioned symlink isn’t required for regular use, and to place it in a …-devel subpackage that wouldn’t usually be installed. -- Peter Oliver ---1463811583-1053476025-1681654851=:3933--