Building the sci-geosciences/gpsd package failed with a locale set to "en_US": Creating 'packaging/rpm/gpsd.spec' scons: *** [packaging/rpm/gpsd.spec] UnicodeEncodeError : 'latin-1' codec can't encode character '\u010d' in position 8451: ordinal\ not in range(256) Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/SCons/Action.py", line 1280, in execute result = self.execfunction(target=target, source=rsources, env=env) File "/usr/lib/python3.8/site-packages/SCons/Tool/textfile.py", line 134, in _action target_file.write(_do_subst(line, subs)) UnicodeEncodeError: 'latin-1' codec can't encode character '\u010d' in position 8451: ordinal not in range(256) scons: building terminated because of errors. # eselect locale list Available targets for the LANG variable: [1] C [2] C.utf8 [3] en_US * [4] en_US.iso88591 [5] en_US.utf8 [6] POSIX [ ] (free form) Changing my locale to "en_US.utf8" allowed the build to succeed.
I saw the the same thing today on sci-geosciences/gpsd package I was ready to open a new bug but saw this, yep changing my local to en_US.utf8" allowed the build to succeed also. Please fix this or explain ? Thanks for the tip BTW , but wasted most of the day trying to get around this problem ...
Created attachment 770444 [details, diff] proposed patch to flatten the Unicode Signed-off-by: James T Browning <JamesB.fe80@gmail.com> tested: no but works for what it does upstream
(In reply to James Browning from comment #2) > Created attachment 770444 [details, diff] [details, diff] > proposed patch to flatten the Unicode > > Signed-off-by: James T Browning <JamesB.fe80@gmail.com> > tested: no but works for what it does upstream The patches don't seem to apply.
The full build.log would be good (and emerge --info) for future so I know exactly where to place the workaround.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04f90be30d7dd8beca5fb491dc2a79fd81ed7000 commit 04f90be30d7dd8beca5fb491dc2a79fd81ed7000 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-28 02:47:33 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-28 02:58:23 +0000 sci-geosciences/gpsd: add 3.24 Closes: https://bugs.gentoo.org/658836 Closes: https://bugs.gentoo.org/796476 Closes: https://bugs.gentoo.org/833128 Signed-off-by: Sam James <sam@gentoo.org> sci-geosciences/gpsd/Manifest | 1 + sci-geosciences/gpsd/gpsd-3.24.ebuild | 227 ++++++++++++++++++++++++++++++++++ sci-geosciences/gpsd/gpsd-9999.ebuild | 23 +++- 3 files changed, 247 insertions(+), 4 deletions(-)