Wind River Support Network

HomeDefectsLIN7-9119
Fixed

LIN7-9119 : mercurial-native: hg command failed

Created: Nov 8, 2017    Updated: Sep 8, 2018
Resolved Date: Nov 14, 2017
Previous ID: LIN8-8157
Found In Version: 7.0.0.26
Fix Version: 7.0.0.27
Severity: Standard
Applicable for: Wind River Linux 7
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