Subject: xdg-desktop-portal update executables no longer ELF binaries

From: Jack Hill <[email-masked]>
Date: Thu, 18 Aug 2022 15:36:52 -0400 (EDT)

X-Debbugs-CC: [email-masked]

Hi Guix,

After the recent update to xdg-desktop-portal (commit 
38d7e6d6b7467839c2f577783b6c97194ff5026b), I find that the 
xdg-desktop-portal executalbe is no longer an ELF binary. This causes 
portal using applications (I noticed with obs) to not be able to launch 
the portal, and print messages like "[portals] Error retrieving D-Bus 
proxy: Error calling StartServiceByName for 
org.freedesktop.portal.Desktop: Failed to execute program 
org.freedesktop.portal.Desktop: Exec format error"

"""
jackhill@leyden ~/repos/guix [env]$ git log HEAD^..HEAD
commit ceacf8e32f3671ab598c71e691b580a72af4e16e (HEAD -> master, origin/master, origin/HEAD)
Author: Jan (janneke) Nieuwenhuizen <[email-masked]>
Date:   Thu Aug 18 16:10:22 2022 +0200

     gnu: dezyne: Update to 2.16.0.

     * gnu/packages/dezyne.scm (dezyne): Update to 2.16.0.
jackhill@leyden ~/repos/guix [env]$ file $(./pre-inst-env guix build xdg-desktop-portal)/libexec/xdg-desktop-portal
/gnu/store/bp9j67p8ynif5p2vbjl7lg294f5aihxk-xdg-desktop-portal-1.14.4/libexec/xdg-desktop-portal: data
jackhill@leyden ~/repos/guix [env]$ git revert 38d7e6d6b7467839c2f577783b6c97194ff5026b
Auto-merging gnu/packages/freedesktop.scm
[master 51f81ad19a] Revert "gnu: xdg-desktop-portal: Update to 1.14.4."
  1 file changed, 7 insertions(+), 11 deletions(-)
jackhill@leyden ~/repos/guix [env]$ make
make  all-recursive
make[1]: Entering directory '/home/jackhill/repos/guix'
Making all in po/guix
make[2]: Entering directory '/home/jackhill/repos/guix/po/guix'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/jackhill/repos/guix/po/guix'
Making all in po/packages
make[2]: Entering directory '/home/jackhill/repos/guix/po/packages'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/jackhill/repos/guix/po/packages'
make[2]: Entering directory '/home/jackhill/repos/guix'
Compiling Scheme modules...
Compiling Scheme modules...
[ 78%] LOAD     gnu/packages/freedesktop.scm
;;; note: source file ./gnu/packages/freedesktop.scm
;;;       newer than compiled /home/jackhill/repos/guix/gnu/packages/freedesktop.go
;;; note: source file ./gnu/packages/freedesktop.scm
;;;       newer than compiled /home/jackhill/repos/guix/gnu/packages/freedesktop.go
[ 78%] GUILEC   gnu/packages/freedesktop.go
Compiling Scheme modules...
Compiling Scheme modules...
make[2]: Leaving directory '/home/jackhill/repos/guix'
make[1]: Leaving directory '/home/jackhill/repos/guix'
jackhill@leyden ~/repos/guix [env]$ file $(./pre-inst-env guix build xdg-desktop-portal)/libexec/xdg-desktop-portal
/gnu/store/0hab3g3r058yvm9902xg71y94xr6bwb8-xdg-desktop-portal-1.10.1/libexec/xdg-desktop-portal: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /gnu/store/5h2w4qi9hk1qzzgi1w83220ydslinr4s-glibc-2.33/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped
"""

Best,
Jack