From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David McCracken Newsgroups: gmane.emacs.bugs Subject: bug#71162: In Linux Emacs 27.1 rejects custom toolbar icons Date: Sun, 26 May 2024 13:54:07 -0700 Message-ID: <46e97c25-b7e7-4042-9a97-bc277816a1de@ixont.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7122"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: 71162@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 26 22:55:21 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 1sBKtk-0001gU-UL for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 May 2024 22:55:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBKtS-0005jr-93; Sun, 26 May 2024 16:55:02 -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 1sBKtK-0005j0-2F for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 16:54:54 -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 1sBKtJ-00050a-QT for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 16:54:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sBKtR-0004Sm-SN for bug-gnu-emacs@gnu.org; Sun, 26 May 2024 16:55:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: David McCracken Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 May 2024 20:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71162 X-GNU-PR-Package: emacs Original-Received: via spool by 71162-submit@debbugs.gnu.org id=B71162.171675687217083 (code B ref 71162); Sun, 26 May 2024 20:55:01 +0000 Original-Received: (at 71162) by debbugs.gnu.org; 26 May 2024 20:54:32 +0000 Original-Received: from localhost ([127.0.0.1]:42639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBKsx-0004RR-Lk for submit@debbugs.gnu.org; Sun, 26 May 2024 16:54:31 -0400 Original-Received: from bosmailout03.eigbox.net ([66.96.187.3]:32933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBKsv-0004R6-Ln for 71162@debbugs.gnu.org; Sun, 26 May 2024 16:54:30 -0400 Original-Received: from bosmailscan03.eigbox.net ([10.20.15.3]) by bosmailout03.eigbox.net with esmtp (Exim) id 1sBKsf-0000tR-MX for 71162@debbugs.gnu.org; Sun, 26 May 2024 16:54:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ixont.com; s=dkim; h=Sender:Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=t8zui0sXnUV9+6uT4kUeAsBZrfRiKuwgtBgVMm37I8A=; b=YxkBXJXgoBfRpxKvA0QGUwW/9u 1ZcByaMbndUHypjK89WFyRqDlqjKf+lqiD3kBuxOykJ4lv12lPTen14v8EuXE1o1GZDZMSSbUbKPR jMhv4lr7jZXn3D1gKZ3uhkf6psvuz1d6aeztxNan46Aitr5PtZYHNT5Qtcf2uR9hsVCw7WBuB3hlQ Ke5gWe4fvP1jRc9UZvNYvRAyF8tATqaXxlH/h6qGlTSZUWZOFDQFh2ShKZLMJKuNDeRBm18exNLJj 1kDgOKJMx/bkFiM1B04oo+g9RxkVaMbheSnQbZhQtKA3wLeetRH/Q7us8VhlP8or/x2P90v/NOKRR PQhMyiWw==; Original-Received: from [10.115.3.32] (helo=bosimpout12) by bosmailscan03.eigbox.net with esmtp (Exim) id 1sBKsd-0001MQ-9V for 71162@debbugs.gnu.org; Sun, 26 May 2024 16:54:11 -0400 Original-Received: from bosauthsmtp14.yourhostingaccount.com ([10.20.18.14]) by bosimpout12 with id Twu82C0030JCtq201wuBdJ; Sun, 26 May 2024 16:54:11 -0400 X-Authority-Analysis: v=2.3 cv=dOg9ZNRb c=1 sm=1 tr=0 a=AnsiuLKgxXFeB68GILQVjQ==:117 a=8V9CQAzvb1UE/5s8aP8Njg==:17 a=IkcTkHD0fZMA:10 a=TpHVaj0NuXgA:10 a=vqJPj2aYMwaZLzLG11wA:9 a=QEXdDO2ut3YA:10 Original-Received: from 23-115-169-72.lightspeed.mtryca.sbcglobal.net ([23.115.169.72]:61088 helo=[192.168.1.66]) by bosauthsmtp14.eigbox.net with esmtpsa (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) id 1sBKsZ-0003Gj-VA for 71162@debbugs.gnu.org; Sun, 26 May 2024 16:54:08 -0400 Content-Language: en-US X-EN-UserInfo: 7db9acb10a66b5d38e8efde72e4a1877:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: davidm@ixont.com X-EN-OrigIP: 23.115.169.72 X-EN-OrigHost: 23-115-169-72.lightspeed.mtryca.sbcglobal.net 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:285996 Archived-At: I decided that I could test 26.3 on the newer Ubuntu by copying some of the Emacs files from the other computer. I copied the emacs executable (located in /etc/alternatives/emacs pointed to by /usr/bin/emacs symlink) and recursively copied /usr/share/emacs/26.3 to /usr/share/emacs. I didn't change /usr/share/emacs/site-lisp or any of the files in /etc/emacs or usr/lib/emacs. Directly invoking the 26.3 executable revealed that it wanted /usr/lib/x86_64-linux-gnu/libotf.so.0. The 27.1 installation has only libotf.so.1 and libotf.so.1.0.0, so I copied libotf.so.0 into the directory. Then 26.3 ran and correctly displayed my toolbar icons located in ~/icons. Unlike the 27.1 bug report, in this case the reporter does not show Recent messages Invalid XPM3 file. To investigate whether the problems are caused by libotf.so, I copied libotf.so.0 over libotf.so.1 but then emacs 27.1 complained about a missing symbol definition. I did the inverse, copying libotf.so.1 over libotf.so.0. Emacs 26.3 was able to run with this. It continued to show my icons and not report the files as invalid. Therefore, the root of the problems is either in the emacs executable or /usr/share/emacs/27.1. In my Windows computer with Emacs 29.1 the bug reporter does not complain about my icon files. The name of the char array in the xpm file seems to be immaterial. I tried many alternatives to * filespec, including simply filespec and blank, and nothing changed the 27.1 bug report and failure to display the icons. I tested these alternatives in the Windows computer with Emacs 29.1 and they didn't change anything. I think this is essentially a comment, especially considering that definining an unnamed array is not legal in C. Even if this were a problem, it would not account for why Linux-Emacs 27.1 rejects its own xpm files if located anywhere but its own images directory. Although I would like to help get to the bottom of these problems, I would still like to know how to install an Emacs downrev in Linux. It is easy in Windows since all versions are available in zip files that I can unzip anywhere I want.