GNU bug report logs - #37955
warning: '.desktop' file refers to '', which cannot be found

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Pierre Neidhardt <mail@HIDDEN>; dated Mon, 28 Oct 2019 08:35:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 37955 <at> debbugs.gnu.org:


Received: (at 37955) by debbugs.gnu.org; 9 Apr 2021 11:23:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 09 07:23:20 2021
Received: from localhost ([127.0.0.1]:49200 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lUpEO-0001IA-K6
	for submit <at> debbugs.gnu.org; Fri, 09 Apr 2021 07:23:20 -0400
Received: from relay7-d.mail.gandi.net ([217.70.183.200]:50149)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1lUpEM-0001Hs-UO
 for 37955 <at> debbugs.gnu.org; Fri, 09 Apr 2021 07:23:20 -0400
X-Originating-IP: 92.169.147.163
Received: from bababa (lfbn-idf2-1-1335-163.w92-169.abo.wanadoo.fr
 [92.169.147.163]) (Authenticated sender: mail@HIDDEN)
 by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id E56E420012;
 Fri,  9 Apr 2021 11:23:11 +0000 (UTC)
From: Pierre Neidhardt <mail@HIDDEN>
To: Brendan Tildesley <btild@HIDDEN>, "37955 <at> debbugs.gnu.org"
 <37955 <at> debbugs.gnu.org>
Subject: Re: warning: '.desktop' file refers to '', which cannot be found
In-Reply-To: <1448605157.72653.1617965795461@HIDDEN>
References: <1448605157.72653.1617965795461@HIDDEN>
Date: Fri, 09 Apr 2021 13:23:11 +0200
Message-ID: <87y2drg0rk.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: -0.2 (/)
X-Debbugs-Envelope-To: 37955
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

--=-=-=
Content-Type: text/plain

Thanks for the investigation.  Would you like to send a patch?

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAmBwOR8SHG1haWxAYW1i
cmV2YXIueHl6AAoJEJvc9Jeku8x/gP4H/j5pC1sZLWY7p37LUSg5APt1Y+XHzc9B
aOCJRsJZ0xRehf2tQsp9HxL8ErpOOV1AcV4RSSLf0pFJuOp0+iVfkmwj15N9HFkF
vnl7tISnSG9rT6Iia2DyRbq452qXYA7XsLUO7A3uYhsqXHL7n2rCiI6Z7jf4iBTQ
aDaHld5+fEY6ahWlOCQRUUcot8zU6WfvbqxdY/SBKuekMmY29Bd0dw0CeOLi47aX
fHJxSal4dKWWmsHQ4WRwv9YewKwAriBMcHbx3NhiR6NKZWS3OOhEVFKvw1X3NxsD
jLGjcQN9g+wZNG4zhU4RjJKEGJx631Gfu+pB30+ZAm3eB8lMEwC+Wcg=
=HmtP
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#37955; Package guix. Full text available.

Message received at 37955 <at> debbugs.gnu.org:


Received: (at 37955) by debbugs.gnu.org; 9 Apr 2021 10:56:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 09 06:56:49 2021
Received: from localhost ([127.0.0.1]:49156 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lUooj-0000W7-Bg
	for submit <at> debbugs.gnu.org; Fri, 09 Apr 2021 06:56:49 -0400
Received: from mout-p-201.mailbox.org ([80.241.56.171]:58812)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <btild@HIDDEN>) id 1lUoof-0000Vo-6e
 for 37955 <at> debbugs.gnu.org; Fri, 09 Apr 2021 06:56:47 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest
 SHA256) (No client certificate requested)
 by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4FGw6t6KZgzQk23;
 Fri,  9 Apr 2021 12:56:38 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h=
 content-type:content-type:mime-version:subject:subject
 :message-id:from:from:date:date:received; s=mail20150812; t=
 1617965795; bh=woxnZxynUJKDgcbPbRWpsfpvW4YxQr/EZDK6sUdUByY=; b=X
 hl50Y8idEfv52aiOu6e5yUi5Q+NqBInyd/xLxkcyBIVFUd4PZjyuB53jkh/jjUFS
 a1Agc5N43FXGQtFZvSjKp/rDQGdaHp/nAT7haOxmpgdUQsl9pKm3vIc8WnvHaOM+
 g4jqnNFFLNVubipkb8HQ0+DoeCCY1qzlUQlc8KUvyMMypFc10bqOnfuqJg9Nx6zB
 lW3TA4hFSOsUbDfwtPSYzl3Q1D7/sjVkacSBDCkXN+X/KLtO4QiNYn+WEJuv1AnR
 QxChMvHsW5NUyP1ZVIldSjaNZdCn5VBqbklW5OT7aaZ7CQOR4ndA1EbDSO7XE5UO
 QesmBV35UGKpB7o3QCQUQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1617965797;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type;
 bh=UFMwH9jAmUR9/8K5puhuTxMb5ZJb84U0ew+VkNkkeVY=;
 b=mZpG/+Ccx2Mn+TnR1NapGfzFr46SIIZnRFF2PhgAxHmdZgJEBYHFHWYEd1UHA6OUjC7qEn
 2ZWIMgrcwglHkJdEsIPvG8nXjkSOEOtvp+EqFdJuQmYexVI/5Cajx30n6YBMEBQShXmGTb
 fhgncWn61vtoFrTGiwHqKMHdbsX/PrXDayO5vH3ur02lS6k98NFAPXIsRA7TexU5hoEmHD
 4XVsm69LU1ZaG4vLxv9Qodv2u1S+N9WQ5o9UpBd7oSJpd6mtoDMUkobXh0zCxs5yY6WM8g
 8fNfw8s73KsavUe/0Ak2LLZSV0dqj9LCGIun9qd9AZqq+M07DvhwGEBzmFuWwg==
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
 by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de
 [80.241.56.122]) (amavisd-new, port 10030)
 with ESMTP id 3buILIjDlYIa; Fri,  9 Apr 2021 12:56:35 +0200 (CEST)
Date: Fri, 9 Apr 2021 12:56:35 +0200 (CEST)
From: Brendan Tildesley <btild@HIDDEN>
To: "37955 <at> debbugs.gnu.org" <37955 <at> debbugs.gnu.org>
Message-ID: <1448605157.72653.1617965795461@HIDDEN>
Subject: warning: '.desktop' file refers to '', which cannot be found
MIME-Version: 1.0
Content-Type: multipart/alternative; 
 boundary="----=_Part_72652_1417392800.1617965795457"
X-Priority: 3
Importance: Normal
X-MBO-SPAM-Probability: 
X-Rspamd-Score: -3.31 / 15.00 / 15.00
X-Rspamd-Queue-Id: DC64717BD
X-Rspamd-UID: 9c57ae
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 37955
Cc: "mail@HIDDEN" <mail@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

------=_Part_72652_1417392800.1617965795457
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

The Exec paths in these files already refer to absolute paths, infact, /gnu/store paths
Thus the regex:

("^Exec=([^/[:blank:]\r\n]*)(.*)$" _ binary rest)

with binary = empty string and rest = everything after Exec=

Why? The second subexpression [^/[:blank:]\r\n]* is bound to binary, but it means anything
that is a series of anything that is not /, space, or newline. absolute paths start with /, so it matches nothing (empty string), and continues to call (which "").


I notice this phase hasn't been edited in 5 years and has other issues, for example:

1. patch-dot-desktop-files only searches the output of the package for paths, not the inputs. This means for example xfce4-settings fails to patch references to exo-open in desktop files.

The code should be remade to be more /correct/, and handle all unexpected inputs. In this case the phase is accidentally doing the right thing by failing in a harmless way and correctly not patching the files, but emitting a warning.

------=_Part_72652_1417392800.1617965795457
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!doctype html>
<html>
 <head> 
  <meta charset="UTF-8"> 
 </head>
 <body>
  <div style="" class="default-style">
   The Exec paths in these files already refer to absolute paths, infact, /gnu/store paths
   <br>
  </div>
  <div style="" class="default-style">
   Thus the regex:
   <br>
  </div>
  <div style="" class="default-style">
   <br>
  </div>
  <div style="" class="default-style">
   ("^Exec=([^/[:blank:]\r\n]*)(.*)$" _ binary rest)
   <br>
  </div>
  <div style="" class="default-style">
   <br>
  </div>
  <div style="" class="default-style">
   with binary = empty string and rest = everything after Exec=
   <br>
  </div>
  <div style="" class="default-style">
   <br>
  </div>
  <div style="" class="default-style">
   Why? The second subexpression [^/[:blank:]\r\n]* is bound to binary, but it means anything
   <br>
  </div>
  <div style="" class="default-style">
   that is a series of anything that is not /, space, or newline. absolute paths start with /, so it matches nothing (empty string), and continues to call (which "").
   <br>
  </div>
  <div style="" class="default-style">
   <br>
  </div>
  <div style="" class="default-style">
   <br>
   <div style="" class="default-style">
    I notice this phase hasn't been edited in 5 years and has other issues, for example:
    <br>
   </div>
   <div style="" class="default-style">
    <br>
   </div>1. patch-dot-desktop-files only searches the output of the package for paths, not the inputs. This means for example xfce4-settings fails to patch references to exo-open in desktop files. 
   <br>
  </div>
  <div style="" class="default-style">
   <br>
  </div>
  <div style="" class="default-style">
   The code should be remade to be more /correct/, and handle all unexpected inputs. In this case the phase is accidentally doing the right thing by failing in a harmless way and correctly not patching the files, but emitting a warning.
   <br>
  </div>
 </body>
</html>
------=_Part_72652_1417392800.1617965795457--




Information forwarded to bug-guix@HIDDEN:
bug#37955; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Oct 2019 08:34:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 28 04:34:08 2019
Received: from localhost ([127.0.0.1]:43797 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iP0TY-00009A-3l
	for submit <at> debbugs.gnu.org; Mon, 28 Oct 2019 04:34:08 -0400
Received: from lists.gnu.org ([209.51.188.17]:44279)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1iP0TV-000091-Hv
 for submit <at> debbugs.gnu.org; Mon, 28 Oct 2019 04:34:06 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53503)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <mail@HIDDEN>) id 1iP0TU-0001cg-Do
 for bug-guix@HIDDEN; Mon, 28 Oct 2019 04:34:05 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mail@HIDDEN>) id 1iP0TS-0007se-NT
 for bug-guix@HIDDEN; Mon, 28 Oct 2019 04:34:03 -0400
Received: from relay3-d.mail.gandi.net ([217.70.183.195]:55953)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mail@HIDDEN>) id 1iP0TS-0007po-H2
 for bug-guix@HIDDEN; Mon, 28 Oct 2019 04:34:02 -0400
X-Originating-IP: 92.169.151.76
Received: from bababa (lfbn-1-4156-76.w92-169.abo.wanadoo.fr [92.169.151.76])
 (Authenticated sender: pierre@HIDDEN)
 by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 54F0B60010
 for <bug-guix@HIDDEN>; Mon, 28 Oct 2019 08:33:59 +0000 (UTC)
From: Pierre Neidhardt <mail@HIDDEN>
To: bug-guix@HIDDEN
Subject: warning: '.desktop' file refers to '', which cannot be found
Date: Mon, 28 Oct 2019 09:33:59 +0100
Message-ID: <87pnihfevc.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 217.70.183.195
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Many packages report this (benign?) warning:

=2D-8<---------------cut here---------------start------------->8---
starting phase `patch-dot-desktop-files'
adjusting 2 '.desktop' files in "/gnu/store/j8q725jv5my3gcqi1kgb2g99839xcba=
p-racket-7.3/share/applications"
warning: '.desktop' file refers to '', which cannot be found
...
=2D-8<---------------cut here---------------end--------------->8---

Racket is one example.

The .desktop file is fine though, there is no empty string nor broken refer=
ences.

=2D-=20
Pierre Neidhardt
https://ambrevar.xyz/

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl22p/cACgkQm9z0l6S7
zH88xAf9F4ujJuxH0ND8bzF/b6Ty8pXrMbBWgs3lGIlRUS5ZDK8/fy9cMcBUO8Xq
7b0Vaw3hklpee/0nOU4xWfoyKkYKzZctjkiDSeSZiy48YbG7sbJ2fkyL+zSHaOuR
BVr4X7S691S9Hv7yaRKW2VWVSHD+jzsjGYre/6632+Ns7/7VzTHdUf2+uKiL4f0g
ZNH/lov4GjJezgj79Safxx1Vya5R3taF5vpDkoVY8vuwQGIrh9ghfMXF0pXcbMW4
clgGA6jsyHJ42YUFU9TthJMO/ERjjBYwOVGNesi0kxIm8QCJahUg7fQwctUSmqDT
6taGKSt8pa4f9EqWcgajcw/D0sEBAA==
=2zKN
-----END PGP SIGNATURE-----
--=-=-=--




Acknowledgement sent to Pierre Neidhardt <mail@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#37955; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 9 Apr 2021 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.