Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 911882

Summary: kde-apps/kdeedu-data-23.04.3 fails install phase with FileNotFoundError. Apparent filename encoding issue.
Product: Gentoo Linux Reporter: elprawn <sean.1986>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
emerge -v1 --color n kdeedu-data

Description elprawn 2023-08-07 20:07:09 UTC
Created attachment 867348 [details]
emerge --info

kde-apps/kdeedu-data-23.04.3 fails installing file during install phase. It appears that the file is in the filesystem, but the file is reported as not found, with an unrenderable character. The character is rendered correctly when the files are listed as "Installing" at the end of the compile phase.

At end of compile phase -
> -- Installing: /var/tmp/portage/kde-apps/kdeedu-data-23.04.3/image/usr/share/apps/kvtml/ca/capitalsdelmón_sec.kvtml


During install phase -
> FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/portage/kde-apps/kdeedu-data-23.04.3/image/usr/share/apps/kvtml/ca/capitalsdelm�n_sec.kvtml'


Output of ls /var/tmp/portage/kde-apps/kdeedu-data-23.04.3/image/usr/share/apps/kvtml/ca/capitalsdelmón_sec.kvtml -
> /var/tmp/portage/kde-apps/kdeedu-data-23.04.3/image/usr/share/apps/kvtml/ca/capitalsdelmón_sec.kvtml
Comment 1 elprawn 2023-08-07 20:14:08 UTC
Created attachment 867349 [details]
emerge -v1 --color n kdeedu-data
Comment 2 elprawn 2023-08-08 17:46:31 UTC
I managed to solve this by setting my locale to a utf-8 based one.

> eselect lang list
Available targets for the LANG variable:
  [1]   C
  [2]   C.utf8
  [3]   en_GB
  [4]   en_GB.iso88591
  [5]   en_GB.utf8 *
  [6]   POSIX
  [ ]   (free form)


Before it was [3] (en_GB). Hope this helps someone out there.
Comment 3 Andreas Sturmlechner gentoo-dev 2023-08-08 17:47:49 UTC
Thanks. I was going to ask why you didn't use utf8 in the first place.
Comment 4 elprawn 2023-08-08 17:48:15 UTC
Should I resolve this, or should the ebuild have automatically set to use utf-8?
Comment 5 elprawn 2023-08-08 17:49:37 UTC
Ah I see you have resolved.

To be honest, I wasn't sure what it was set to, or that it was the issue.

Thank you for your help.
Comment 6 Andreas Sturmlechner gentoo-dev 2023-08-08 17:50:46 UTC
This is not something any single ebuild can enforce, it is a decision made at the local system level and maybe the handbook should make a clearer case to set UTF-8.
Comment 7 elprawn 2023-08-08 17:55:48 UTC
It's strange. I had the previous version of the package installed and the upstream shows they're at the same commit hash.

https://github.com/KDE/kdeedu-data/commits/v23.04.2
https://github.com/KDE/kdeedu-data/commits/v23.04.3

In any case, thanks once again.