[Bugs] [Bug 1129939] NetBSD port

bugzilla at redhat.com bugzilla at redhat.com
Thu Nov 6 06:28:13 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1129939



--- Comment #147 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/8978 committed in master by Vijay Bellur
(vbellur at redhat.com) 
------
commit 1a735e300a0ecd35d41f68f3c776350bb18f763a
Author: Emmanuel Dreyfus <manu at netbsd.org>
Date:   Wed Oct 29 20:35:10 2014 +0100

    glupy: portability fixes

    Fixes portability problems so that NetBSD passes tests/features/glupy.t

    - Use python-config to detect python build environment on all systems,
      not just Linux and Darwin.
    - Get the site-package directory from python and make sure we install
      glupy.py there, Previously we installed within glusterfs prefix,
      which caused a problem if it was different that python's prefix.
    - Set PYTHONPATH for tests so that the detected site-packages is used
      in python's search path. This should be useless, but let us have it
      just in case.
    - Pass glupy.so path from glusterfsd to glupy.py through an
      environment variable and use it in CDLL instead of "", as the
      later seems not portable (at least it fails on NetBSD).
    - Use gil_init_key pthread_getspecific to avoid deadlocks (that
      code was #ifdef out, perhaps because it was not needed on Linux,
      but it seems to be required for NetBSD.
    - Recover the error message from Python and send it to the logs
      to help debugging problems.

    BUG: 1129939
    Change-Id: Icc71e77d6940f0759cc14c5c5cf7ca6fa431e0d2
    Signed-off-by: Emmanuel Dreyfus <manu at netbsd.org>
    Reviewed-on: http://review.gluster.org/8978
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Jeff Darcy <jdarcy at redhat.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list