Xpra: Ticket #1483: workaround broken MSYS2 dependencies

MSYS2 is a rolling distro, which means that occasionally some packages will be out of sync and need a rebuild. Occasionally, those rebuilds can be tricky... or just fail. r15493 makes it possible to ship the older dependencies by simply dropping them in the win32\bundle-extra directory, this just gets bundled automatically in the installation directory. This hack was needed because opencv has not yet been rebuilt since the libwebp soname got bumped.

But for this hack to work, we need to still have the old library around.. So maybe we need to take regular snapshots of the msys installation directory? PITA.



Sun, 02 Apr 2017 13:52:03 GMT - Antoine Martin: status changed

I did have the old libwebp-6.dll on my 64-bit build VM, but not on the 32-bit one... and since the rebuild of opencv still fails, the 32-bit builds will just moan about webcam support until opencv is fixed upstream.

See also ticket:678#comment:55 which is a similar issue with libgfortran-3.dll


Thu, 11 May 2017 04:56:47 GMT - Antoine Martin: status changed; resolution set

Works well enough, and 64-bit builds are now the default.


Sun, 01 Oct 2017 06:05:59 GMT - Antoine Martin:

Another issue worth recording here: the opencv package updates have new hard dependencies but those are not installed automatically, breaking the package (so no webcam):

export XPKG="mingw-w64-${MSYSTEM_CARCH}-"
pacman -S ${XPKG}glog ${XPKG}ceres-solver ${XPKG}gflags ${XPKG}protobuf

And as of today, opencv is still broken on 64-bit systems. Trying to run "import cv2" fails with Invalid access to memory location.


Fri, 01 Dec 2017 12:30:43 GMT - Antoine Martin:

Found another undeclared dependency on mingw-w64-i686-cereal, required at least for building from source - could be runtime too.

Building opencv from source created a package that installed in the wrong prefix (!?), but once relocated it contains working python2 and python3 modules, tested on both 32 and 64-bit (yay!) - only one is still broken: the 32-bit python2 module crashes (sigh). (wontfix that)


Tue, 05 Dec 2017 14:35:02 GMT - Antoine Martin:

Still wontfix opencv, but we need r17571 to prevent errors if it isn't found when we create a package.


Thu, 28 Dec 2017 08:38:28 GMT - Antoine Martin:

The opencv package has been fixed, so r17774 reverts r17571.


Sat, 23 Jan 2021 05:25:30 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1483