Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 796476 - sci-geosciences/gpsd build fails with en_US locale trying to encode '\u010d'
Summary: sci-geosciences/gpsd build fails with en_US locale trying to encode '\u010d'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-17 11:50 UTC by tedheadster
Modified: 2022-04-28 02:58 UTC (History)
1 user (show)

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


Attachments
proposed patch to flatten the Unicode (0002-sci-geosciences-gpsd-address-796476-by-flattening-un.patch,4.18 KB, patch)
2022-04-12 19:04 UTC, James Browning
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tedheadster 2021-06-17 11:50:54 UTC
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.
Comment 1 flasch 2021-06-22 23:53:11 UTC
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 ...
Comment 2 James Browning 2022-04-12 19:04:02 UTC
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
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-28 02:52:47 UTC
(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.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-28 02:53:26 UTC
The full build.log would be good (and emerge --info) for future so I know exactly where to place the workaround.
Comment 5 Larry the Git Cow gentoo-dev 2022-04-28 02:58:35 UTC
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(-)