From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70071: [FR] Provide official install scripts without requiring root, e.g., by making a static build possible Date: Sat, 30 Mar 2024 09:19:23 +0800 Message-ID: <87frw84iuc.fsf@yahoo.com> References: <86r0ftdv6p.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39094"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 70071@debbugs.gnu.org, Eli Zaretskii To: Rudi C Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 30 02:21:23 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 1rqNPP-000A0r-Lx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Mar 2024 02:21:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqNP6-0001k2-3H; Fri, 29 Mar 2024 21:21:04 -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 1rqNP2-0001jm-NY for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 21:21:01 -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 1rqNP2-0002iH-F7 for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 21:21:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqNP3-0007o3-MU for bug-gnu-emacs@gnu.org; Fri, 29 Mar 2024 21:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Mar 2024 01:21:01 +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.171176160329851 (code B ref 70071); Sat, 30 Mar 2024 01:21:01 +0000 Original-Received: (at 70071) by debbugs.gnu.org; 30 Mar 2024 01:20:03 +0000 Original-Received: from localhost ([127.0.0.1]:43662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqNO6-0007lP-Oj for submit@debbugs.gnu.org; Fri, 29 Mar 2024 21:20:03 -0400 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:45338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqNO4-0007kO-J7 for 70071@debbugs.gnu.org; Fri, 29 Mar 2024 21:20:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1711761593; bh=C6B3sm3ZPFElGyquLdVNMnz6R+XLOv9viFBcYYknlCU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=DGGnjaVbIoFtsxAcaLO0p8R/CyKKCKJK2LQ2yynTzAti9cncUygf4iRWYJsyQsOYZbRjgEA0NqHA3pcyioYSNOBu28E/l4yvTjZxphcYUmTZiLIkwgqo97EHb8uYhWpzRriwNd8RRKOVDpflut7Yum/ovWlr9hVXIUtqLJ+7H/EP7BXmlPRGZhkmNT7t1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gBuVb.yCIiT9LfuSjH6zUvYU3yGb10qDT R4t7GOZ1NwrOkzB.IBRCDe1twXUpIrEhq0xAOYfo9J6mW8.TvOdBSGKffhgoBlMMyrEaNSFE4HJ8 960eLFRZNgxGdzsJkqxaQhQ4uJ5.VV0SsJ9m2P_hnBLQRpxjRhFjX05KpjDQzSvT5lm0C1VCmNfO 98qiWWCvGgkUTmKIrvPwo9H_70xVONluwDohY2XEV5IsmOvMf.4TxcP8NPbVO9B4j30Hqe9bWgal 78kcWBczvhFxnM2KYaIy_4ngcy.yj9zyN4rpfTnKa3sn0k4EK2ke5q7u3MKPFWzIBO3f14bDKD5v 8HufoiClN07F9TMfND_wyuuAZtk0fvYkRunRw07AwcqD2Bas_Q0QVI0PlR8DAdeq8_lApCXBusgd NWUw..3rSFdkr.VUmwgxgiJhaXnN2TPCcPTBnZqh1T X-Sonic-MF: X-Sonic-ID: 03e73fab-a8b8-483c-814d-50da1dfbd247 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sat, 30 Mar 2024 01:19:53 +0000 Original-Received: by hermes--production-sg3-6dc75bc8fb-ddr5z (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 70c854b6efa0db333fd562b01763315d; Sat, 30 Mar 2024 01:19:49 +0000 (UTC) In-Reply-To: (Rudi C.'s message of "Fri, 29 Mar 2024 17:54:13 +0330") X-Mailer: WebService/1.1.22205 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:282319 Archived-At: Rudi C writes: > My primary concern with your approach is that it requires numerous > manual steps, each of which can introduce new points of failure. > Would it be possible for you to provide a single script that I can run > on Ubuntu (even on older versions with an outdated gcc, etc.) that > will build Emacs under my home directory (~/)? Emacs supports "older operating systems" with "outdated GCC" (back to 3.4.x) quite well, so I fail to see what the difficulty is with the following two-liner: ./configure --prefix=$HOME make -j `nproc` install which has been standard among autoconf-using programs since time immemorial, if not earlier. > While I don't claim to have a deep understanding of these terms, my > interpretation is that dynamic linking connects to the installed > system libraries, making the binary heavily reliant on the specific > conditions of its host operating system. This is not true or important, when two lines and a set of basic development packages available on any self-respecting GNU/Linux distribution should provide through their package repositories. > In contrast, a statically linked binary includes all of its > dependencies within itself, allowing a single binary for Linux x86 to > function on most other similar systems. A "portable" binary is one > that can be downloaded using wget and executed without relying on any > dependencies from the host operating system. Of course, no binary can > be completely portable, and portability exists on a spectrum. However, > some binaries are quite portable, such as those found at > https://github.com/Mozilla-Ocho/llamafile. Statically linking against libc.a is inherently unreliable, but programs dynamically linking against one specific version of the GNU C library, and more often than not, other C libraries, will function normally on systems with subsequent releases of the same. In any event, volunteers are welcome to provide such binary distributions of Emacs, but, Emacs being a portable program without numerous elusive dependencies or non-standard build systems, I very much doubt the game will be worth the candle.