termux-user-repository / tur

A place for all types of Termux packages.
Other
481 stars 87 forks source link

[Package]: bcc #442

Open rhjdvsgsgks opened 1 year ago

rhjdvsgsgks commented 1 year ago

Name

bcc

Home page URL

No response

Source code URL

https://github.com/iovisor/bcc

Packaging policy acknowledgement

Additional information

there are already some attempt of building bcc on termux. but failed at llvm in termux dont have rtti support https://github.com/termux/termux-packages/issues/6471 . maybe we need a separate llvm with rtti enabled

serverat hacky patch avaliable: https://github.com/termux/termux-packages/issues/6445

licy183 commented 1 year ago

It seems that there is no need to use the RTTI-enabled LLVM when compiling bcc. But I don't know the usage of this package. Please test the built package in associated PR. Thanks!

rhjdvsgsgks commented 1 year ago

the python-bcc pkg seems have something missing. you can try to import bcc in python. and it will failed. this is waht should exist in python-bcc:

/usr/
/usr/lib/
/usr/lib/python3.11/
/usr/lib/python3.11/site-packages/
/usr/lib/python3.11/site-packages/bcc-0.27.0-py3.11.egg-info/
/usr/lib/python3.11/site-packages/bcc-0.27.0-py3.11.egg-info/PKG-INFO
/usr/lib/python3.11/site-packages/bcc-0.27.0-py3.11.egg-info/SOURCES.txt
/usr/lib/python3.11/site-packages/bcc-0.27.0-py3.11.egg-info/dependency_links.txt
/usr/lib/python3.11/site-packages/bcc-0.27.0-py3.11.egg-info/top_level.txt
/usr/lib/python3.11/site-packages/bcc/
/usr/lib/python3.11/site-packages/bcc/__init__.py
/usr/lib/python3.11/site-packages/bcc/__pycache__/
/usr/lib/python3.11/site-packages/bcc/__pycache__/__init__.cpython-311.pyc
/usr/lib/python3.11/site-packages/bcc/__pycache__/containers.cpython-311.pyc
/usr/lib/python3.11/site-packages/bcc/__pycache__/disassembler.cpython-311.pyc
/usr/lib/python3.11/site-packages/bcc/__pycache__/libbcc.cpython-311.pyc
/usr/lib/python3.11/site-packages/bcc/__pycache__/perf.cpython-311.pyc
/usr/lib/python3.11/site-packages/bcc/__pycache__/syscall.cpython-311.pyc
/usr/lib/python3.11/site-packages/bcc/__pycache__/table.cpython-311.pyc
/usr/lib/python3.11/site-packages/bcc/__pycache__/tcp.cpython-311.pyc
/usr/lib/python3.11/site-packages/bcc/__pycache__/usdt.cpython-311.pyc
/usr/lib/python3.11/site-packages/bcc/__pycache__/utils.cpython-311.pyc
/usr/lib/python3.11/site-packages/bcc/__pycache__/version.cpython-311.pyc
/usr/lib/python3.11/site-packages/bcc/containers.py
/usr/lib/python3.11/site-packages/bcc/disassembler.py
/usr/lib/python3.11/site-packages/bcc/libbcc.py
/usr/lib/python3.11/site-packages/bcc/perf.py
/usr/lib/python3.11/site-packages/bcc/syscall.py
/usr/lib/python3.11/site-packages/bcc/table.py
/usr/lib/python3.11/site-packages/bcc/tcp.py
/usr/lib/python3.11/site-packages/bcc/usdt.py
/usr/lib/python3.11/site-packages/bcc/utils.py
/usr/lib/python3.11/site-packages/bcc/version.py

and, i found this in build log

2023-06-12T19:39:47.6737176Z Checking .pth file support in /data/data/com.termux/files/usr/lib/python3/dist-packages/
2023-06-12T19:39:47.6741328Z /usr/bin/python3.11 -E -c pass
2023-06-12T19:39:47.6920340Z TEST FAILED: /data/data/com.termux/files/usr/lib/python3/dist-packages/ does NOT support .pth files
2023-06-12T19:39:47.6921238Z bad install directory or PYTHONPATH

seems like this is the reason