Package Details: opensnitch-git 1.6.0rc5.r84.e1afd24-2

Git Clone URL: https://aur.archlinux.org/opensnitch-git.git (read-only, click to copy)
Package Base: opensnitch-git
Description: A GNU/Linux port of the Little Snitch application firewall
Upstream URL: https://github.com/evilsocket/opensnitch
Licenses: GPL3
Conflicts: opensnitch
Provides: opensnitch
Submitter: None
Maintainer: lsf
Last Packager: lsf
Votes: 41
Popularity: 0.72
First Submitted: 2017-05-03 14:15 (UTC)
Last Updated: 2023-06-11 11:45 (UTC)

Latest Comments

1 2 3 4 5 6 .. 18 Next › Last »

MonkeeSage commented on 2024-06-11 06:59 (UTC) (edited on 2024-06-11 07:03 (UTC) by MonkeeSage)

Build is currently broken because cmd/protoc-gen-go-grpc updated google.golang.org/protobuf dependency to v1.34.1.

https://github.com/grpc/grpc-go/releases/tag/cmd%2Fprotoc-gen-go-grpc%2Fv1.4.0

ui/protocol/ui_grpc.pb.go:19:16: undefined: grpc.SupportPackageIsVersion8
ui/protocol/ui_grpc.pb.go:49:41: undefined: grpc.StaticMethod
ui/protocol/ui_grpc.pb.go:59:41: undefined: grpc.StaticMethod
ui/protocol/ui_grpc.pb.go:69:41: undefined: grpc.StaticMethod
ui/protocol/ui_grpc.pb.go:79:41: undefined: grpc.StaticMethod
ui/protocol/ui_grpc.pb.go:111:41: undefined: grpc.StaticMethod
make: *** [Makefile:21: opensnitchd] Error 1

Worked around by pinning to previous version as suggested upstream.

https://github.com/evilsocket/opensnitch/issues/1142

@@ -105,7 +105,7 @@ build() {
   export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=mod"
   export PATH=${PATH}:${GOPATH}/bin
   go install github.com/golang/protobuf/protoc-gen-go
-  go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
+  go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
   pushd proto
   make
   popd

Note: I had to remove the cached source to make go download the correct version.

abarbarian commented on 2023-07-22 12:42 (UTC)

Fails to build

/opensnitch-git/PKGBUILD: line 70: go: command not found ==> ERROR: A failure occurred in prepare(). Aborting... :: failed to verify integrity or prepare opensnitch-git package

Line 70 go clean -modcache

No idea how to fix that. :-(

eclairevoyant commented on 2023-06-09 09:49 (UTC)

@lsf Lines 93-94 are incorrect, you shouldn't be hardcoding python versions like that. Please refer to the Python package guidelines for how to determine the current python version.

primalmotion commented on 2023-03-24 17:52 (UTC)

latest changes in opensnitch seem to break the build:

~/.cache/yay/opensnitch-git/src/opensnitch/proto ~/.cache/yay/opensnitch-git/src/opensnitch
protoc -I. ui.proto --go_out=../daemon/ui/protocol/ --go-grpc_out=../daemon/ui/protocol/ --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative
python3 -m grpc_tools.protoc -I. --python_out=../ui/opensnitch/ --grpc_python_out=../ui/opensnitch/ ui.proto
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.10/site-packages/grpc_tools/protoc.py", line 21, in <module>
    import pkg_resources
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3324, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3298, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3336, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 620, in _build_master
    ws = cls()
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 613, in __init__
    self.add_entry(entry)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 669, in add_entry
    for dist in find_distributions(entry, True):
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2133, in find_on_path
    for dist in factory(fullpath):
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2198, in distributions_from_metadata
    yield Distribution.from_location(
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2672, in from_location
    )._reload_version()
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3077, in _reload_version
    md_version = self._get_version()
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2857, in _get_version
    version = _version_from_file(lines)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2623, in _version_from_file
    line = next(iter(version_lines), '')
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2852, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1527, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1517, in get_metadata
    value = self._get(path)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1726, in _get
    with open(path, 'rb') as stream:
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.10/site-packages/absl_py-1.4.0-py3.10.egg-info/PKG-INFO'
make: *** [Makefile:7: ../ui/opensnitch/ui_pb2.py] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

bahha commented on 2023-03-12 14:52 (UTC) (edited on 2023-03-12 14:53 (UTC) by bahha)

it doesn't work properly since the last update. opensnitch-ui tabs are empty, no events, no node. Only rules are visible. System log shows this every 1s: Ping exception: UIService._update_stats_trigger[str, str, PingRequest].emit(): argument 3 has unexpected type 'PingRequest'

looked for a solution, found a bug report on github, the proposed fix already exists in PKGBUILD.

PKGBUILD: # sed -i 's/^import ui_pb2/from . import ui_pb2/' opensnitch/ui_pb2*

any suggestions? Thank you.

weru345 commented on 2023-02-21 09:04 (UTC) (edited on 2023-02-21 09:36 (UTC) by weru345)

The bug that made opensnitch-ui not run got fixed recent commit Initially utils.py was moved and renamed to /ui/opensnitch/utils/__init.py relevant commit And merely adjusting the filepath in the PKGBUILD(line39) like I suggested in my previous comment didn't fix it. It is named properly now __init__.py and another file that was missing in the source files before and made opensnitch-ui not run exists now xdg.py After changing line 39 in the current PKGBUILD to sed -i 's|/usr/lib/python3/dist-packages/data/|/usr/lib/python3.10/site-packages/pyasn/data/|g' ui/opensnitch/utils/__init__.py I was able to build and run opensnitch-ui successfully again. Furthermore the program version got bumped to 1.6.0rc5 commit

Addendum: Package dependencies most likely need an adjustment, too. See this commit xdg-user-dirs and gtk-update-icon-cache should be optional dependencies now, I think

weru345 commented on 2023-02-15 10:37 (UTC) (edited on 2023-02-15 10:44 (UTC) by weru345)

@archyboy: Better wait for lsf, the package maintainer to fix the problem, I gave you bad advice and I am running into the same problem now. Sorry I think this commit caused the breakage.

archyboy commented on 2023-02-13 17:31 (UTC)

I am now receiving this error it installed.

I also installed the opensnitch-ebpf-module-git

opensnitch-ui Traceback (most recent call last): File "/usr/sbin/opensnitch-ui", line 40, in <module> from opensnitch.service import UIService File "/usr/lib/python3.10/site-packages/opensnitch/service.py", line 16, in <module> from opensnitch.dialogs.prompt import PromptDialog File "/usr/lib/python3.10/site-packages/opensnitch/dialogs/prompt.py", line 15, in <module> from opensnitch.utils import Icons ModuleNotFoundError: No module named 'opensnitch.utils'

weru345 commented on 2023-02-13 17:03 (UTC) (edited on 2023-02-15 10:35 (UTC) by weru345)

@archyboy Edit: [[Bad advice removed]]

archyboy commented on 2023-02-13 14:56 (UTC)

Getting the following error.

Building opensnitch-git... ==> Making package: opensnitch-git 1.6.0rc2.r21.564c263-1 (Mon 13 Feb 2023 09:55:13 AM EST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Updating opensnitch git repo... ==> Validating source files with sha256sums... opensnitch ... Skipped ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Creating working copy of opensnitch git repo... Cloning into 'opensnitch'... done. ==> Starting prepare()... sed: can't read ui/opensnitch/utils.py: No such file or directory ==> ERROR: A failure occurred in prepare(). Aborting...