From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B6rn?= Bidar Newsgroups: gmane.emacs.help Subject: Transforming paths in compilation output (containerized builds) Date: Sat, 07 Dec 2024 21:58:36 +0200 Message-ID: <35978.8326708198$1733601574@news.gmane.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25423"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 07 20:59:26 2024 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 1tK0xa-0006Sr-3X for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 07 Dec 2024 20:59:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tK0x1-0005Dr-W9; Sat, 07 Dec 2024 14:58:52 -0500 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 1tK0ws-0005DR-Bn for help-gnu-emacs@gnu.org; Sat, 07 Dec 2024 14:58:43 -0500 Original-Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tK0wp-0002LH-Qd for help-gnu-emacs@gnu.org; Sat, 07 Dec 2024 14:58:42 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 7BC69D00054 for ; Sat, 7 Dec 2024 21:58:37 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1733601517; bh=HSNv4HSrQXnwFgAkAIpiFfmyJCyv+hIJO8FQ08eElGQ=; h=From:To:Subject:Date; b=rYtq+I6NyHuAjJsZI3H6S8jV1Vh/VMP+K225XH+3dpB+JmofxALd4NXtuhfR1705i IF6H9UxSMWWyuOyXUpC8q1vMKUk1ztARbRmcaESeFzPuJyVuhMj/47lT/3GC0lAoe6 8JSZCCK//njKbFvgqscHgbrmnZBuGixDvErsZy7IOP1Mm2yACp9afMHYv/067CMhhB 3Bkoe6x2xdKQbj4KyFbrlJYSA93MAin1Sz7wb+DAapai7gKUmqHo7jgI8ENbMeo974 NcC3dBLIiCPhOl8voO7U6ZJKoWfFZf8gUiYJps/P7P5QM2mof/WT1h9xazryx5XxHP sBummn2XGRGkVgT1KJZWESnQ5ZEMMCrdUTTjYMIbjNrrzqsX7pAvR2OYwVCz45kILA nIf8hJwrfNS39bzF0t/lUf3BNoMb3FYzruOh31Z88DAOPL0zT8bCbm8EuY+qKiBJd3 wiklCNHGOYsxymZTJWTgY3hvoSaKT1Zy2OrF7zC7b/p/c5/4YNz09rvj2Ai+kKB+se L9bAbR+YdDKUOr6mH2ffu8EnI2QKsdagdE30v0n6Z0GqR2f1w8TjqjbG+j+2qgInb1 S6sIcWbDIVbCsj+/1Jpwi4rFrUMqpzeeWvyCdRQaNZq9nwcAsb/Uhi7uRvXbPwCL48 6Ge+fDeKQiBO0sf9KeTkWJ4A= Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 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, INVALID_MSGID=0.568, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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:148662 Archived-At: Hello, I'm looking how to transform the output in the compilation buffer or just make Emacs open the correct paths inside builds happen inside containerized builds. The output of the programs ran inside these environments relates to the environment they are build in e.g. container in /var/tmp/build-root/ and output as if /var/tmp/build-root/ is /. I'm having this situation when building with osc build which sets up a linux environment generated according to the settings of the repository, e.g. a Debian system debbuild or openSUSE system with rpmbuild with the dependencies required to build a package. For context osc is the commandline client to the Open Build Service also known as openSUSE build s= ervice. The builds can be inside a change root, a container or a vm. The second example would be builds in Scratchbox2, a cross compiling environment. There the paths are also relative to the environment, a Scratchbox2 target or if they don't exist in the target simply relative to the host. E.g. /usr/include/foo.h -> target ~/project/foo.c -> host I did some research, I found other modes such as ppcompile which uses compilation-finish-functions. For remote environments I know that tramp uses file-name-handler-alist. Is it possible to register temporary file-name handler for this context or are there better methods to achieve what I want to do? Have a great weekend, Bj=C3=B6rn