From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eKPiM4ALgGFY6gAAgWs5BA (envelope-from ) for ; Mon, 01 Nov 2021 16:45:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6PWIL4ALgGEAaQAAB5/wlQ (envelope-from ) for ; Mon, 01 Nov 2021 15:45:04 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2456D14F8F for ; Mon, 1 Nov 2021 16:45:04 +0100 (CET) Received: from localhost ([::1]:43418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhZUc-0005tJ-7x for larch@yhetil.org; Mon, 01 Nov 2021 11:45:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhZU9-0005rG-A8 for emacs-orgmode@gnu.org; Mon, 01 Nov 2021 11:44:33 -0400 Received: from ciao.gmane.io ([116.202.254.214]:33672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhZU7-0003hc-2O for emacs-orgmode@gnu.org; Mon, 01 Nov 2021 11:44:33 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mhZU3-00014b-OL for emacs-orgmode@gnu.org; Mon, 01 Nov 2021 16:44:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [BUG] Org V 9.5 error when ~/.cache doesn't exist Date: Mon, 1 Nov 2021 22:44:14 +0700 Message-ID: References: <877ddsazc9.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 In-Reply-To: <877ddsazc9.fsf@localhost> Content-Language: en-US Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 17 X-Spam_score: 1.7 X-Spam_bar: + X-Spam_report: (1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-1.14, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635781504; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=inWSrc+rujxjHmvbOlx9/XOjTB9aYgMukZQAf5WA9sE=; b=tR1H7VruZmSyI1MdY3BiUFtSVwZp57Os0TMzXHYohKDt0hb5oNsFsRLnT9VhYpev/hKsJo PqzY3OmNTnhn9pIEpN6QsdSmiXYM9XA3WYX0QUdfrpvN7H7SYlKnVxOKJg/ZykeSZLpNri yV7G9h/4mBKByJJ51BfzhzEwOIL+cNkAQt9m7EsTCnm8moqg3qmjdYSO5OwXArerru2XbJ lzBxVPSClZ0biloMCvOp0+42AqDoSVHj8845PrWFEzWLTAB6u+QiKz7rT2G8E/fy6vOmhq oCNDEjOrFyzD+u1PpINuwgI2x4rqRmBTfGY4cAMHS2b0eL9S+yvm+11cH2FAhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635781504; a=rsa-sha256; cv=none; b=paqec4c/NgCkPWL1DVkuOgtYhmnWKLVKQlep0PMZiSNfwQKL2C/lxsOSgfOWXnPppQ8I6D BnSI6S0RCcXT0BdTnWS6VuIiue4jLkR4gkPPixOhszONk9/6Lw4hy20pLZfw72El48TUw1 VcKlN+HDTFeaOK8rf9FeFV1WeFNFx9UKgnFg8wEhruz5zjGrEJb7UnM2x7MTUgilSGy7Y9 tQKjWNhGG6cb05xg7OxeKNoTTKawLyi+J+EpvZWNt17ZoGv5aM49aJHKMHyapWKqVNx6ZS vTMnTnLkgXRNfzhevmiFljhqZmvXRFFSfTt+NzM5h8OwditKTvFTAyW36DmIEg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.82 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 2456D14F8F X-Spam-Score: -1.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: SLtBbYlRMzFY On 01/11/2021 18:29, Ihor Radchenko wrote: > Scott Otterson writes: > >> Apparently, org version 9.5 expects the directory "~/.cache" to exist, and >> if it doesn't, it terminates with an error. I'd suggest that org mode >> makes this directory if it needs it. > > Thanks for reporting! Fixed in 6621ee32e. Ihor, your fix affects linux as well. .cache directory may be missed in fresh accounts. E.g. I just have created a new test container (my old one has emacs-25): emacs --batch -L org-mode/lisp/ -l org-persist --eval '(message "%s\n%s" org-persist-directory (org-version nil t))' Loading /etc/emacs/site-start.d/00debian.el (source)... /home/ubuntu/.emacs.d/org-persist/ Org mode version 9.5 (release_9.5-194-g7a6f48 @ /home/ubuntu/org-mode/lisp/) P.S. ~/.cache directory should not be world-readable, so likely it is required to change umask or to explicitly specify permissions while creating it.