sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 6365] New: optional_depends doesn't handle providers well
- From: bugzilla-daemon AT metalab.unc.edu
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 6365] New: optional_depends doesn't handle providers well
- Date: Mon, 15 Mar 2004 20:21:04 -0500
http://bugs.sourcemage.org/show_bug.cgi?id=6365
Summary: optional_depends doesn't handle providers well
Product: Sorcery
Version: 1.x Series
Platform: Other
OS/Version: other
Status: NEW
Severity: major
Priority: P2
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: rycee AT home.se
The GD spell (see bug #6261) optionally depends on a X11-LIBS provider so I
added the following to the DEPENDS file:
optional_depends X11-LIBS '-options="JPG,FT,XPM"' '-options="JPG,FT"' \
"Enables support for the XPM image file format."
Now, the way I expect it to work is that if you select "[none]" when asked
about
which X11-LIBS spell you want to use then -options="JPG,FT" should be used. If
you select a spell in the menu then -options="JPG,FT,XPM" should be used.
The way optional_depends works now isn't like that though, when selecting
"[none]" then the following is written to /var/state/sorcery/depends:
"GD:X11-LIBS:providedby:optional:[none]:". Additionally, neither of the
-option
alternatives are used which of course causes the spell to fail.
When you select a spell in the menu then the behaviour is correct. I worked a
bit on fixing this and did arrive at something close to functioning but I
never
managed to avoid getting the menu even though the spell is previously
configured.
Unfortunately I lost all the changes I made to libdepends when I stupidly did
a
sorcery update for some unexplainable reason. I'll recreate the changes and
attach a patch to this bug in the morning.
I believe this problem is rather important and would like to see it fixed in
the
next stable release if possible.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
- [SM-Sorcery-Bugs] [Bug 6365] New: optional_depends doesn't handle providers well, bugzilla-daemon, 03/15/2004
Archive powered by MHonArc 2.6.24.