Skip to content

Commit

Permalink
Update deb build, readme, dependencies, .gitignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Oct 16, 2023
1 parent 6bead39 commit 10eb1e5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 14 deletions.
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
obj-x86_64-linux-gnu
debian/warpinator
debian/warpinator-dbg
debian/tmp

debian/.debhelper/generated/warpinator/installed-by-dh_installdocs
debian/debhelper-build-stamp
debian/files
debian/warpinator.substvars
debian/*.substvars
debian/*.debhelper
debian/*.log

python_build
__pycache__
a.out
*.so
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ git checkout 1.2.3

# Try to build. If this fails, it's probably due to missing dependencies.
# If you use GitHub Actions to compile, please install the following dependencies.
sudo apt-get -y install debhelper dh-python gnome-pkg-tools meson gobject-introspection appstream python3-grpc-tools
sudo apt-get -y install debhelper dh-python meson gobject-introspection cython3

# Take note of these packages, install them using apt-get:
dpkg-buildpackage --no-sign
Expand Down Expand Up @@ -71,8 +71,8 @@ flatpak install flathub org.x.Warpinator
_____
##### build deps (ref: debian/control)
- meson (>= 0.45.0)
- python3-grpc-tools (>= 1.14.0)
- python3-protobuf (>= 3.6.1)
- python3-grpc-tools (>= 1.14.0) - needed *only* if updating the protobuf files (not likely)
- cython3 (only if `bundle-grpc=true`)
- gobject-introspection

##### required only for makepot
Expand All @@ -84,16 +84,22 @@ _____
- gir1.2-gtk-3.0 (>= 3.20.0)
- gir1.2-xapp-1.0 (>= 1.6.0)
- python3
- python3-async-timeout (only with python < 3.11 and `bundle-zeroconf=true`)
- python3-gi
- python3-setproctitle
- python3-xapp (>= 1.6.0)
- python3-zeroconf (>= 0.27.0) *** see note below
- python3-grpcio (>= 1.16.0)
- python3-zeroconf (>= 0.27.0) (only if `bundle-zeroconf=false`)
- python3-grpcio (>= 1.16.0) (only if `bundle-grpc=false`)
- python3-protobuf (only if `bundle-grpc=false`)
- python3-cryptography
- python3-nacl
- python3-netaddr
- python3-ifaddr
- python3-netifaces

##### Note about zeroconf
As of v1.2.0, the build attempts to download and install/package zeroconf to the warpinator install dir (or package). To disable this and have warpinator use the system's version, set the 'bundle-zeroconf' build option to false:
We've started bundling certain dependencies due to their tendency to break and/or exhibit different behavior on different distributions.
To disable this, you can do something like:
```
meson builddir --prefix=/usr -Dbundle-zeroconf=false
ninja -C builddir
Expand Down
6 changes: 3 additions & 3 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ Priority: optional
Maintainer: Linux Mint <[email protected]>
Build-Depends:
debhelper-compat (= 12),
appstream,
cython3,
curl,
dh-python,
gnome-pkg-tools (>= 0.10),
meson (>= 0.45.0),
policykit-1,
python3-dev,
Expand All @@ -24,6 +22,7 @@ Depends:
gir1.2-gtk-3.0 (>= 3.20.0),
gir1.2-xapp-1.0 (>= 1.6.0),
python3,
python3-async-timeout | python3 (>= 3.11.0),
python3-gi,
python3-setproctitle,
python3-xapp (>= 1.6.0),
Expand All @@ -33,7 +32,8 @@ Depends:
python3-netifaces,
python3-ifaddr,
${misc:Depends},
${python3:Depends}
${python3:Depends},
${shlibs:Depends}
Description: Allows simple local network file sharing.

Package: warpinator-dbg
Expand Down
4 changes: 0 additions & 4 deletions debian/py3dist-overrides

This file was deleted.

3 changes: 3 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ override_dh_python3:

override_dh_auto_test:

override_dh_dwz:
dh_dwz --no-dwz-multifile

override_dh_strip:
dh_strip --dbg-package=warpinator-dbg
Empty file modified src/zeroconf-0.115.2/build_script.py
100644 → 100755
Empty file.

0 comments on commit 10eb1e5

Please sign in to comment.