Opened 17 years ago

Closed 17 years ago

#244 closed defect (fixed)

bindings should use "swig -MD"

Reported by: Olly Betts Owned by: Richard Boulton
Priority: high Milestone: 1.1.0
Component: Xapian-bindings Version: SVN trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description (last modified by Olly Betts)

SWIG supports automatic generation of dependencies via -MD, etc options similar to those which GCC supports. The bindings should use this to ease development - then if you modify a xapian-core header which SWIG parses directly, make in the bindings will know to rerun SWIG.

Attachments (1)

xapian-config-kill-swig-headers.patch (2.1 KB ) - added by Olly Betts 17 years ago.
Combined patch to remove --swig-headers

Download all attachments as: .zip

Change History (9)

comment:1 by Olly Betts, 17 years ago

Blocking: 160 added

We've not yet made a release with --swigheaders in so we should address this for 1.1 so we don't need to worry about compatibility between releases with/without support for --swigheaders.

comment:2 by Olly Betts, 17 years ago

Operating System: All
Status: newassigned

comment:4 by Richard Boulton, 17 years ago

Description: modified (diff)
Milestone: 1.1

comment:5 by Richard Boulton, 17 years ago

Blocking: 160 removed

comment:6 by Olly Betts, 17 years ago

Owner: changed from New Bugs to Richard Boulton
Status: assignednew

by Olly Betts, 17 years ago

Combined patch to remove --swig-headers

comment:7 by Olly Betts, 17 years ago

Description: modified (diff)
Milestone: 1.1.0

In fact, I'm just going to back out the --swigheaders change, and unset the milestone on this bug. Once we release a xapian-config with this option, we have to worry about breaking compatibility if we remove it again, so we definitely need to resolve that part for 1.1.0.

The second part - using -MD instead - is less urgent I think. Nobody has complained about the lack of such dependencies in release versions - these dependencies are really only useful if you're developing and so might modify xapian-core. And there's an easy workaround - just: touch xapian.i

comment:8 by Richard Boulton, 17 years ago

Priority: normalhigh
Status: newassigned

This is currently breaking buildbot (or, at least, the buildbot builders which just do svn update then make, which is the majority of them). I could fix it manually for each builder (by doing "touch xapian.i"), but that's tedious and it would just break with the next change to the bindings anyway.

I agree that this doesn't need to block a release, but we do need to have a working buildbot to help ensure that code which is released compiled in different environments, so I'm increasing the priority of this bug so I don't forget to address it soon.

comment:9 by Richard Boulton, 17 years ago

Milestone: 1.1.0
Resolution: fixed
Status: assignedclosed

Completed on SVN HEAD. Bindings now use -MD to get dependencies.

Note: See TracTickets for help on using tickets.