octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: [swig:bugs] #1353 Octave 3.8.0 support


From: William S Fulton
Subject: Re: Fwd: [swig:bugs] #1353 Octave 3.8.0 support
Date: Tue, 14 Jan 2014 08:53:33 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

On 11/01/14 19:00, Carnë Draug wrote:
On 9 January 2014 08:04, William S Fulton <address@hidden> wrote:
William S Fulton wrote
Commit http://hg.savannah.gnu.org/hgweb/octave/rev/b6b6e0dc700e looks like
it will satisfy our needs. Thanks for restoring some sort of usable
versioning.

It isn't quite as I'd hoped for detecting 3.8.0. Seems that version 3.2 and
earlier doesn't define OCTAVE_API_VERSION_NUMBER in version.h either, so
John Eaton's suggestion for detecting 3.8.0 doesn't work because neither
OCTAVE_API_VERSION_NUMBER nor OCTAVE_{MAJOR,MINOR,PATCH} are defined in
3.8.0 or versions <=3.2. We already have quite a bit of preprocessor logic
for versions < 3.2. Can you please suggest a header that is available in all
versions of Octave <= 3.2 and in 3.8.0 which contains a macro to distinguish
3.8.0 from earlier versions? Perhaps using the talked about features can be
used as a hack to detect 3.8.0?

I'm confused. The whole problem here is that OCTAVE_API_VERSION_NUMBER
was dropped in 3.8.0. Now the problem is that the previously working
version of Octave, 3.2.0, also did not have it defined? Whatever logic
you're using to identify 3.2.0, does not work anymore?

Correct, because the absence of OCTAVE_API_VERSION_NUMBER also indicated 3.2.0 or earlier.

Also, Octave 3.2.0 is quite old and the usual stance when users have
problems with it is to upgrade. Your ubuntu may only be 20 moths old,
but that version was released 4 years ago and 3.4 was released 3 years
ago. I believe the reason it still has Octave 3.2 is because the
Debian testing it was based on, was frozen for a very long time. We
redirect Ubuntu users to our PPA.
I appreciate you think this is old, but in the real world this is the latest stable version available on the most commonly used Linux platform upon which a lot is built. For us, this includes our test infra, so dropping support is not entirely reasonable.

Anyway, the kind of hack I envisaged has been found to distinguish 3.8.0 and versions prior to 3.2 thanks to Kris Thielemans and so now we can support all the 3.x.x versions again. For the record, the commit is https://github.com/swig/swig/commit/5b167cc12daf9ea275c17fedaefc975450613ab2

William


reply via email to

[Prev in Thread] Current Thread [Next in Thread]