Hi Thomas,

Thank you for bringing this to our attention. I was not aware of this packaging requirement about minified Javascript.

I submitted a change to replace the minified apexcharts with the latest full version [1]. It needs to be tested because there could be major changes in apexcharts breaking blazar-dashboard.

Cheers,
Pierre

[1] https://review.opendev.org/c/openstack/blazar-dashboard/+/946019

On Tue, 1 Apr 2025 at 08:50, Thomas Goirand <zigo@debian.org> wrote:
Hi,

I've been trying to package Blazar, all is already in Debian, but I
can't get blazar-dashboard in, because upstream source contains non-free
files. Namely:

https://github.com/openstack/blazar-dashboard/blob/master/blazar_dashboard/static/leases/js/vendor/apexcharts.min.js

is a minifed version of a much more complex package:
https://github.com/apexcharts/apexcharts.js/tree/v3.31.0

Reminder: minified Javascripts are considered by most distributions
(this includes Red Hat, Ubuntu, and in my case Debian) as non-free files
that cannot be shipped in the distribution without the underlying source
code, and packages must build from the not minified version.

Could the Blazar team work on un-vendoring apexcharts.min.js, possibly
removing it completely, or replacing it with a source-full version?

Cheers,

Thomas Goirand (zigo)