Closed jaggzh closed 2 years ago
Also:
running install_scripts
creating build/bdist.linux-x86_64/wheel/opensnitch_ui-1.5.0rc1.data/scripts
copying build/scripts-3.9/opensnitch-ui -> build/bdist.linux-x86_64/wheel/opensnitch_ui-1.5.0rc1.data/scripts
changing mode of build/bdist.linux-x86_64/wheel/opensnitch_ui-1.5.0rc1.data/scripts/opensnitch-ui to 755
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
error: [Errno 2] No such file or directory: 'top_level.txt'
----------------------------------------
ERROR: Failed building wheel for opensnitch-ui
Note: sudo checkinstall make install
does work for the daemon, from the daemon/ subdir
hi @jaggzh !
I build the packages as explained here: https://github.com/evilsocket/opensnitch/wiki/Building-packages-with-pbuilder
Or:
$ cd opensnitch
opensnitch $ make protocol
opensnitch $ cp -r ui/ opensnitch-ui/
opensnitch $ tar zcf opensnitch-ui_1.5.0~rc1.orig.tar.gz opensnitch-ui/
opensnitch $ cd ui/
opensnitch/ui $ dpkg-buildpackage
It felt so close.. briefly... :) The dpkg-buildpackage puts out:
...
cp -r i18n/locales/ opensnitch/i18n/
pyrcc5 -o opensnitch/resources_rc.py opensnitch/res/resources.qrc
sed -i 's/^import ui_pb2/from . import ui_pb2/' opensnitch/ui_pb2*
python3 setup.py install --force --root=debian/python3-opensnitch-ui --no-compile -O0 --install-layout=deb
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --install-layout not recognized
make[1]: *** [debian/rules:28: override_dh_auto_install] Error 1
make[1]: Leaving directory '/home/jaggz/projects/src/opensnitch/ui'
Is there a way to build a debian package?
Building on linux, debian, stable, I'm using
sudo checkinstall make install
(to create a package by monitoring the installation). This requires the system python (sudo which pip
shows /usr/bin/pip) --sudo checkinstall make install
is also then installing stuff in /usr/local/lib/python3.9 .. (okay, no prob, I guess)..But it then begins erroring: