sweet. i think i _am_ already compiling with opam... here's the relevant 
section of my dockerfile:

```
# install system packages like opam (the make tools are for the 1.3.x+scm 
install below)
RUN apt-get remove liquidsoap -y && \
    apt-get install ocaml ocaml-native-compilers camlp4-extra opam 
autotools-dev automake -y

RUN mkdir /usr/local/opam && \
    chown liquidsoap:liquidsoap /usr/local/opam /usr/share/liquidsoap/ && \
    #
    # we need to switch to the liquidsoap, some things do not like being 
installed as root
    usermod -s /bin/bash liquidsoap && \
    usermod -aG sudo liquidsoap && \
    echo "liquidsoap ALL = NOPASSWD : ALL" >> /etc/sudoers && \
    #
    # OCAML must be >= "4.03" to install the newer Liquidsoap...
    su - liquidsoap -c "OPAMYES=yes && opam init --root=/usr/local/opam --yes 
&& opam init --yes && opam switch 4.07.0" && \
    # install OPAM dependencies
    su - liquidsoap -c "eval `opam config env --root=/usr/local/opam` \
        export OPAMYES=yes && opam depext alsa cry fdkaac lame liquidsoap mad 
opus taglib vorbis ffmpeg --yes ; \
        export OPAMYES=yes && opam install alsa cry fdkaac lame liquidsoap mad 
opus taglib vorbis ffmpeg --yes" && \

    # run this as root to make liquidsoap your default on the whole system 
(extremely hacky)
    echo "eval \`opam config env --root=/usr/local/opam\`" > 
/etc/profile.d/liquidsoap-opam.sh && \
    ln -s /usr/local/opam/system/bin/liquidsoap /usr/bin/liquidsoap
```

sorry i know there are a lot of user and permissions acrobatics here, but do 
you see any problem with my compilation step? for reference this is an attempt 
to get LiquidSoap 1.3.x running on ubuntu 16 as per 
https://github.com/LibreTime/libretime/issues/192 , pending an upcoming jump to 
Debian 10. again thank you!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/713#issuecomment-464910659
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to