From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70071: [FR] Provide official install scripts without requiring root, e.g., by making a static build possible Date: Sun, 31 Mar 2024 09:02:27 +0300 Message-ID: <86sf07aqh8.fsf@gnu.org> References: <86r0ftdv6p.fsf@gnu.org> <87frw84iuc.fsf@yahoo.com> <86jzljdf2f.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4041"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 70071@debbugs.gnu.org To: Rudi C Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 31 08:03:14 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1rqoHi-0000sU-Mn for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Mar 2024 08:03:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqoHV-0007rQ-ER; Sun, 31 Mar 2024 02:03: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 1rqoHU-0007rH-Cr for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 02:03:00 -0400 Original-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 1rqoHU-0003Bk-3u for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 02:03:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqoHW-0001M0-Dj for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 02:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Mar 2024 06:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70071 X-GNU-PR-Package: emacs Original-Received: via spool by 70071-submit@debbugs.gnu.org id=B70071.17118649615128 (code B ref 70071); Sun, 31 Mar 2024 06:03:02 +0000 Original-Received: (at 70071) by debbugs.gnu.org; 31 Mar 2024 06:02:41 +0000 Original-Received: from localhost ([127.0.0.1]:46471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqoHA-0001Kd-P1 for submit@debbugs.gnu.org; Sun, 31 Mar 2024 02:02:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqoH7-0001Ji-Nt for 70071@debbugs.gnu.org; Sun, 31 Mar 2024 02:02:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqoH0-00039I-0c; Sun, 31 Mar 2024 02:02:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=cPDRmTcBvNVwPOfsGvgYSJxB296EHeB1DNeV5yvnrfQ=; b=I4elZWE5DYmy XCtbBK9LNBuNFSf5GzY7BqDkSVL2C10UYFgOoWyUfXm7oMDyvBer3ZZYjhTJ8v7Uzc84t3kB8YsMT wfGRv+TpnBjzqEB6KXSVMNJZsrP9bvqFnFWGmDjdLKh/oD2KqCr6MrRR4/3kB6kE5unbvaWRxeW0p 57/jkROzYOPapynahhAU/tmr/TIr2ehtTZ5mssOfyhSSWAdIEtJATi7ISE7lU+OLVSl6MsQ9vt10i p+fxn8FVxETNTQDiTMGIHB+irw1zjsU9oMZhKs0X2buWVsesqvfWj4A4ZMLdQLW69fXbZ4XSj19g0 +95DR5bUJY/kAC51Wv6exQ==; In-Reply-To: (message from Rudi C on Sat, 30 Mar 2024 18:01:31 +0330) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282412 Archived-At: > From: Rudi C > Date: Sat, 30 Mar 2024 18:01:31 +0330 > Cc: luangruo@yahoo.com, 70071@debbugs.gnu.org > > Given my lack of root access, I'm unsure about the best approach to install these libraries. Manually writing an > installer script for every missing Emacs dependency raises concerns, as these dependencies might have > their own dependencies, making the task complex, error-prone, and time-consuming. This approach may not > be the most practical or efficient solution for the majority of users, and it certainly isn't the simple two-liner > that your previous messages suggested. The complexity involved in manually resolving dependencies is > precisely the reason I turned to package managers like Linuxbrew, Guix, and Nix in the first place. If those libraries are for some reason not installed on the system, and if the sysadmins cannot be asked to install them, then you will need to build and install them yourself, yes. What it takes is to configure each one of them with --prefix= pointing to some directory under your home directory, and then using the LIBS variable at configure time to tell the Emacs build procedure to search those directories for libraries. IOW, this is the same "simple two-liner" we showed in previous messages, just repeated for every library you needto install privately. And if the libraries aren't and cannot be installed system-widely, what else can be done about that? Of course, if package managers allow you to install precompiled binaries and their prerequisites in any directory you like, by all means use them. The Emacs project doesn't (and cannot) maintain those package managers, but they exist for these purposes, so using them when they solve your problems is indeed TRT.