if some python module tries to `import cephfs`, it should not fail.
Signed-off-by: Kefu Chai <kchai@redhat.com>
if [ ! -e $lib_fn ]; then
lib_fn=$vdir/lib/python*/*-packages/${bind}.so
fi
- nm $lib_fn | grep -E "U (lib)?${bind}" | \
+ if [ ${bind} = "cephfs" ]; then
+ func_prefix="ceph"
+ else
+ func_prefix="(lib)?${bind}"
+ fi
+ nm $lib_fn | grep -E "U ${func_prefix}" | \
awk '{ print "void "$2"(void) {}" }' | \
gcc -shared -o $vdir/lib/lib${bind}.so.1 -xc -
if [ ${bind} != rados ]; then