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
Created attachment 513828 [details] emerge --info
Created attachment 513830 [details] build.log
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."
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(-)
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