Bug 36427 - Сломана сборка node-source-map
Summary: Сломана сборка node-source-map
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-build-nodejs (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: viy
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-26 16:37 MSK by AEN
Modified: 2019-03-29 19:05 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description AEN 2019-03-26 16:37:33 MSK
Прошу обновить
Comment 1 Stanislav Levin 2019-03-27 11:11:11 MSK
Since rpm-build-nodejs:0.20.1-alt1 node-source-map FTBFS:
"""
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.xowuOw
find-provides: running scripts (alternatives,debuginfo,lib,nodejs,pam,perl,pkgconfig,python,shell)
Traceback (most recent call last):
  File "/usr/lib/rpm/nodejs.prov", line 98, in <module>
    main()
  File "/usr/lib/rpm/nodejs.prov", line 91, in main
    handle_module(path, bundled=False)
  File "/usr/lib/rpm/nodejs.prov", line 73, in handle_module
    handle_package_json(path, bundled=bundled)
  File "/usr/lib/rpm/nodejs.prov", line 44, in handle_package_json
    metadata = json.load(fh)
  File "/usr/lib64/python3.6/json/__init__.py", line 296, in load
    return loads(fp.read(),
  File "/usr/lib64/python3.6/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 1614: ordinal not in range(128)
find-provides: ERROR: /usr/lib/rpm/nodejs.prov failed
error: /bin/sh failed
error: Failed to find Provides
"""

The package.json contains Unicode symbols:
"""
    "Eddy Bruël <ejpbruel@mozilla.com>",
...                                                
    "Nicolas Lalevée <nicolas.lalevee@hibnet.org>"
"""
Comment 2 Repository Robot 2019-03-27 14:36:20 MSK
rpm-build-nodejs-0.20.2-alt1 -> sisyphus:

Wed Mar 27 2019 Igor Vlasenko <viy@altlinux.ru> 0.20.2-alt1
- utf-8 patch (closes: #36427)
Comment 3 AEN 2019-03-27 14:38:59 MSK
Спасибо!