johnpdowling / custom_components

custom components (new and overrides) for 0.91+ home assistant
Apache License 2.0
19 stars 6 forks source link

Install Fails #8

Open shmuel opened 3 years ago

shmuel commented 3 years ago

Hello,

I tried installing this directly from your repo by adding it in "Supervisor > Add-on store > Repositories", selecting the "forked-daapd" add-on and clicking install. The installer fails and directs me to my log file which records this error:

20-09-30 20:56:21 ERROR (SyncWorker_0) [supervisor.docker.addon] Can't build a6b98bcd/armv7-addon-forked-daapd:0.0.2: The command '/bin/bash -o pipefail -c apk update && apk add --no-cache libcrypto1.1=1.1.1g-r0 libssl1.1=1.1.1g-r0 && apk add --no-cache --virtual deps1 alsa-lib-dev autoconf automake cmake avahi-dev bash bsd-compat-headers build-base confuse-dev curl curl-dev ffmpeg-dev file git gnutls-dev gperf json-c-dev libevent-dev libgcrypt-dev libplist-dev libsodium-dev libtool libunistring-dev openjdk7-jre-base protobuf-c-dev sqlite-dev && apk add --no-cache --virtual=deps2 --repository http://nl.alpinelinux.org/alpine/edge/testing libantlr3c-dev mxml-dev && apk add --no-cache avahi confuse dbus ffmpeg json-c libcurl libevent libgcrypt libplist libsodium libunistring libuv=1.29.1-r0 libuv-dev=1.29.1-r0 protobuf-c sqlite sqlite-libs openssl && apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing libantlr3c mxml && curl -L -o /tmp/antlr-3.4-complete.jar http://www.antlr3.org/download/antlr-3.4-complete.jar && echo '#!/bin/bash' > /usr/local/bin/antlr3 && echo 'exec java -cp /tmp/antlr-3.4-complete.jar org.antlr.Tool "$@"' >> /usr/local/bin/antlr3 && chmod 775 /usr/local/bin/antlr3 && cd /tmp && git clone --branch "v3.2.2" --depth=1 https://github.com/warmcat/libwebsockets.git && cd /tmp/libwebsockets && cmake ./ -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=TRUE -DLWS_IPV6=ON -DLWS_STATIC_PIC=ON -DLWS_UNIX_SOCK=OFF -DLWS_WITH_LIBUV=ON -DLWS_WITH_SHARED=ON -DLWS_WITHOUT_TESTAPPS=ON && make && make install && cd /tmp && git clone https://github.com/ejurgensen/forked-daapd.git && cd /tmp/forked-daapd && autoreconf -fi && ./configure --enable-itunes --with-libwebsockets && make && make install && apk del --purge deps1 deps2 && rm -rf /usr/local/bin/antlr3 /tmp/* && cd /usr/local/etc && sed -i -e 's/\(uid.*=.*\)/uid = "root"/g' forked-daapd.conf && sed -i s#"ipv6 = yes"#"ipv6 = no"#g forked-daapd.conf && sed -i s#/srv/music#/config/forked-daapd/music#g forked-daapd.conf && sed -i s#/usr/local/var/cache/forked-daapd/songs3.db#/config/forked-daapd/cache/songs3.db#g forked-daapd.conf && sed -i s#/usr/local/var/cache/forked-daapd/cache.db#/config/forked-daapd/cache/cache.db#g forked-daapd.conf && sed -i s#/usr/local/var/log/forked-daapd.log#/dev/stdout#g forked-daapd.conf && sed -i "/websocket_port\ =/ s/# *//" forked-daapd.conf && sed -i "/trusted_networks\ =/ s/# *//" forked-daapd.conf && sed -i "/pipe_autostart\ =/ s/# *//" forked-daapd.conf && sed -i "/db_path\ =/ s/# *//" forked-daapd.conf && sed -i "/cache_path\ =/ s/# *//" forked-daapd.conf' returned a non-zero code: 1

Here are the details of my Raspberry Pi installation:

arch | armv7l
-- | --
chassis | embedded
dev | false
docker | true
docker_version | 19.03.11
hassio | true
host_os | HassOS 4.13
installation_type | Home Assistant OS
os_name | Linux
os_version | 4.19.127-v7l
python_version | 3.8.5
supervisor | 245
timezone | America/Los_Angeles
version | 0.115.2
virtualenv | false

Aside from the 112th word in the error which reads simply "confuse" I am not able to make heads or tails of this error. Does it mean anything to you? Is there something I can do differently to get this to install?

Thanks, Samuel

sretalla commented 3 years ago

I would start with a guess that openjdk7 is probably unavailable. We may need to find a newer version and test with that.