Change in gr-gsm[master]: Remove the RTLD_GLOBAL hack

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

ptrkrysik gerrit-no-reply at lists.osmocom.org
Mon May 3 10:31:42 UTC 2021


ptrkrysik has submitted this change. ( https://gerrit.osmocom.org/c/gr-gsm/+/24074 )

Change subject: Remove the RTLD_GLOBAL hack
......................................................................

Remove the RTLD_GLOBAL hack

It was removed from gnuradio back in 2014
https://github.com/gnuradio/gnuradio/commit/39f14138ac9158eb0610e89a2ae1f8290f184c44

Change-Id: I1604ad5b9eefe3d4a2228b2a09e2069962844c97
---
M python/__init__.py
1 file changed, 0 insertions(+), 26 deletions(-)

Approvals:
  ptrkrysik: Looks good to me, approved; Verified



diff --git a/python/__init__.py b/python/__init__.py
index 557a8d6..ba5fc00 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -23,23 +23,6 @@
 description here (python/__init__.py).
 '''
 
-# ----------------------------------------------------------------
-# Temporary workaround for ticket:181 (swig+python problem)
-import sys
-_RTLD_GLOBAL = 0
-try:
-    from dl import RTLD_GLOBAL as _RTLD_GLOBAL
-except ImportError:
-    try:
-        from DLFCN import RTLD_GLOBAL as _RTLD_GLOBAL
-    except ImportError:
-        pass
-
-if _RTLD_GLOBAL != 0:
-    _dlopenflags = sys.getdlopenflags()
-    sys.setdlopenflags(_dlopenflags|_RTLD_GLOBAL)
-# ----------------------------------------------------------------
-
 
 # import swig generated symbols into the gsm namespace
 from .grgsm_swig import *
@@ -59,12 +42,3 @@
 from .txtime_bursts_tagger import *
 from .arfcn import *
 from .device import *
-
-
-#
-
-# ----------------------------------------------------------------
-# Tail of workaround
-if _RTLD_GLOBAL != 0:
-    sys.setdlopenflags(_dlopenflags)      # Restore original flags
-# ----------------------------------------------------------------

-- 
To view, visit https://gerrit.osmocom.org/c/gr-gsm/+/24074
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: gr-gsm
Gerrit-Branch: master
Gerrit-Change-Id: I1604ad5b9eefe3d4a2228b2a09e2069962844c97
Gerrit-Change-Number: 24074
Gerrit-PatchSet: 1
Gerrit-Owner: ptrkrysik <ptrkrysik at gmail.com>
Gerrit-Reviewer: ptrkrysik <ptrkrysik at gmail.com>
Gerrit-Reviewer: vvvelichkov <vvvelichkov at gmail.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210503/fb350240/attachment.htm>


More information about the gerrit-log mailing list