Bug 923146

Summary: yum-builddep --help causes stack trace
Product: [openSUSE] openSUSE 13.1 Reporter: Owen Synge <osynge>
Component: BasesystemAssignee: Dirk Mueller <dmueller>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: bwiedemann, chcao
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 13.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Owen Synge 2015-03-19 10:33:43 UTC
On a fresh installed opensuse 13.1 I get the following issue !

# zypper install yum-utils

All runs fine :)

But then!

# yum-builddep --help
Traceback (most recent call last):
  File "/usr/bin/yum-builddep", line 139, in <module>
    util = YumBuildDep()
  File "/usr/bin/yum-builddep", line 41, in __init__
    self.main()
  File "/usr/bin/yum-builddep", line 48, in main
    opts = self.doUtilConfigSetup()
  File "/usr/share/yum-cli/utils.py", line 298, in doUtilConfigSetup
    (opts, self.cmds) = self._parser.setupYumConfig()
  File "/usr/share/yum-cli/cli.py", line 1526, in setupYumConfig
    (opts, cmds) = self.parse_args()
  File "/usr/lib64/python2.7/optparse.py", line 1399, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib64/python2.7/optparse.py", line 1439, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib64/python2.7/optparse.py", line 1514, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib64/python2.7/optparse.py", line 788, in process
    self.action, self.dest, opt, value, values, parser)
  File "/usr/lib64/python2.7/optparse.py", line 808, in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  File "/usr/share/yum-cli/cli.py", line 1659, in _wrapOptParseUsage
    self.base.usage()
  File "/usr/share/yum-cli/cli.py", line 1412, in usage
    sys.stdout.write(self.optparser.format_help())
AttributeError: 'YumBuildDep' object has no attribute 'optparser'
Comment 1 Owen Synge 2015-03-19 10:35:16 UTC
optparse is present!

/usr/lib64/python2.7/optparse.py
Comment 2 Bernhard Wiedemann 2015-03-19 10:47:22 UTC
reproducible on 13.1 and Factory.
It seems, yum-utils is quasi orphaned
with ug and cthiel gone.
Comment 3 Vincent Untz 2015-03-19 10:54:36 UTC
I'm not maintaining it (and tbh, have no time for that), so assigning it to me won't help unfortunately :/
Comment 4 Chenzi Cao 2015-03-23 09:02:17 UTC
Hi Dirk, would you please kindly help to have a look at here? I can not find a bugowner of this issue and it seems that you are one of the maintainers, would you please help here? If I make a mistake, please feel free to reassign. Thank you so much!
Comment 5 Owen Synge 2015-03-23 09:45:24 UTC
rpmspec -q --buildrequires ceph.spec

Makes a good replacement for this command.

I at least no longer need this fixed due to this solution.
Comment 6 Tomáš Chvátal 2018-04-12 13:43:49 UTC
This version of openSUSE changed to end-of-life (EOL [1]) status. As such
it is no longer maintained, which means that it will not receive any
further security or bug fix updates.
As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
openSUSE, or consider the bug still valid, please feel free to reopen this
bug against that version, or open a new ticket.

Thank you for reporting this bug and we are sorry it could not be fixed
during the lifetime of the release.

[1] https://en.opensuse.org/Lifetime