subgraph / subgraph-os-issues

Subgraph OS issues repository
73 stars 10 forks source link

Package patched xpra to support WM_CLASS #296

Open mckinney-subgraph opened 7 years ago

mckinney-subgraph commented 7 years ago

Package patched xpra to support WM_CLASS

dma commented 7 years ago

Notes on building an Xpra deb.

Attempted to build package from trunk per https://www.xpra.org/trac/wiki/Packaging.

Build failed. Reasons and fixes:

  1. compilation of gtk c code fails on default hard enforcement of strict-prototypes To fix: in /setup.py set: strict_ENABLED = False

  2. Warning: brotli did not create '/home/user/dev/Xpra/trunk/src/debian/tmp/usr/share/xpra/www/js/lib/aurora/flac.js.br' error running (['brotli', '-k', '/home/user/dev/Xpra/trunk/src/debian/tmp/usr/share/xpra/www/js/lib/aurora/aac.js.map'],),{'stderr': -1, 'stdout': -1}: [Errno 2] No such file or directory Fix: install brotli

  3. dh_install fail: dh_install dh_install: Cannot find (any matches for) "usr/share/xpra/cuda/" (tried in "." and "debian/tmp") dh_install: xpra missing files: usr/share/xpra/cuda/ dh_install: missing files, aborting

Missing debian/tmp/usr/share/xpra/cuda/ and all files in it (??): To fix: Remove usr/share/xpra/cuda/* from debian/install.xpra (probably a bad fix)

dma commented 7 years ago

Produced a test .deb.

Couple of issues with it:

  1. Removed share/xpra/cuda/* from debian/xpra.install because I couldn't seem to fix it in setup.py within my limit of patience. Not sure what the consequence of not having /usr/share/xpra/cuda/ is..
  2. /usr/bin/xpra --version returns 2.1.2. This deb is built from trunk, which is 2.2-1 (this is what's in the filename). The patch is in there as well. Need to investigate further.

Link to .deb to test: https://support.subgraph.com/xpra_2.2-1_amd64.deb

47cbaa1708901689057b9df3eb057dedb8bf180387a569f10dc831274ec46d83 xpra_2.2-1_amd64.deb

Patch to trunk (xpra/client/): https://support.subgraph.com/wmclass_override.patch