Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690304 - dispatch-conf fails to update SSL Cert config with unusal encoding as file name
Summary: dispatch-conf fails to update SSL Cert config with unusal encoding as file name
Status: IN_PROGRESS
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: AMD64 Linux
: Normal trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 691278
  Show dependency tree
 
Reported: 2019-07-20 18:27 UTC by int80
Modified: 2019-08-02 03:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description int80 2019-07-20 18:27:00 UTC
# dispatch-conf
[H[J--- /tmp/tmpip9gluhe/0	2019-07-20 19:59:46.229764378 +0200
+++ /tmp/tmpip9gluhe/1	2019-07-20 19:59:46.229764378 +0200
@@ -1 +1 @@
-SYM: /etc/ssl/certs/NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem -> /usr/share/ca-certificates/mozilla/NetLock_Arany_=Class_Gold=_Főtanúsítvány.crt
+SYM: /etc/ssl/certs/NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem -> ../../../usr/share/ca-certificates/mozilla/NetLock_Arany_=Class_Gold=_Főtanúsítvány.crt

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/dispatch-conf", line 519, in <module>
    portage.settings.get('CONFIG_PROTECT', '')))
  File "/usr/lib/python-exec/python3.6/dispatch-conf", line 297, in grind
    print('>> (%i of %i) -- %s' % (count, len(confs), conf ['current']))
UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 59: ordinal not in range(128)

etc-update can handle it though.
Comment 1 Zac Medico gentoo-dev 2019-07-20 19:57:25 UTC
We can use portage.util.writemsg_stdout for encoding here.
Comment 2 Zac Medico gentoo-dev 2019-07-20 20:09:57 UTC
Patch: https://github.com/gentoo/portage/pull/438
Comment 3 Larry the Git Cow gentoo-dev 2019-07-21 04:12:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=3ebe48e61a02cb00c3bb2366e50b4c83ef390ecb

commit 3ebe48e61a02cb00c3bb2366e50b4c83ef390ecb
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-07-20 20:06:50 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-07-20 20:08:01 +0000

    dispatch-conf: use writemsg for unicode safety (bug 690304)
    
    Bug: https://bugs.gentoo.org/690304
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 bin/dispatch-conf | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2019-08-02 03:46:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea52ac5964e3242159373adf567ff61403b31f96

commit ea52ac5964e3242159373adf567ff61403b31f96
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2019-08-02 03:41:26 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2019-08-02 03:46:19 +0000

    sys-apps/portage: Bump to version 2.3.70
    
     #233589 Support PROPERTIES=live
     #690304 dispatch-conf unicode safety
     #690446 emaint -c binhost support for binpkg-multi-instance
     #690758 network-sandbox support for AI_ADDRCONFIG
    
    Bug: https://bugs.gentoo.org/233589
    Bug: https://bugs.gentoo.org/690304
    Bug: https://bugs.gentoo.org/690446
    Bug: https://bugs.gentoo.org/690758
    Bug: https://bugs.gentoo.org/691278
    Package-Manager: Portage-2.3.70, Repoman-2.3.16
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-2.3.70.ebuild | 260 +++++++++++++++++++++++++++++++++
 2 files changed, 261 insertions(+)