Wind River Support Network

HomeDefectsLIN8-8156
Fixed

LIN8-8156 : mercurial-native: hg command failed

Created: Nov 8, 2017    Updated: Dec 3, 2018
Resolved Date: Nov 10, 2017
Found In Version: 8.0.0.22
Fix Version: 8.0.0.23
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Build & Config

Description

After applying the patch of CVE-2017-9462(LIN8-6848), the hg command will fail as follows:

Traceback (most recent call last):
  File "./hg", line 38, in <module>
    mercurial.dispatch.run()
  File "bitbake_build/tmp/work/x86_64-linux/mercurial-native/3.0.1-r0/image/buildarea/zchi/workspace/work/x86-64/lin7/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "bitbake_build/tmp/work/x86_64-linux/mercurial-native/3.0.1-r0/image/buildarea/zchi/workspace/work/x86-64/lin7/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 69, in dispatch
    ret = _runcatch(req)
  File "bitbake_build/tmp/work/x86_64-linux/mercurial-native/3.0.1-r0/image/buildarea/zchi/workspace/work/x86-64/lin7/bitbake_build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 97, in _runcatch
    IndexError, getopt.GetoptError):
NameError: global name 'getopt' is not defined

Need to import getopt module in dispatch.py

Steps to Reproduce

make -C build mercurial-native
execute hg command

Other Downloads


Live chat
Online