make: *** [Makefile:137: install] Error 1
centralhardware opened this issue · comments
Alexey Fedechkin commented
I am trying to build latest version from master and get following erro
=> ERROR [builder 8/8] RUN make install DESTDIR=/app 0.4s
------
> [builder 8/8] RUN make install DESTDIR=/app:
0.353 mkdir -p /app/usr/bin
0.354 mkdir -p /app/usr/sbin
0.354 mkdir -p /app/htdocs
0.355 mkdir -p $(dirname /app)
0.356 install contrib/tzdatadb/timezone16.bin
0.359 BusyBox v1.36.1 (2023-11-07 18:53:09 UTC) multi-call binary.
0.359
0.359 Usage: install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [-t DIR] [SOURCE]... DEST
0.359
0.359 Copy files and set attributes
0.359
0.359 -c Just copy (default)
0.359 -d Create directories
0.359 -D Create leading target directories
0.359 -s Strip symbol table
0.359 -p Preserve date
0.359 -o USER Set ownership
0.359 -g GRP Set group ownership
0.359 -m MODE Set permissions
0.359 -t DIR Install to DIR
0.359 make: *** [Makefile:137: install] Error 1
------
Dockerfile:28
--------------------
26 | RUN make -j $(nprocs)
27 | RUN mkdir /app
28 | >>> RUN make install DESTDIR=/app
29 |
30 | FROM alpine
--------------------
ERROR: failed to solve: process "/bin/sh -c make install DESTDIR=/app" did not complete successfully: exit code: 2
Jan-Piet Mens commented
Sorry about that. My bad: I omitted adding TZDATADB
to config.mk.in:
# Where will the recorder find the TZ data file?
TZDATADB = /usr/share/owntracks/recorder/timezone16.bin
could you please add that to your config.mk
?
Jan-Piet Mens commented
After successful build there should be a file timezone16.bin
in /usr/share/owntracks/recorder/
, and when you launch the recorder you should see a diagnostic message indicating it’s using that file.
Querying the recorder via the API will surface two new fields as described here
Alexey Fedechkin commented
working now, thank you
Jan-Piet Mens commented
Thank you for reporting back!