Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643948 - app-admin/syslog-ng-3.13.2 - UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3
Summary: app-admin/syslog-ng-3.13.2 - UnicodeDecodeError: 'ascii' codec can't decode b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-08 20:48 UTC by Bertrand Jacquin
Modified: 2018-01-12 12:43 UTC (History)
3 users (show)

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


Attachments
emerge --info (info.log,16.75 KB, text/x-log)
2018-01-08 20:49 UTC, Bertrand Jacquin
Details
build.log (build.log,79.80 KB, text/x-log)
2018-01-08 20:50 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2018-01-08 20:48:23 UTC
Hi,

app-admin/syslog-ng-3.13.2 fail to build with the following error:

/bin/sh /var/tmp/portage/app-admin/syslog-ng-3.13.2/work/syslog-ng-3.13.2/install-sh -d lib/
./lib/merge-grammar.py lib/block-ref-grammar.ym > lib/block-ref-grammar.y
Traceback (most recent call last):
  File "./lib/merge-grammar.py", line 55, in <module>
    for line in fileinput.input():
  File "/usr/lib64/python3.5/fileinput.py", line 248, in __next__
    line = self._readline()
  File "/usr/lib64/python3.5/fileinput.py", line 362, in _readline
    return self._readline()
  File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 68: ordinal not in range(128)
Traceback (most recent call last):
  File "./lib/merge-grammar.py", line 55, in <module>
    for line in fileinput.input():
  File "/usr/lib64/python3.5/fileinput.py", line 248, in __next__
    line = self._readline()
  File "/usr/lib64/python3.5/fileinput.py", line 362, in _readline
make: *** [Makefile:18250: lib/rewrite/rewrite-expr-grammar.y] Error 1
make: *** Waiting for unfinished jobs....
    return self._readline()
  File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]

...

Full log attached as long as emerge --info, here is a few more information:

# eselect locale list
Available targets for the LANG variable:
  [1]   C
  [2]   POSIX
  [3]   en_US
  [4]   en_US.iso88591
  [5]   en_US.utf8 *

# eselect python list
Available Python interpreters, in order of preference:
  [1]   python2.7
  [2]   python3.5
  [3]   python3.6 (fallback)
  [4]   python3.4 (fallback)


Reproducible: Always
Comment 1 Bertrand Jacquin 2018-01-08 20:49:11 UTC
Created attachment 513828 [details]
emerge --info
Comment 2 Bertrand Jacquin 2018-01-08 20:50:09 UTC
Created attachment 513830 [details]
build.log
Comment 3 Tomáš Mózes 2018-01-09 05:47:50 UTC
Yes, you are right, we need to drop python3 support. When we did the 3.12 bump someone raised a point to add python3 and it worked for me back then, probably I did something wrong and only had python2 anyway. According to the doc only python2 is supported:

https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/python-parser.html

"Currently only Python 2.7 is supported."
Comment 4 Larry the Git Cow gentoo-dev 2018-01-11 22:54:01 UTC
The bug has been closed via the following commit(s):

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

commit 4a25c4ea1a7b89aa1d8d577939fb8002756b95d8
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2018-01-09 05:55:26 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2018-01-11 22:51:20 +0000

    app-admin/syslog-ng: drop python3.
    
    Closes: https://bugs.gentoo.org/643948
    Package-Manager: Portage-2.3.19, Repoman-2.3.6
    Closes: https://github.com/gentoo/gentoo/pull/6802

 app-admin/syslog-ng/syslog-ng-3.12.1.ebuild | 4 ++--
 app-admin/syslog-ng/syslog-ng-3.13.2.ebuild | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 5 Ben Kohler gentoo-dev 2018-01-12 12:43:40 UTC
Adding link to upstream feature request for py3 support so we might be able to add py3 support back later

https://github.com/balabit/syslog-ng/issues/1831