[Bugs] [Bug 1129939] NetBSD port

bugzilla at redhat.com bugzilla at redhat.com
Tue Mar 31 06:45:14 UTC 2015


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



--- Comment #286 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9944 committed in master by Vijay Bellur
(vbellur at redhat.com) 
------
commit ffb2e85ff574891639d899cc59fcd9f75d4ce51e
Author: Emmanuel Dreyfus <manu at netbsd.org>
Date:   Thu Mar 19 12:05:16 2015 +0100

    Tests: portability fixes for ipc.t

    This fixes portability problems in ipc.t so that it can run on NetBSD:

    1) EOPNOTSUPP value is OS-dependent. Learn it from system headers
       instead of hard-coding it in the script

    2) liglusterfs embbeds its own UUID implementation. The function name
       may be the same as in built(in implementation from libc, but with
       different prototype. In that case, we must make sure python will
       use libglusterfs's version, otherwise we will crash in libc's UUID
       code. Since dlopen() does not make any guarantee on what symbol
       will be used, me need to preload libglusterfs when loading python.
       This is done using LD_PRELOAD.

    3) In python code we need to load with RTLD_GLOBAL global in order
       to have dependencies loaded

    4) Python's ctypes.util.find_library does not lookup LD_LIBRARy_PATH
       and may therefore miss the library. On failure, retry with less
       portable but more reliable explicit name

    BUG: 1129939
    Change-Id: I024cdfd03a5a42a8ec23de38a99e7349aba92ea8
    Signed-off-by: Emmanuel Dreyfus <manu at netbsd.org>
    Reviewed-on: http://review.gluster.org/9944
    Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Venky Shankar <vshankar at redhat.com>
    Reviewed-by: Vijay Bellur <vbellur at redhat.com>

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


More information about the Bugs mailing list