FS#40762 - [pacman] pacman -Qkk wrongly warns about filename with accents
Attached to Project:
Pacman
Opened by Alain Kalker (ackalker) - Sunday, 08 June 2014, 21:07 GMT
Last edited by Allan McRae (Allan) - Monday, 04 August 2014, 04:57 GMT
Opened by Alain Kalker (ackalker) - Sunday, 08 June 2014, 21:07 GMT
Last edited by Allan McRae (Allan) - Monday, 04 August 2014, 04:57 GMT
|
Details
Description:
Running `pacman -Qkk` on my system gives the following warning: warning: atom-editor-git: /usr/share/atom/resources/app/node_modules/markdown-preview/spec/fixtures/subdir/áccéntéd.md (No such file or directory) The mentioned file does exist: $ ls -l /usr/share/atom/resources/app/node_modules/markdown-preview/spec/fixtures/subdir/áccéntéd.md -rw-r--r-- 1 root root 10 Jun 6 17:57 /usr/share/atom/resources/app/node_modules/markdown-preview/spec/fixtures/subdir/áccéntéd.md (Note that there are accented letters in the filename, I don't know if flyswat will retain them.) On a hunch, running the command with LC_ALL=C made no difference: same wrong warning. Additional info: * package version(s) pacman 4.1.2-6 * config and/or log files etc. $ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= Steps to reproduce: |
This task depends upon
Closed by Allan McRae (Allan)
Monday, 04 August 2014, 04:57 GMT
Reason for closing: Fixed
Additional comments about closing: fixed for pacman-4.2 with git commit 537a335c
Monday, 04 August 2014, 04:57 GMT
Reason for closing: Fixed
Additional comments about closing: fixed for pacman-4.2 with git commit 537a335c
---
# Quick'n'dirty PKGBUILD for testing
FS#40762# Maintainer: Your Name <youremail@domain.com>
pkgname=accenttest
pkgver=0.1
pkgrel=1
pkgdesc="Test for accented filename check bug (
FS#40762)"arch=('any')
url=""
license=('GPL')
source=(áccéntéd.md)
md5sums=('fea409ba1e5bfc20b34b6f9053ec164b')
package() {
install -D -m644 "$srcdir/áccéntéd.md" "$pkgdir/usr/share/$pkgname/áccéntéd.md"
}
---
Weird. Could it be the somewhat long pathname? If not, I'm afraid there is no other option for reproducing but to actually build the 'atom-editor-git' package from the AUR and find out... :-)
$ ls -l /usr/share/atom/resources/app/node_modules/markdown-preview/spec/fixtures/subdir/
total 24
-rw-r--r-- 1 root root 10 Jun 6 17:57 áccéntéd.md
-rw-r--r-- 1 root root 135 Jun 6 17:57 evil.md
-rw-r--r-- 1 root root 340 Jun 6 17:57 file.markdown
-rw-r--r-- 1 root root 10 Jun 6 17:57 file with space.md
-rw-r--r-- 1 root root 21 Jun 6 17:57 html-tag.md
-rw-r--r-- 1 root root 19 Jun 6 17:57 simple.md
bsdtar: usr/share/atom/resources/app/node_modules/markdown-preview/spec/fixtures/subdir/áccéntéd.md: Can't translate pathname 'usr/share/atom/resources/app/node_modules/markdown-preview/spec/fixtures/subdir/áccéntéd.md' to UTF-8
But the package will install fine.
This is why we force the C locale in devtools. I'm thinking we should force it in all bsdtar calls in makepkg too.
For my test 'accenttest' package from my first comment, I copied the file usr/share/$pkgname/áccéntéd.md into the directory containing the PKGBUILD, then I built, installed and checked the package with `$ pacman -Qkk accenttest`, all without any problems.
Very strange indeed, perhaps the install step in the 'atom-editor-git' package does something strange with locale settings etc.
"namcap atom-editor-git-20140720-1-x86_64.pkg.tar.xz" shows (among others) the following warning:
atom-editor-git W: File name usr/share/atom/resources/app/node_modules/markdown-preview/spec/fixtures/subdir/áccéntód.md contains non standard characters
After installing, "pacman -Qkk atom-editor-git" shows _no_ errors or warnings:
atom-editor-git: 11544 total files, 0 altered files