Closed DigiBC closed 2 days ago
Here are a few more details about the issue related to the generation of these 5 files:
Incomplete files with these names are created that contain the following error:
At /usr/share/liquidsoap/libs/thread.liq, line 34, char 28-32:
thread.run.recurrent(fast=fast, delay=delay, on_error=on_error, f)
Error 6: Cannot apply that parameter because the function at /usr/share/liquidsoap/libs/thread.liq, line 34, char 2-68
has no argument labeled "fast"!
Hi @DigiBC, Could you provide the command sequence you are using to trigger this error? Here's how I install liquidsoap with a similar set of options.
OPAM_VERSION=2.3.0;
OCAML_VERSION=4.14.2;
sudo apt-get update;
sudo apt-get dist-upgrade;
sudo apt-get install --no-install-recommends -y curl ca-certificates patch unzip bubblewrap git bzip2 gcc make libc6-dev g++;
sudo curl -sS -L -o /usr/local/bin/opam "https://github.com/ocaml/opam/releases/download/$OPAM_VERSION/opam-$OPAM_VERSION-x86_64-linux";
sudo chmod +x /usr/local/bin/opam;
opam init --bare -n;
opam switch create "$OCAML_VERSION";
eval $(opam env --switch="$OCAML_VERSION");
git clone https://github.com/savonet/liquidsoap.git;
cd liquidsoap;
opam pin --no-action --yes .
opam install --deps-only --confirm-level=unsafe-yes liquidsoap liquidsoap-lang liquidsoap-libs-extra liquidsoap-libs liquidsoap-core;
export LIQUIDSOAP_BUILD_TARGET=posix;
dune build --release;
opam install --deps-only --confirm-level=unsafe-yes liquidsoap sdl-liquidsoap liquidsoap-lang prometheus-liquidsoap liquidsoap-libs-extra liquidsoap-libs liquidsoap-mode tls-liquidsoap liquidsoap-core liquidsoap-js;
opam install --confirm-level=unsafe-yes mad faad ffmpeg flac ogg opus speex theora vorbis fdkaac lame shine alsa ao bjack portaudio pulseaudio srt ladspa lilv samplerate soundtouch frei0r dssi gd inotify irc-client-unix lastfm lo memtrace osc-unix ssl sqlite3 posix-time2 yaml xmlplaylist;
dune build --release;
Hi Vito,
Thanks for your reply.
My approach is a little different, because my intent is to build my own Debian (.deb) packages similar to the official released packages. I have been doing this for some time now without any problems.
I use a local OCAML installation with all required modules and the Liquidsoap source tarball for building.
The issue described here originally occurred during the dpkg-buildpackage
process, but it was easy to reproduce with dune build
.
All dependencies should be up to date except OPAM which is from the official Debian repository. In fact, it's version 2.1.2 might be a bit outdated.
So maybe I should update OPAM to the latest version 2.3.0 and see what happens...
EDIT Upgrading to OPAM 2.3.0 has no effect on the issue.
Finally, I discovered the cause of the issue: Fragments of a previous 2.3.0-rc1 installation had been left on my system. :disappointed: After cleaning the system, the Posix build also worked successfully (including the new release version).
So the issue can be closed.
I'm sorry... :pensive:
Awesome, glad this was fixed!
Description
Building Liquidsoap 2.3.0-rc2 on Linux (Debian 12) from source tarball with
dune build
and default settings works, but after changing the runtime lookup paths for Liquidsoap components toposix
, it fails during doc generation.The issue seems to be a result of commit c4746c8: Move doc generation to liquidsoap package, add pandoc and pandoc-include as doc deps.
However, it appears that the issue isn't related to
pandoc
andpandoc-include
.Steps to reproduce
This will result in the following errors:
Expected behavior
Doc generation should work with different environment variables.
Liquidsoap version
Liquidsoap build config
Installation method
From source/self-built
Additional Info
OS: Linux Mint Debian Edition 6 (Debian 12.8 AMD64)