Package Details: opensnitch-git 1.6.3.r152.1984fb99-1

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: 43
Popularity: 0.44
First Submitted: 2017-05-03 14:15 (UTC)
Last Updated: 2024-07-25 10:25 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 18 Next › Last »

shollingsworth commented on 2021-07-08 18:37 (UTC)

@lsf that did the trick! thanks :)

lsf commented on 2021-07-08 18:25 (UTC)

That's odd (I always run my test builds in a clean chroot, and even there everything built smoothly).

If we'd want to keep the python build call in the build() function (instead of moving it to package() via the removal of --skip-build), it might be worth a try to just move sed -i 's/^import ui_pb2/from . import ui_pb2/' opensnitch/ui_pb2* up one line. That way it would still explicitly be before the python build and should be always included during packaging.

I'll get a commit for it ready, maybe that'll do the trick :)

shollingsworth commented on 2021-07-08 18:13 (UTC) (edited on 2021-07-08 18:16 (UTC) by shollingsworth)

@lsf I tested it again, and as is, it's having the same error.

for whatever reason, this patch works though.

diff --git a/PKGBUILD b/PKGBUILD
index 63db77c..76460fc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -56,7 +56,6 @@ build() {

   pushd ui
   pyrcc5 -o opensnitch/resources_rc.py opensnitch/res/resources.qrc
-  python setup.py build
   sed -i 's/^import ui_pb2/from . import ui_pb2/' opensnitch/ui_pb2*
   popd
   go clean -modcache
@@ -73,7 +72,7 @@ package() {
   cd "$srcdir/${pkgname%-git}"
   pushd ui
   export PYTHONHASHSEED=0
-  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+  python setup.py install --root="$pkgdir/" --optimize=1
   popd

   install -d "$pkgdir/etc/${pkgname%-git}d/rules"

lsf commented on 2021-07-08 17:15 (UTC)

Thanks, I've implemented your changes!

I've also added the eBPF module mentioned there as an optional dependency with a separate package as opensnitch-ebpf-module-git ^^

shollingsworth commented on 2021-07-08 14:01 (UTC)

FYI, this patch should fix recent runtime issues.

Not sure how to make pull requests here.

https://github.com/evilsocket/opensnitch/issues/450#issuecomment-876146606

lsf commented on 2021-06-06 12:33 (UTC)

Hm. Are you on Manjaro? maybe some of the dependencies there are out of date (related to python-grpcio-tools); that could always get a bit messy.

compiler1413 commented on 2021-06-06 12:06 (UTC) (edited on 2021-06-06 12:08 (UTC) by compiler1413)

I'm getting build issues now, I'm not sure if this is upstream related or not. I checked all my network settings, nothing is being blocked.

==> Starting prepare()...
==> Starting pkgver()...
==> Updated version: opensnitch-git 1.4.0.rc.2.r15.3d11134-1
==> Sources are ready.
==> Making package: opensnitch-git 1.4.0.rc.2.r15.3d11134-1 (Sun 06 Jun 2021 08:03:09 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
~/.cache/yay/opensnitch-git/src/opensnitch/proto ~/.cache/yay/opensnitch-git/src/opensnitch
go: downloading github.com/golang/protobuf v1.5.2
go: downloading google.golang.org/protobuf v1.26.0
# github.com/golang/protobuf/protoc-gen-go
loadinternal: cannot find runtime/cgo

protoc -I. ui.proto --go_out=plugins=grpc:../daemon/ui/protocol/ --go_opt=paths=source_relative
python3 -m grpc_tools.protoc -I. --python_out=../ui/opensnitch/ --grpc_python_out=../ui/opensnitch/ ui.proto
--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC

See https://grpc.io/docs/languages/go/quickstart/#regenerate-grpc-code for more information.
make: *** [Makefile:4: ../daemon/ui/protocol/ui.pb.go] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
    Aborting...
error making: opensnitch-git

lsf commented on 2021-03-30 10:00 (UTC)

Thanks @tioguda – I've added the PR as a patch to the PKGBUILD until it gets merged upstream :)

tioguda commented on 2021-03-30 00:33 (UTC)

I was only able to compile after using this commit.

Greetings.

Willusetologin commented on 2021-03-23 08:04 (UTC) (edited on 2021-03-24 05:05 (UTC) by Willusetologin)

Who have problems with the compilation like me...

file: PKGBUILD
...
build() {
## if you have a problem with go requirements
cd "$srcdir/opensnitch-$pkgver/daemon"
go get -a
## if you need the daemon creating a socket when start.
sed -i 's%ExecStart=.*%& -ui-socket \"unix:///tmp/osui.sock\"%' opensnitchd.service
...