Bug 198865 - smart chokes on autofs5's +map syntax
Summary: smart chokes on autofs5's +map syntax
Alias: None
Product: Fedora
Classification: Fedora
Component: smart
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Axel Thimm
QA Contact: Fedora Extras Quality Assurance
Keywords: Reopened
: 208647 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2006-07-14 09:44 UTC by Jurgen Kramer
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Clone Of:
Last Closed: 2006-09-30 09:31:59 UTC

Attachments (Terms of Use)

Description Jurgen Kramer 2006-07-14 09:44:28 UTC
Description of problem:
smart crashes when trying a smart update / upgrde

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. smart upgrade or update
Actual results:
[root@macbook ~]# smart update
Traceback (most recent call last):
  File "/usr/bin/smart", line 194, in ?
  File "/usr/bin/smart", line 161, in main
    forcelocks=opts.ignore_locks, loglevel=opts.log_level)
  File "/usr/lib/python2.4/site-packages/smart/__init__.py", line 115, in init
    ctrl = Control(configfile, forcelocks)
  File "/usr/lib/python2.4/site-packages/smart/control.py", line 53, in __init__
    self._fetcher = Fetcher()
  File "/usr/lib/python2.4/site-packages/smart/fetcher.py", line 53, in __init__
    self._mediaset = MediaSet()
  File "/usr/lib/python2.4/site-packages/smart/media.py", line 34, in __init__
  File "/usr/lib/python2.4/site-packages/smart/media.py", line 41, in discover
    for lst in hooks.call("discover-medias"):
  File "/usr/lib/python2.4/site-packages/smart/hook.py", line 64, in call
    val = hook[0](*hookparam, **hookkwparam)
  File "/usr/lib/python2.4/site-packages/smart/media.py", line 329, in
    prefix, mapfile = line.split()[:2]
ValueError: need more than 1 value to unpack

Expected results:
working smart ;)

Additional info:
this is on a fully updated FC6 devel

Comment 1 Axel Thimm 2006-07-14 10:11:06 UTC
smart needs a rebuild on rawhide, but currently it breaks:

smart/util/celementtree/expat/xmlparse.c:75:2: error: #error memmove does not
exist on this platform, nor is a substitute available

Comment 2 Axel Thimm 2006-08-20 14:25:46 UTC
When I opened bug #201435 I didn't realize that it was a duoplicate of this one,
sorry. Since the resolution is in the other bug I'm closing this as a duplicate
of the other.

In case it's not the same issue please reopen, thanks!

*** This bug has been marked as a duplicate of 201435 ***

Comment 3 Axel Thimm 2006-08-20 23:16:05 UTC
I should better read the description not my own comment. While smart didn't
build until now for FC6, it doesn't really explain the error you see.

Can you please try again with the latest smart package? If it still fails (I
assume it will), please post the contents of auto.master. Thanks!

Comment 4 Deji Akingunola 2006-08-21 02:52:14 UTC
I've just updated to the latest smart package (smart-0.42-35.fc6), and it failed
to start giving the same traceback as in the initial bug report. If it matters,
this is a x86_64 system.

Comment 5 Axel Thimm 2006-08-21 11:38:59 UTC
That was expected, what about the contents of /etc/auto.master?

Comment 6 Deji Akingunola 2006-08-21 13:08:02 UTC
Sorry, it seems I didn't read comment #3 ver well earlier. Below is the entire
content of /etc/auto.master
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
/misc	/etc/auto.misc
/net	/etc/auto.net
# Include central master map if it can be found using
# nsswitch sources.
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.

Comment 7 Axel Thimm 2006-08-21 13:19:24 UTC
The last line is what causes the breakage. smart assumes that all non-commented
entries in this file have at least two words.

If you comment that line smart will work again. See als bug #193831.

Comment 8 Deji Akingunola 2006-08-21 13:28:49 UTC
(In reply to comment #7)
> The last line is what causes the breakage. smart assumes that all non-commented
> entries in this file have at least two words.
> If you comment that line smart will work again. See als bug #193831.
Yes you're right, it did work with the last line commented.

Comment 9 Jurgen Kramer 2006-08-21 17:48:25 UTC
I can confirm that commenting the last line of /etc/auto.master makes smart work

Comment 10 Axel Thimm 2006-09-01 22:27:37 UTC
Upcoming package (-37) will have a check to skip +<map> entries in auto.master.
This is a short term fix, long term smart should query autofs directly instead
of replicating its parsing. Upstream has been notified and will fix it in a next

Comment 11 Axel Thimm 2006-09-30 08:15:06 UTC
The patch is bogus: it applies the fix a couple lines too high. :(

Comment 12 Axel Thimm 2006-09-30 08:16:12 UTC
*** Bug 208647 has been marked as a duplicate of this bug. ***

Comment 13 Axel Thimm 2006-09-30 09:31:59 UTC
Fixed the fixing patch.

Note You need to log in before you can comment on or make changes to this bug.