Skip to content

Question regarding AUR packing and filenames with non-standard characters

I maintain the AUR packages for darling and darling-git. I have noticed for a while there are a few files that tend to bomb out when installing and I suspect it is due to the filenames. You will find these same files in other packages and distros since they are certificate authorities, but I have had little luck figuring out how to correct this.

Any help would be greatly appreciated. I figured I would ask here first before spending an day digging into it :/

(2/2) installing darling                                                                       [########################################################] 100%
warning: file not found in file list for package darling. skipping extraction of usr/libexec/darling/System/Library/OpenSSL/certs/AC_Raíz_Certicámara_S.A..crt
warning: file not found in file list for package darling. skipping extraction of usr/libexec/darling/System/Library/OpenSSL/certs/Certinomis_-_Autorité_Racine.crt
warning: file not found in file list for package darling. skipping extraction of usr/libexec/darling/System/Library/OpenSSL/certs/EBG_Elektronik_Sertifika_Hizmet_Sağlayıcısı.crt
warning: file not found in file list for package darling. skipping extraction of usr/libexec/darling/System/Library/OpenSSL/certs/NetLock_Arany_=Class_Gold=_Főtanúsítvány.crt
warning: file not found in file list for package darling. skipping extraction of usr/libexec/darling/System/Library/OpenSSL/certs/TÜBİTAK_UEKAE_Kök_Sertifika_Hizmet_Sağlayıcısı_-_Sürüm_3.crt
warning: file not found in file list for package darling. skipping extraction of usr/libexec/darling/System/Library/OpenSSL/certs/TÜRKTRUST_Elektronik_Sertifika_Hizmet_Sağlayıcısı_H5.crt
warning: file not found in file list for package darling. skipping extraction of usr/libexec/darling/System/Library/OpenSSL/certs/TÜRKTRUST_Elektronik_Sertifika_Hizmet_Sağlayıcısı_H6.crt
2 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
ce48e2

Author

11
posts
220
comments
1
media
View profile

7 comments

Does it still do then if you prefix the command with LANG=C?

2 points

You might be onto something here. I installed with LANG=C and got different results.

/usr/bin/darling-setup-ld-so: line 9: ./etc/ld.so.conf: No such file or directory
/usr/bin/darling-setup-ld-so: line 9: ./etc/ld.so.conf.d/lib32-glibc.conf: No such file or directory
/usr/bin/darling-setup-ld-so: line 9: ./etc/ld.so.conf.d/opencollada.conf: No such file or directory
/usr/bin/darling-setup-ld-so: line 9: ./etc/ld.so.conf.d/openmpi.conf: No such file or directory
/usr/bin/darling-setup-ld-so: line 9: ./etc/ld.so.conf.d/fakeroot.conf: No such file or directory
/usr/bin/darling-setup-ld-so: line 9: ./etc/ld.so.conf.d/android-sdk.conf: No such file or directory
/usr/bin/darling-setup-ld-so: line 14: ./etc/ld.so.conf.d/defaults.conf: No such file or directory

No mentioned of the original missing files. I am going to try building with that variable and installing with it with the same.

1 points

So turns out these errors are un-related, i think the script never even ran in the first place lol!Is there anything at the package level I can do to resolve the original error other than telling people to install with LANG=C ? If i understand right this is happening during the bsdtar extraction

1 points

Thanks again, I think I narrowed it down. I simply added this line to my PKGBUILD:

# Normalize OpenSSL Cert Filenames for Linux
    convmv -f UTF-8 -t UTF-8 --nfc --notest --replace "$pkgdir"/usr/libexec/darling/System/Library/OpenSSL/certs/*

and then opened a PR upstream: https://github.com/darlinghq/darling-openssl_certificates/pull/1

It's fairly broken right now anyways so it's tough for me to verify but the PKGBUILD is now happy

1 points

Offtopic but why is darling installing its own trust store?

2 points

That's possibly a better question for the developers but it lays out something like a chroot environment that looks nearly identical to what you'd find on macOS.

https://wiki.darlinghq.org/darling_shell

Really couldn't tell you why they do that over trying to use host system trusts. Maybe it's just easier and more portable?

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.