mirror of
https://github.com/gluster/glusterfs.git
synced 2026-02-06 00:49:30 +01:00
The jenkins release-new job runs on a CentOS 7 box, which does not have python3. As a result it runs (autogen.sh and) configure before producing the dist tar file, converting all the python3 shebangs to python2 shebangs in the dist tar file. Then when that tar file is "carried" to, e.g. Fedora koji build system to build packages, the shebangs are incorrect, despite having originally been correct in the git repo. Change-Id: I5154baba3f6d29d3c4823bafc2b57abecbf90e5b updates: #411 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
29 lines
633 B
Python
Executable File
29 lines
633 B
Python
Executable File
|
|
from __future__ import print_function
|
|
import ctypes
|
|
|
|
api = ctypes.CDLL("libgfapi.so", mode=ctypes.RTLD_GLOBAL)
|
|
|
|
api.glfs_ipc.argtypes = [ ctypes.c_void_p, ctypes.c_int, ctypes.c_void_p, ctypes.c_void_p ]
|
|
api.glfs_ipc.restype = ctypes.c_int
|
|
|
|
def do_ipc (host, volume):
|
|
fs = api.glfs_new(volume)
|
|
#api.glfs_set_logging(fs, "/dev/stderr", 7)
|
|
api.glfs_set_volfile_server(fs, "tcp", host, 24007)
|
|
|
|
api.glfs_init(fs)
|
|
ret = api.glfs_ipc(fs, 1470369258, 0, 0)
|
|
api.glfs_fini(fs)
|
|
|
|
return ret
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
|
|
try:
|
|
res = do_ipc(*sys.argv[1:3])
|
|
print(res)
|
|
except:
|
|
print("IPC failed (volume not started?)")
|