Subject: bug#55968: closed (Re: bug#55968: Grafts don't support non-ASCII file name.)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 11 Nov 2022 22:22:02 +0000

Your bug report

#55968: Grafts don't support non-ASCII file name.

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
55968: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55968
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#55968: Grafts don't support non-ASCII file name.
From: Ludovic Courtès <[email-masked]>
To: Maxime Devos <[email-masked]>
Cc: [email-masked]
Date: Fri, 11 Nov 2022 23:21:24 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Maxime Devos <[email-masked]> skribis:

> Build a package whose store items contain non-ASCII file names and uses grafts:
>
> $ guix build tectonic
> [...]
> De volgende transplantaat zal worden gemaakt:
>    /gnu/store/p48cj1v9mk7g4hj4dcyv1azawcw6sk25-tectonic-0.8.2.drv
> 3 transplantaten aanbrengen voor tectonic-0.8.2 ...
> grafting '/gnu/store/57rmskg2iybx4dzar8w868msxnc3z4b5-tectonic-0.8.2' -> '/gnu/store/ybsgj73xxvin7cjnxabdawiadi08gd2v-tectonic-0.8.2'...
> find-files: /gnu/store/57rmskg2iybx4dzar8w868msxnc3z4b5-tectonic-0.8.2/share/cargo/src/tectonic-0.8.2/tests/tex-outputs/hall??chen ???? welt ????.xdv: No such file or directory
> find-files: /gnu/store/57rmskg2iybx4dzar8w868msxnc3z4b5-tectonic-0.8.2/share/cargo/src/tectonic-0.8.2/tests/tex-outputs/hall??chen ???? welt ????.tex: No such file or directory
> find-files: /gnu/store/57rmskg2iybx4dzar8w868msxnc3z4b5-tectonic-0.8.2/share/cargo/src/tectonic-0.8.2/tests/tex-outputs/hall??chen ???? welt ????.log: No such file or directory
> /gnu/store/p48cj1v9mk7g4hj4dcyv1azawcw6sk25-tectonic-0.8.2.drv succesvol gebouwd
> /gnu/store/ybsgj73xxvin7cjnxabdawiadi08gd2v-tectonic-0.8.2

Fixed in 19206eee69e8c22d63104af1b7f1f815969bff7f, thanks!

Ludo’.

Subject: Grafts don't support non-ASCII file name.
From: Maxime Devos <[email-masked]>
To: [email-masked]
Date: Tue, 14 Jun 2022 14:17:28 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Build a package whose store items contain non-ASCII file names and uses grafts:

$ guix build tectonic
[...]
De volgende transplantaat zal worden gemaakt:
   /gnu/store/p48cj1v9mk7g4hj4dcyv1azawcw6sk25-tectonic-0.8.2.drv
3 transplantaten aanbrengen voor tectonic-0.8.2 ...
grafting '/gnu/store/57rmskg2iybx4dzar8w868msxnc3z4b5-tectonic-0.8.2' -> '/gnu/store/ybsgj73xxvin7cjnxabdawiadi08gd2v-tectonic-0.8.2'...
find-files: /gnu/store/57rmskg2iybx4dzar8w868msxnc3z4b5-tectonic-0.8.2/share/cargo/src/tectonic-0.8.2/tests/tex-outputs/hall??chen ???? welt ????.xdv: No such file or directory
find-files: /gnu/store/57rmskg2iybx4dzar8w868msxnc3z4b5-tectonic-0.8.2/share/cargo/src/tectonic-0.8.2/tests/tex-outputs/hall??chen ???? welt ????.tex: No such file or directory
find-files: /gnu/store/57rmskg2iybx4dzar8w868msxnc3z4b5-tectonic-0.8.2/share/cargo/src/tectonic-0.8.2/tests/tex-outputs/hall??chen ???? welt ????.log: No such file or directory
/gnu/store/p48cj1v9mk7g4hj4dcyv1azawcw6sk25-tectonic-0.8.2.drv succesvol gebouwd
/gnu/store/ybsgj73xxvin7cjnxabdawiadi08gd2v-tectonic-0.8.2

The grafted version does not contain the file name starting with 'hall':

$ ls /gnu/store/57rmskg2iybx4dzar8w868msxnc3z4b5-tectonic-0.8.2/share/cargo/src/tectonic-0.8.2/tests/tex-outputs/
[ file is missing! ]

Now compare this with the original, non-grafted store item:

$ stat $(guix build --no-grafts tectonic)/share/cargo/src/tectonic-0.8.2/tests/tex-outputs/hallöchen\ 🐨\ welt\ 🌍.xdv
[ it exists! ]

A similar fix as in <https://issues.guix.gnu.org/54893> may be needed.

Greetings,
Maxime.