At 13:51 Uhr +0900 15.01.2003, Peter O'Gorman wrote:
Uhm, the version of gal I used works just fine with an AGE of 1, using this code:On Wednesday, January 15, 2003, at 12:53 AM, Max Horn wrote:This is pretty bad actually, having thought about it a little, I'd suggest that for GAL just set the age to zero and pretend that it is binary incompatible, otherwise we will overwrite files in gal21-shlibs with a badly versioned library, and apps will cease to function complaining about the compatibility version of the library.
# Like Linux, but with the current version available in
# verstring for coding it into the library header
major=.`expr $current - $age`
versuffix="$major.$age.$revision"
minor_current=`expr $current + 1`
verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
Otherwise, age is not handled right, as is visible in the above concrete example.
Comments? Am I nuts and this is right code in libtool after all? If so, please explain why. Or do you think it's buggy, too? Tell us!. But maybe my suggested fix is wrong, too? Fine, please explain why and tell us how to do it right, if possible, I'd love to know & fix it.
# Darwin ld doesn't like 0 for these options...
major_plus_one=`expr $current - $age + 1`
verstring="-compatibility_version $major_plus_one -current_version $major_plus_one.$age.$revision"
There is no file overwrite; it's simply a new version of gal-21 (gal21-0.22-1, it's on the submission tracker). The file is named differently, and has a different version.
Note that AGE ranks higher than REVISION; age denotes API additions (but no removals), whil revision is incremented for any source change.
I don't see any problems with that, would you please elaborate what *exactly* is broken with such a change?
I think that it should be
major_current=`expr $major +1`
verstring="-compatibility_version $major_current -current_version $minor_current.$revision"
No that is definitly wrong. $major contains a string that start with a .
It is borked for any non zero age :( Peter
--
-----------------------------------------------
Max Horn
Software Developer
-------------------------------------------------------
This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel