[erlang-questions] deb package from erlang app release

Pablo Platt <>
Mon Jan 17 11:50:21 CET 2011


>On Sun, 2011-01-16 at 17:19 -0800, Pablo Platt wrote:
>> Do I need to break the release and spread it on several places on the file 
>> system or should I put everything under a specific folder?
>> In the latter, which folder? var/lib/myapp, usr/share/myapp ?
>
>When I created a deb package for my application I simply copied the
>release to /opt and then created symlinks from the appropriate locations
>to the release (e.g. /etc/init.d/foo -> /opt/foo/bin/foo).
>
>HTH,
>Andre

When I'm copying the release to /opt (in the dh-make install script) I'm getting 
many errors and warnings:

W: myapp: executable-not-elf-or-script 
./opt/myapp/lib/observer-0.9.8.4/priv/bin/getop.bat
W: myapp: executable-not-elf-or-script 
./opt/myapp/lib/observer-0.9.8.4/priv/bin/etop.bat
W: myapp: executable-not-elf-or-script 
./opt/myapp/lib/webtool-0.8.7/priv/bin/start_webtool.bat
E: myapp: embedded-zlib ./opt/myapp/erts-5.8.2/bin/beam
E: myapp: embedded-library ./opt/myapp/erts-5.8.2/bin/beam: pcre3
E: myapp: embedded-zlib ./opt/myapp/erts-5.8.2/bin/beam.smp
E: myapp: embedded-library ./opt/myapp/erts-5.8.2/bin/beam.smp: pcre3
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/ssl/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/local/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/local/openssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/lib/ssl/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/openssl/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/pkg/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/local/ssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/local/openssl/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/local/ssl/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/sfw/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /opt/local/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/lib/ssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/lib/openssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/local/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/openssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /opt/local/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/pkg/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/sfw/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/ssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so /usr/lib/openssl/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/ssl/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/local/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/local/openssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/lib/ssl/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/openssl/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/pkg/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/local/ssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/local/openssl/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/local/ssl/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/sfw/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /opt/local/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/lib/ssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/lib/openssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/local/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/openssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /opt/local/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/pkg/lib
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/sfw/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/ssl/lib64
E: myapp: binary-or-shlib-defines-rpath 
./opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock /usr/lib/openssl/lib
E: myapp: dir-or-file-in-opt opt/myapp/
E: myapp: dir-or-file-in-opt opt/myapp/bin/
E: myapp: dir-or-file-in-opt opt/myapp/bin/myapp
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/beam
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/beam.smp
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/child_setup
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/ct_run
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/epmd
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/erl
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/erlc
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/erlexec
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/escript
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/heart
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/inet_gethost
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/nodetool
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/run_erl
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/start
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/bin/to_erl
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/doc/
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/driver_int.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/erl_driver.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/erl_drv_nif.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/erl_fixed_size_int_types.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/erl_int_sizes_config.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/erl_memory_trace_parser.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/erl_nif.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/erl_nif_api_funcs.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/README
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/erl_errno.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/erl_memory_trace_protocol.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/erl_misc_utils.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/erl_printf.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/erl_printf_format.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/erts_internal.mk
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/ethr_mutex.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/ethr_optimized_fallbacks.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/ethread.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/ethread.mk
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/ethread_header_config.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/gcc/
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/gcc/ethr_atomic.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/gcc/ethread.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/i386/
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/i386/atomic.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/i386/ethread.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/i386/rwlock.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/i386/spinlock.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/libatomic_ops/
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/libatomic_ops/ethr_atomic.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/libatomic_ops/ethread.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/ppc32/
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/ppc32/atomic.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/ppc32/ethread.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/ppc32/rwlock.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/ppc32/spinlock.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/pthread/
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/pthread/ethr_event.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/sparc32/
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/sparc32/atomic.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/sparc32/ethread.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/sparc32/rwlock.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/sparc32/spinlock.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/sparc64/
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/sparc64/ethread.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/tile/
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/tile/atomic.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/tile/ethread.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/win/
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/win/ethr_atomic.h
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/win/ethr_event.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/win/ethread.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/include/internal/x86_64/
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/include/internal/x86_64/ethread.h
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/lib/
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/lib/internal/
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/lib/internal/README
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/lib/internal/liberts_internal.a
E: myapp: dir-or-file-in-opt 
opt/myapp/erts-5.8.2/lib/internal/liberts_internal_r.a
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/lib/internal/libethread.a
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/lib/liberts.a
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/lib/liberts_r.a
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/man/
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/src/
E: myapp: dir-or-file-in-opt opt/myapp/erts-5.8.2/src/setuid_socket_wrap.c
E: myapp: dir-or-file-in-opt opt/myapp/etc/
E: myapp: dir-or-file-in-opt opt/myapp/etc/app.config
E: myapp: dir-or-file-in-opt opt/myapp/etc/vm.args
E: myapp: dir-or-file-in-opt opt/myapp/lib/
E: myapp: dir-or-file-in-opt opt/myapp/lib/compiler-4.7.2.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/crypto-2.0.2.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/crypto-2.0.2/
E: myapp: dir-or-file-in-opt opt/myapp/lib/crypto-2.0.2/priv/
E: myapp: dir-or-file-in-opt opt/myapp/lib/crypto-2.0.2/priv/lib/
E: myapp: dir-or-file-in-opt opt/myapp/lib/crypto-2.0.2/priv/lib/crypto.so
E: myapp: dir-or-file-in-opt opt/myapp/lib/crypto-2.0.2/priv/obj/
E: myapp: dir-or-file-in-opt opt/myapp/lib/crypto-2.0.2/priv/obj/Makefile
E: myapp: dir-or-file-in-opt opt/myapp/lib/crypto-2.0.2/priv/obj/crypto.o
E: myapp: dir-or-file-in-opt opt/myapp/lib/edoc-0.7.6.8.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/edoc-0.7.6.8/
E: myapp: dir-or-file-in-opt opt/myapp/lib/edoc-0.7.6.8/include/
E: myapp: dir-or-file-in-opt opt/myapp/lib/edoc-0.7.6.8/include/edoc_doclet.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/edoc-0.7.6.8/priv/
E: myapp: dir-or-file-in-opt opt/myapp/lib/edoc-0.7.6.8/priv/edoc.dtd
E: myapp: dir-or-file-in-opt opt/myapp/lib/edoc-0.7.6.8/priv/edoc_generate
E: myapp: dir-or-file-in-opt opt/myapp/lib/edoc-0.7.6.8/priv/erlang.png
E: myapp: dir-or-file-in-opt opt/myapp/lib/edoc-0.7.6.8/priv/stylesheet.css
E: myapp: dir-or-file-in-opt opt/myapp/lib/emongo-1.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/emongo-1/
E: myapp: dir-or-file-in-opt opt/myapp/lib/emongo-1/include/
E: myapp: dir-or-file-in-opt opt/myapp/lib/emongo-1/include/emongo.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/erlydtl-0.6.1.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/erlydtl-0.6.1/
E: myapp: dir-or-file-in-opt opt/myapp/lib/erlydtl-0.6.1/priv/
E: myapp: dir-or-file-in-opt opt/myapp/lib/erlydtl-0.6.1/priv/custom_tags/
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/erlydtl-0.6.1/priv/custom_tags/flashvideo
E: myapp: dir-or-file-in-opt opt/myapp/lib/erts-5.8.2.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/et-1.4.2.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/et-1.4.2/
E: myapp: dir-or-file-in-opt opt/myapp/lib/et-1.4.2/include/
E: myapp: dir-or-file-in-opt opt/myapp/lib/et-1.4.2/include/et.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/eunit-2.1.6.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/eunit-2.1.6/
E: myapp: dir-or-file-in-opt opt/myapp/lib/eunit-2.1.6/include/
E: myapp: dir-or-file-in-opt opt/myapp/lib/eunit-2.1.6/include/eunit.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/gproc-0.01.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/gproc-0.01/
E: myapp: dir-or-file-in-opt opt/myapp/lib/gproc-0.01/include/
E: myapp: dir-or-file-in-opt opt/myapp/lib/gproc-0.01/include/gproc.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/gproc-0.01/priv/
E: myapp: dir-or-file-in-opt opt/myapp/lib/gproc-0.01/priv/sys.config
E: myapp: dir-or-file-in-opt opt/myapp/lib/gs-1.5.13.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/gs-1.5.13/
E: myapp: dir-or-file-in-opt opt/myapp/lib/gs-1.5.13/priv/
E: myapp: dir-or-file-in-opt opt/myapp/lib/gs-1.5.13/priv/bitmap/
E: myapp: dir-or-file-in-opt opt/myapp/lib/gs-1.5.13/priv/bitmap/fup.bm
E: myapp: dir-or-file-in-opt opt/myapp/lib/gs-1.5.13/priv/gs-xdefaults
E: myapp: dir-or-file-in-opt opt/myapp/lib/gs-1.5.13/priv/gstk.tcl
E: myapp: dir-or-file-in-opt opt/myapp/lib/hipe-3.7.8.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/inets-5.5.1.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/inets-5.5.1/
E: myapp: dir-or-file-in-opt opt/myapp/lib/inets-5.5.1/priv/
E: myapp: dir-or-file-in-opt opt/myapp/lib/inets-5.5.1/priv/bin/
E: myapp: dir-or-file-in-opt opt/myapp/lib/inets-5.5.1/priv/bin/runcgi.sh
E: myapp: dir-or-file-in-opt opt/myapp/lib/kernel-2.14.2.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/kernel-2.14.2/
E: myapp: dir-or-file-in-opt opt/myapp/lib/kernel-2.14.2/include/
E: myapp: dir-or-file-in-opt opt/myapp/lib/kernel-2.14.2/include/file.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/kernel-2.14.2/include/inet.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/kernel-2.14.2/include/inet_sctp.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/mnesia-4.4.16.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/mnesia-4.4.16/
E: myapp: dir-or-file-in-opt opt/myapp/lib/mnesia-4.4.16/include/
E: myapp: dir-or-file-in-opt opt/myapp/lib/mochiweb-1.5.0.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/observer-0.9.8.4.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/observer-0.9.8.4/
E: myapp: dir-or-file-in-opt opt/myapp/lib/observer-0.9.8.4/include/
E: myapp: dir-or-file-in-opt opt/myapp/lib/observer-0.9.8.4/include/etop.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/observer-0.9.8.4/priv/
E: myapp: dir-or-file-in-opt opt/myapp/lib/observer-0.9.8.4/priv/bin/
E: myapp: dir-or-file-in-opt opt/myapp/lib/observer-0.9.8.4/priv/bin/etop
E: myapp: dir-or-file-in-opt opt/myapp/lib/observer-0.9.8.4/priv/bin/etop.bat
E: myapp: dir-or-file-in-opt opt/myapp/lib/observer-0.9.8.4/priv/bin/getop
E: myapp: dir-or-file-in-opt opt/myapp/lib/observer-0.9.8.4/priv/bin/getop.bat
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/observer-0.9.8.4/priv/crashdump_viewer.tool
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/observer-0.9.8.4/priv/crashdump_viewer/
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/observer-0.9.8.4/priv/crashdump_viewer/collapsd.gif
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/observer-0.9.8.4/priv/crashdump_viewer/exploded.gif
E: myapp: dir-or-file-in-opt opt/myapp/lib/public_key-0.10.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/public_key-0.10/
E: myapp: dir-or-file-in-opt opt/myapp/lib/public_key-0.10/include/
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/public_key-0.10/include/OTP-PUB-KEY.hrl
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/public_key-0.10/include/public_key.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/runtime_tools-1.8.4.1.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/runtime_tools-1.8.4.1/
E: myapp: dir-or-file-in-opt opt/myapp/lib/runtime_tools-1.8.4.1/include/
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/runtime_tools-1.8.4.1/include/observer_backend.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/runtime_tools-1.8.4.1/priv/
E: myapp: dir-or-file-in-opt opt/myapp/lib/runtime_tools-1.8.4.1/priv/lib/
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/runtime_tools-1.8.4.1/priv/lib/trace_file_drv.so
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/runtime_tools-1.8.4.1/priv/lib/trace_ip_drv.so
E: myapp: dir-or-file-in-opt opt/myapp/lib/sasl-2.1.9.2.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/myapp-1.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/bin/
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/bin/ssl_esock
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/obj/
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/obj/Makefile
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/obj/debuglog.o
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/obj/esock.o
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/obj/esock_openssl.o
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/obj/esock_osio.o
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/obj/esock_poll.o
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/obj/esock_posix_str.o
E: myapp: dir-or-file-in-opt opt/myapp/lib/ssl-4.1.1/priv/obj/esock_utils.o
E: myapp: dir-or-file-in-opt opt/myapp/lib/stdlib-1.17.2.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/stdlib-1.17.2/
E: myapp: dir-or-file-in-opt opt/myapp/lib/stdlib-1.17.2/include/
E: myapp: dir-or-file-in-opt opt/myapp/lib/stdlib-1.17.2/include/erl_bits.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/stdlib-1.17.2/include/erl_compile.hrl
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/stdlib-1.17.2/include/ms_transform.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/stdlib-1.17.2/include/qlc.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/stdlib-1.17.2/include/zip.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/syntax_tools-1.6.7.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/tools-2.6.6.2.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/tools-2.6.6.2/
E: myapp: dir-or-file-in-opt opt/myapp/lib/tools-2.6.6.2/priv/
E: myapp: dir-or-file-in-opt opt/myapp/lib/tools-2.6.6.2/priv/cover.tool
E: myapp: dir-or-file-in-opt opt/myapp/lib/tools-2.6.6.2/priv/index.html
E: myapp: dir-or-file-in-opt opt/myapp/lib/webtool-0.8.7.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/webtool-0.8.7/
E: myapp: dir-or-file-in-opt opt/myapp/lib/webtool-0.8.7/priv/
E: myapp: dir-or-file-in-opt opt/myapp/lib/webtool-0.8.7/priv/bin/
E: myapp: dir-or-file-in-opt opt/myapp/lib/webtool-0.8.7/priv/bin/start_webtool
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/webtool-0.8.7/priv/bin/start_webtool.bat
E: myapp: dir-or-file-in-opt opt/myapp/lib/webtool-0.8.7/priv/root/
E: myapp: dir-or-file-in-opt opt/myapp/lib/webtool-0.8.7/priv/root/conf/
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/webtool-0.8.7/priv/root/conf/mime.types
E: myapp: dir-or-file-in-opt opt/myapp/lib/webtool-0.8.7/priv/root/doc/
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/webtool-0.8.7/priv/root/doc/index.html
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/webtool-0.8.7/priv/root/doc/start_info.html
E: myapp: dir-or-file-in-opt 
opt/myapp/lib/webtool-0.8.7/priv/root/doc/tool_management.html
E: myapp: dir-or-file-in-opt opt/myapp/lib/wx-0.98.8.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/wx-0.98.8/
E: myapp: dir-or-file-in-opt opt/myapp/lib/wx-0.98.8/include/
E: myapp: dir-or-file-in-opt opt/myapp/lib/wx-0.98.8/include/gl.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/wx-0.98.8/include/glu.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/wx-0.98.8/include/wx.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/xmerl-1.2.7.ez
E: myapp: dir-or-file-in-opt opt/myapp/lib/xmerl-1.2.7/
E: myapp: dir-or-file-in-opt opt/myapp/lib/xmerl-1.2.7/include/
E: myapp: dir-or-file-in-opt opt/myapp/lib/xmerl-1.2.7/include/xmerl.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/xmerl-1.2.7/include/xmerl_xlink.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/xmerl-1.2.7/include/xmerl_xpath.hrl
E: myapp: dir-or-file-in-opt opt/myapp/lib/xmerl-1.2.7/include/xmerl_xsd.hrl
E: myapp: dir-or-file-in-opt opt/myapp/log/
E: myapp: dir-or-file-in-opt opt/myapp/log/erlang.log.1
E: myapp: dir-or-file-in-opt opt/myapp/log/run_erl.log
E: myapp: dir-or-file-in-opt opt/myapp/log/sasl-error.log
E: myapp: dir-or-file-in-opt opt/myapp/log/sasl/
E: myapp: dir-or-file-in-opt opt/myapp/log/sasl/1
E: myapp: dir-or-file-in-opt opt/myapp/log/sasl/index
E: myapp: dir-or-file-in-opt opt/myapp/releases/
E: myapp: dir-or-file-in-opt opt/myapp/releases/1/
E: myapp: dir-or-file-in-opt opt/myapp/releases/1/myapp.boot
E: myapp: dir-or-file-in-opt opt/myapp/releases/1/myapp.rel
E: myapp: dir-or-file-in-opt opt/myapp/releases/1/myapp.script
E: myapp: dir-or-file-in-opt opt/myapp/releases/1/start_clean.boot
E: myapp: dir-or-file-in-opt opt/myapp/releases/1/start_clean.rel
E: myapp: dir-or-file-in-opt opt/myapp/releases/1/start_clean.script
E: myapp: dir-or-file-in-opt opt/myapp/releases/start_erl.data
Finished running lintian.




________________________________
From: Andre Nathan <>
To: Pablo Platt <>
Cc: 
Sent: Mon, January 17, 2011 12:16:37 PM
Subject: Re: [erlang-questions] deb package from erlang app release

On Sun, 2011-01-16 at 17:19 -0800, Pablo Platt wrote:
> Do I need to break the release and spread it on several places on the file 
> system or should I put everything under a specific folder?
> In the latter, which folder? var/lib/myapp, usr/share/myapp ?

When I created a deb package for my application I simply copied the
release to /opt and then created symlinks from the appropriate locations
to the release (e.g. /etc/init.d/foo -> /opt/foo/bin/foo).

HTH,
Andre


      


More information about the erlang-questions mailing list