yandex/odyssey

Could not build Debian package under Ubuntu

pensnarik opened this issue · 0 comments

I got an error while building a Debian package. I tried the following steps:

  1. Since there is no instruction on how to build a Debian package, I tried to add -DBUILD_DEBIAN=ON to CMAKE_FLAGS. I think this worked because I got control and rules files in build/debian dir.
  2. I went to build dir and run debuild. It started to build a package but finished with the following error:
Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:49 (file):
  file INSTALL cannot find
  "/home/andrey/build/odyssey/odyssey.init": No such file or
  directory.


make[2]: *** [Makefile:86: install] Error 1
make[2]: Leaving directory '/home/andrey/build/odyssey/build'
dh_auto_install: error: make -j1 install DESTDIR=/home/andrey/build/odyssey/build/debian/odyssey AM_UPDATE_INFO_DIR=no returned exit code 2
make[1]: *** [debian/rules:9: override_dh_auto_install] Error 25
make[1]: Leaving directory '/home/andrey/build/odyssey/build'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui failed

There is odyssey.init file but it's located upper in /home/andrey/build/odyssey. Is this a bug or I'm doing something wrong? I tried 1.2 and 1.3 tags.