From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Masterson Newsgroups: gmane.emacs.help Subject: Re: Resources for an old newbie ? Date: Sun, 04 Jun 2023 00:26:54 -0700 Message-ID: References: <0e037ca2-517d-3b52-2187-a7bba7956fbd@starynkevitch.net> <87353ndhzg.fsf@web.de> <871qj7397n.fsf@dataswamp.org> <87ilch19ub.fsf@dataswamp.org> <87cz2nvk51.fsf@web.de> <87v8gfybhv.fsf@robbyzambito.me> <87zg5p5hm0.fsf@web.de> <875y8a698v.fsf@web.de> <875y89z9m7.fsf@dataswamp.org> <83fs777q9m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8114"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 04 09:27:46 2023 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 1q5i9R-0001ua-JO for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Jun 2023 09:27:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5i8s-0006yh-Uu; Sun, 04 Jun 2023 03:27:10 -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 1q5i8n-0006yN-Ag for help-gnu-emacs@gnu.org; Sun, 04 Jun 2023 03:27:05 -0400 Original-Received: from mail-dm6nam11olkn2061.outbound.protection.outlook.com ([40.92.19.61] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5i8k-00077m-VK; Sun, 04 Jun 2023 03:27:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iRAvYO4alDm9TG9NcBZ3GZoj5Pzy7NCSpXPMo/d+7S0uFq0eEyUjDA1k9cUP2Xhq5OhdZ06UgW5mBw401SGjzxyz6K7rgsXvYGa+6qXw5SDMg8sG+LDfb1ClC8Tz5atiRzXLzT5OKMLngW2F0udOwxxLYWMX1Evxs2w5EsAVu06Hmy9HvJHwZ2Ano52lPw2HFI3eaVG0O0rRuhKyku+Rgigers8M9C3kmcs1WPUnkpcI8dDLczdcpew+CQxIkZSWkzDqENFdLWa4Q1ZbPErQGtm/1seSfzKLlWayrbOqXuxHlTxr/v9jpILzB1oA5K0zADYa8vbUoQOS1Qw8ihzjLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/YF9NPl6p2jlU7iIROkHKKjVndixaFeem5zmyW4g3Kk=; b=meY4iuUpVBMruqnX5MP2oz7G4rw/5Wl1dUN2i98hL3tyxNjVkC/2xGV0GdclRhI6Lrd0DX+FqhpZbwABHUNTDSwPPFObp737oYNrvEEIT88rGiLLwn0zjUJ9JPrD8ys0rD0zwFbhHsiarS5CV/vrsD9ssAgQR1lODXBtJHQtLfHD8YAmTpqoaIINBvxfTe8fXc/IH1ZP9xt5zuB5nKH91GRb2aJd8/v3bK31h6Mk6J7KxmFtsv6Eyrl6A34DIWS2Bu7uEiTVLxmfnbPw2Wcix5a6tY5kOgi354Wr2i1u/zq2iqDFatPsl73KIZly2awtJ4KQJ2l0kh8n00CQcGit2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/YF9NPl6p2jlU7iIROkHKKjVndixaFeem5zmyW4g3Kk=; b=W+rQVioqzbOQ5Jd0SzpypZPbWsAwy13HkClSopfVJnNqtYEq+Q9lEh4mIL7OqVFc8w898BkwoB+SyHFjb+2qlHdZivq6IqErTcWW+UPUz981/80Q8EH8AIKtbD8GMSefJlVIXhVC6HhEoSqUrq1HxEH/7cmeyfoOc0P6YCCD0RUQKgINPbjbp3VCidhOSQpYtATdeCjSHAg9NmKZ+IHEW+MtA3RY3LoE/dkqfPzcpvRL/ZiVP9IDOCNWsI0/HzNynW9x6VR7T3WarWinHiFuN3dZIZQKs40a8irv2nf25tQzKfKbvdvJOypvpoY/6LFOsR4aOLFnOKduM/i97fJ+eg== Original-Received: from SJ0PR03MB5455.namprd03.prod.outlook.com (2603:10b6:a03:27b::11) by BLAPR03MB5507.namprd03.prod.outlook.com (2603:10b6:208:284::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.31; Sun, 4 Jun 2023 07:26:56 +0000 Original-Received: from SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::499:a72:e468:8ee9]) by SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::499:a72:e468:8ee9%6]) with mapi id 15.20.6455.028; Sun, 4 Jun 2023 07:26:56 +0000 In-Reply-To: <83fs777q9m.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 04 Jun 2023 08:25:25 +0300") X-TMN: [t0NBBR9Zsh+U3lfuOxhAjTCsW7z3nwVxOWJg1P+EhbSB96+dwcWujurD/Gp4aqrY] X-ClientProxiedBy: PH0PR07CA0120.namprd07.prod.outlook.com (2603:10b6:510:4::35) To SJ0PR03MB5455.namprd03.prod.outlook.com (2603:10b6:a03:27b::11) X-Microsoft-Original-Message-ID: <87a5xfelhd.fsf@penguin> X-MS-Exchange-MessageSentRepresentingType: 2 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR03MB5455:EE_|BLAPR03MB5507:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e340f76-e99e-4e89-871d-08db64cd13a3 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VleUu1CGADXv0P8/fYyWvLGzOCJQXq+fHZPZJZD82tdzPMm/HaKWHTrCOxKIy5mPrBPX8qeF1RlDoSVmvrXwkl5KjInW8ink2xaGXgR60iMT55nbjGlRi68lzZF0TXDp3HkfnTD70lRqFM1AFCWfsrZyd0Sj+B8+uohY9cknX6Ac85pjNKWhrd6t7OeCdkHEu367vfouUV2+zsU6BwXOhrakXkEaeGvTSJTz+vicRd3Hh2yPdklQ2eWt7mefP4zDh+fxeg6fFglJuUMvTJbHNEgDJ5JA74M815UyPEGwR401uDyM/U63W+uLN7QQKpAQKLecw6EnOcOjF2+hjX1ob1orE8zpR4ktIjhKiGldUF0HO932erjPywIYhWVSOGupV+T2AHnQ+OwXvFL1IbMlgCvDoKtatTzLuIbAfutQ/QIJzMfWu/ULRB/KjM8ohsWzjhe7eotFnmUu/gYcRT1VZJx/N81UIMA8TwqD3DDRsNJPRhluCHab6rchJY1zi++XZBMTd0cnDGrZnP4uGQ7iZ7VdPTP/6cmVbPu9Uq7KDQZv1g8Zn3blxoVvkOePeOvzKN692n2oniBiejfnYw7my7bDQ3ERl3J0wcXMXqByTZ8= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?G7LzG7IPvIJsX3i8/nTm8U7hVTDmyF4Gz7aQpWVLsx2dzMcD9QPMeeC4+Czm?= =?us-ascii?Q?C7Wj/bTU27kK8Cc4TgfadNyRTfP1nsC+DJQcV0g/+3SHnaga3gODQbD4L17L?= =?us-ascii?Q?AKXvKpNfSQXPcPcWsIZ5IZmclKOvJ8aqU8s/hYhFim58asrgKmYmKtWwr7SE?= =?us-ascii?Q?o+dGpre6jTJ23IIaHUuIZEz1Y0IPRBMjM/pdI9iQyrAiv2avolwgZCkx8M2l?= =?us-ascii?Q?Usr1CDeiWTd8mpFROfEo0NyynrHFZtV3qH2jxP+0NsR47B45vbLLDUb58nXC?= =?us-ascii?Q?LTRrqeLCaht8oq2g/g4t3KrPlsISuLZu5PcgL9OlwjpoGYT1cwgTT8JkVVWN?= =?us-ascii?Q?uMI284vTJmXFiIwz6RqEMnRYHLozbD7mBUM4AgB3BN4OeEr+TpjFdDtmd00q?= =?us-ascii?Q?Nc+V7tvmehhjM6ddeHNGbSMB2lBfhHbvKc1KjRfWLQD1zVP2h35MDXOK1B51?= =?us-ascii?Q?L7YSWea76Zo9GUpIS0JQE2Q4sz0wWo5/Hn2zSvhfRr1mu/E7gICE5cDuG26y?= =?us-ascii?Q?X96GhFozMjkZoreoIndRZ8JgM3KphIqByH47MxmD9NaOK5z8IQSSt22dmrTQ?= =?us-ascii?Q?oq9T+VyQN1xts2VikA76ZT2T8QtjLfZG/WJYZPC25XrnJRzMK4eHga/0ksGm?= =?us-ascii?Q?wE X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e340f76-e99e-4e89-871d-08db64cd13a3 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR03MB5455.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2023 07:26:56.7032 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR03MB5507 Received-SPF: pass client-ip=40.92.19.61; envelope-from=outlook_98C99531806B1C22@outlook.com; helo=NAM11-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_GMAIL_RCVD=1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143845 Archived-At: Eli Zaretskii writes: >> From: David Masterson >> Date: Sat, 03 Jun 2023 18:00:30 -0700 >> >> > # 1. setup directories >> > src_dir=~/src >> > emacs_dir=${src_dir}/emacs >> > mkdir -p $emacs_dir >> > >> > # 2. get dependencies >> > sudo apt-get -qq update >> > sudo apt-get install build-essential debian-goodies libgccjit-10-dev >> > sudo apt-get build-dep emacs >> >> This pulled in a *LOT* of stuff. >> >> > # 3. get source >> > cd $src_dir >> > git clone https://git.savannah.gnu.org/git/emacs.git >> > >> > # 4. refresh source/upgrade >> > cd $emacs_dir >> > git fetch >> > git merge >> >> I modified this to 'git pull' as previously suggested. There was >> nothing to pull. >> >> > # 5. compile and install >> > autogen.sh >> > configure --with-x-toolkit=no --with-native-compilation >> > make >> > sudo make install >> >> Gave this a try. Still having problems: > > Is this about concise and comprehensive instructions for how to build > Emacs? In such cases, I've many times found the "Linux from scratch!" > site very useful. In this case, read here: > > https://www.linuxfromscratch.org/blfs/view/svn/postlfs/emacs.html Useful, but for Emacs 28.2. The script I followed above got me 30.0.50. I may rethink being bleeding edge. Your URL link (sort of) assumes a GTK rather than Lucid X-toolkit. The above script seems to assume no-toolkit. I'm still figuring out what the limits of that are. > This lists all the dependencies, both mandatory and optional. Each > dependency is a link to another page, which describes how to build it > (if you don't have it installed already, and cannot download a > pre-built package). If you want to decide which optional dependency > you want, read the file INSTALL in the Emacs source tree, it gives > that information. Yeah, but it gets you into dependency hell as you follow the tree of dependencies down. I wasn't confident enough to do this for 27.1 a year or two ago, so I waited for Debian to release it as a package. I've learned a little bit about snap/flatpak/guix since then and thought I might go that way for v28.2. The "build-dep" step above looked like a good compromise to let me load up Debian approved dependent libraries and source build Emacs itself. >> 3. The GNUMakefile in the Emacs distribution seems to rerun configure >> with no options, so your "configure" is NO-OP. > > That's incorrect. I guess you've misread GNUMakefile. In reality, if > you have run the configure script, GNUMakefile redirects to the > top-level Makefile, and that obeys the configure-time options. Good point. Configure looked like it worked, but it didn't produce a Makefile (and I didn't pay attention to that). Therefore, when I did a make, it saw (via GNUMakefile) configure, but no Makefile and, so, ran configure and then used the generated Makefile. I'm not sure why my configure didn't build a Makefile. I now note that it would've also run autogen.sh if configure didn't exist, thus doing all the work to setup a freshly retrieved set of sources. A nice way to hide extra steps as long as autogen.sh and configure guess the right setup. >> 4. You can add arguments to the configure in the make step by passing >> 'configure="--ARG1..."' to make. > > True. Type "./configure --help" for the full story. > >> 7. Probably should've tee'd the output of make to a log file... :( > > Or run the commands inside Emacs's shell mode. This is probably the reason I messed up on #3 -- key errors/warnings scrolled off the screen without me noticing. I prefer a complete log file ("make |& tee log.file") for historical reasons in case I need to check some things days or months later. The config.status and config.log are good, but the simple log is quicker to read. -- David Masterson