[Scons-dev] [PATCH] scons soname on OpenBSD
Gary Oberbrunner
garyo at oberbrunner.com
Sat Sep 7 16:24:41 EDT 2013
Hi, Stefan.
On Sat, Sep 7, 2013 at 5:57 AM, Stefan Sperling <stsp at openbsd.org> wrote:
> On Fri, Sep 06, 2013 at 10:04:07PM -0400, Gary Oberbrunner wrote:
> > I don't have any problem with this conceptually. The
> > sys.platform.startswith() would be better as a function perhaps
> > (is_openbsd() or maybe just is_bsd()). Is this also true for freebsd for
> > instance?
>
> I don't know if this applies to FreeBSD, but I wouldn't count on it.
> The various BSDs can be very different in such matters.
>
OK, sounds good.
> I do know that FreeBSD's ports system wasn't as strict about shared
> library versioning years ago when I used it, but that might have
> changed since. If I were you, I would assume FreeBSD is fine with
> whatever scons is doing, unless someone complains or sends a patch.
>
> > And a more flexible way of handling the multi-part version
> > numbers would be welcome, perhaps as a separate patch.
>
> I agree, but I don't think I have the time to do that. I'm not
> sure what the implications are for scons code base, and I don't
> really know the code base. So if you're asking me to do that,
> I'm afraid I'll have to decline.
>
> I'm just trying to provide a drive-by fix for a scons issue that I
> have to deal with in order to provide an up-to-date port of Subversion
> for OpenBSD (a problem I only have because serf, a dependency of
> Subversion, has switched to using scons exclusively -- else, I wouldn't
> be here).
>
Understood. You're not responsible for cleaning up our code. Of course,
any time you want to help... it's always welcome. :-) :-) But no, that's
more an idea for future enhancement.
> > If you can submit this as a mercurial patch, ideally with a testcase
> (SCons
> > uses TDD), we should be able to work it in.
>
> Pardon my ignorance: I sent the output of 'hg diff'.
> Is a "mercurial patch" something else?
>
The ideal way to contribute to SCons is to fork the mercurial repo at
https://bitbucket.org/scons/scons, make your change, then submit a pull
request. Patches sent to the mailing list can get lost.
What kind of test case do you expect? Something that checks linker
> invokation command lines and fails if a soname is used on OpenBSD?
Yes -- TDD says that the best test case is one that fails before your
change (on OpenBSD in this case) and succeeds afterward.
For info on writing tests, start with
http://www.scons.org/wiki/DeveloperGuide/TestingMethodology and
http://www.scons.org/wiki/DevelopingTests. There's also a good intro in
QMTest/test-framework.rst if you have a local copy of the source.
If you can make a test case, I actually have access to a FreeBSD system so
I could check whether it has your issue or not.
Hope that's helpful;
--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20130907/f06a6c3b/attachment.html>
More information about the Scons-dev
mailing list