Package: prometheus-alertmanager
Version: 0.25.0-1+b4
Severity: normal
Tags: upstream patch


Hi,

the included script 'generate-ui.sh' does not work. The attached patch fixes
this, at least to a degree.

Enjoy,
Toni



-- System Information:
Debian Release: 12.5
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-18-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages prometheus-alertmanager depends on:
ii  adduser              3.134
ii  init-system-helpers  1.65.2
ii  libc6                2.36-9+deb12u4
ii  tzdata               2024a-0+deb12u1

prometheus-alertmanager recommends no packages.

prometheus-alertmanager suggests no packages.

-- no debconf information
--- ./usr/share/prometheus/alertmanager/generate-ui.sh	2023-02-03 03:10:24.000000000 +0000
+++ /tmp/generate-ui.sh	2024-03-21 22:43:52.452041965 +0000
@@ -2,7 +2,7 @@
 
 set -e
 
-ELMDISTURL=https://github.com/elm/compiler/releases/download/0.19.0/binaries-for-linux.tar.gz
+ELMDISTURL=https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz
 SRCDIR=/usr/share/gocode/src/github.com/prometheus/alertmanager/ui/app
 DSTDIR=/usr/share/prometheus/alertmanager/ui
 
@@ -14,7 +14,8 @@
 TMPDIR=$(mktemp -d)
 
 echo "Downloading Elm tools..." >&2
-curl --location $ELMDISTURL | tar xz -C $TMPDIR
+# curl --location $ELMDISTURL | tar xz -C $TMPDIR
+( cd $TMPDIR && curl -L -o - $ELMDISTURL | gzip -d - > elm && chmod 0755 ./elm )
 
 echo "Compiling source code..." >&2
 ln -s $SRCDIR/src $SRCDIR/elm.json $TMPDIR
@@ -31,7 +32,9 @@
 cp $TMPDIR/script.js $DSTDIR
 cp $SRCDIR/index.html $SRCDIR/favicon.ico $DSTDIR
 ln -s /usr/share/fonts-font-awesome $DSTDIR/lib/font-awesome
+ln -s /usr/share/nodejs/bootstrap/dist $DSTDIR/lib/bootstrap
 ln -s /usr/share/nodejs/bootstrap/dist $DSTDIR/lib/bootstrap4
+cp -a /usr/share/gocode/src/github.com/prometheus/alertmanager/ui/app/lib/elm-datepicker $DSTDIR/lib
 
 rm -rf $TMPDIR
 

Reply via email to