From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: A general way to install all dependent libraries when compiling Emacs from its git master source code. Date: Sun, 22 Aug 2021 21:58:51 +0800 Message-ID: References: <87eealvce2.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14996"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 22 15:59:34 2021 Return-path: Envelope-to: geh-help-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 1mHo0c-0003eh-8q for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 22 Aug 2021 15:59:34 +0200 Original-Received: from localhost ([::1]:34252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHo0b-0000q7-CX for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 22 Aug 2021 09:59:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHo0B-0000pv-Cm for help-gnu-emacs@gnu.org; Sun, 22 Aug 2021 09:59:07 -0400 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:46740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHo09-00052v-2b for help-gnu-emacs@gnu.org; Sun, 22 Aug 2021 09:59:07 -0400 Original-Received: by mail-lf1-x129.google.com with SMTP id u22so31896799lfq.13 for ; Sun, 22 Aug 2021 06:59:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=m8eJpgxU0+FQRmosaRLyq/99P3hCIO27AFc+WfL410I=; b=dFcYAMQQ0z+QhyKXwt0feLOZI/UETRp5x+52Iczj82PSPHoBdPiMrOjGl6EIlOSXjV zL9iWKmACIFYCn9crshnTpn1meydyhUnAX1OhXJC6BklrIMQMYDI60ibNz9/9vgRkSL3 u3vn+JctDdzkfYGtH9pYC+gcufqcHzd9VNrH+NDURO4iV8Zz/2kn6aHS7kuEUvtsZySX LCBiIxLXPwwaB8E4KscHso3RMeZuFo7SyaL8v25QX3VLsgZ7MHXHlHVaNMvaqW3SH6ym cytx8ydYlntu0lAb66vYYI7oTNw6KuXxQQtxlXM28EtLpfz3ofzx9kmMEoaWfl71jMSu 8rmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=m8eJpgxU0+FQRmosaRLyq/99P3hCIO27AFc+WfL410I=; b=CiYF95E8rgKf2FFrWzlJJz/bsQpwiAdeR6trbpzE23Tjos2QRD/l/lzwDo65dlLmM4 YII/uRF1ll/gEOcugDvaH5jBPUtEmqFWUOrNlMvLZ5q55SHVyZO08vyAWJJgarlgjchu m5EXykDEG5wrxyhL2GD4M/ePRFFUH+LMBQeaqFHZa1syNB7oFfs29y5G8D+5PRuqK4ki liQ0wmw1OTaqbvIYs1u2T3WV/wf6+j2pzXdJ71+0b3+7QAIX6VUEsQ/C72iQBJqczey1 ++5SZWFyN8oueBheXcN/CMWkxe1KQHLy0NVLF0VGhYR8WvxAxXLZk/Ir3UK9f7QVjWHv I/6A== X-Gm-Message-State: AOAM532S2XhSkLI+TkfC0siW3djEgRnH0bKUMOEt/bglckitYXXMJ5p9 ZkGrQLbb3pOurdgvhq9vaef5v2ptNGqWTV/Q3Es= X-Google-Smtp-Source: ABdhPJw4svcT9P4bQhIbdFVLNJKkbgruPbzhj8V+uS166j6IxIGCsM8QhsocagmNTaERCYOA9ngxCk/c4/9uQtb+xDY= X-Received: by 2002:a05:6512:1283:: with SMTP id u3mr22390553lfs.390.1629640743484; Sun, 22 Aug 2021 06:59:03 -0700 (PDT) In-Reply-To: <87eealvce2.fsf@zoho.eu> Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x129.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132689 Archived-At: On Sun, Aug 22, 2021 at 9:27 PM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Hongyi Zhao wrote: > > > It's well known that Emacs relies on a number of libraries > > for its functionality. On the other hand, different > > operating systems have different package/library management > > tools and even the same library may have different names > > when installed on different operating systems. It would be > > handy if we had a common way to install all the dependent > > libraries when compiling Emacs from its Git Master source. > > For this purpose, I've noticed the vcpkg tool. But I'm not > > sure if there are some people here have some experiences for > > using this or the similar tools to solve this problem > > mentioned above. > > What libraries do you mean? See my following explanation. > Here is how I get and build it > > #! /bin/zsh > # > # this file: > # http://user.it.uu.se/~embe8573/conf/.zsh/install-emacs > # https://dataswamp.org/~incal/conf/.zsh/install-emacs > > local EMACS_SRC=https://git.savannah.gnu.org/git/emacs.git > > emacs-install-prepare () { > sudo apt-get -qq update > sudo apt-get install build-essential > sudo apt-get build-dep emacs Basically, I mean all the libraries installed by the above command, which will install all dependent libraries for Emacs on the Debian derivative systems. But when you're not on Debian derivative systems, you must adapt it to appropriate forms. > } > > emacs-src-reset () { > git reset --hard > git clean -xdf > git pull $EMACS_SRC > } > > emacs-src-get () { > git clone $EMACS_SRC > } > > # $ ./autogen.sh > # $ ./configure --with-x-toolkit=no > # $ make > # $ sudo make install Best, Hongyi