Hi Graham,

Graham Cobb <g+deb...@cobb.uk.net> writes:

> I have found a workround for this problem. The following hack makes gerbera 
> work again for me.
>
> As root:
>
>   cd /usr/share/gerbera/web/vendor/jquery
>   ln -s jquery-3.6.0.min.js jquery-3.7.1.min.js
>   ln -s jquery-3.6.0.min.map jquery-3.7.1.min.map
>
>   cd /usr/share/gerbera/web/vendor
>   ln -s bootstrap bootstrap-4.6.2
>
[snip analysis]

Good analysis.

> I will note that my version of gerbera has been updated over *many* years 
> (using the debian packages, installed
> and upgraded using apt) so maybe the upgrade process is buggy on older 
> installations.

I didn't investigate if upgrade cruft was implicated because if what
works for you is a hack (that will later break) then:

1. Sid/unstable and testing/trixie have an old copy of node-jquery
(3.6.1+dfsg+~3.5.14-1) and need to be updated, because Debian packages
are supposed to unvendor bundled copies and use ones that have security
support, so node-jquery needs to be updated.

2. Gerbera needs to be fixed to use bootstrap 5.2.3

Alternatively, if what works for you is in fact a workaround, without
negative side-effects, then it won't later break, because Gerbera
doesn't require these specific versions of these javascript libraries.
If that's the case then Gerbera should probably be patched to use
whatever version of jquery and bootstrap that Debian provides; in this
case, Debian's gerbera package shouldn't be updated each time either
jquery or bootstrap change.

If you care about this package then I'd encourage you to Contact Debian
Mentors about getting your fix into the package.  This bug might even
qualify for an NMU if it truly totally breaks the UI, and if you didn't
want to become the new maintainer.

Regards,
Nicholas

Attachment: signature.asc
Description: PGP signature

Reply via email to