I'm trying to compile KOReader on Gentoo Linux following
https://github.com/koreader/koreader...oc/Building.md
```
grozin@bilbo ~/koreader $ ./kodev build
************ CMAKE_MAKE_PROGRAM: "/usr/bin/ninja" **********
make -C base
make[1]: вход в каталог «/home/grozin/koreader/base»
************ CMAKE_MAKE_PROGRAM: "/usr/bin/ninja" **********
************ Building for MACHINE: "x86_64-pc-linux-gnu-debug" **********
************ PATH: "/home/grozin/bin:/home/grozin/reduce-4972/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/games/bin" **********
************ CHOST: "" **********
install -d build/x86_64-pc-linux-gnu-debug/libs
install -d thirdparty/luajit/build/x86_64-pc-linux-gnu-debug
cd thirdparty/luajit/build/x86_64-pc-linux-gnu-debug && \
cmake -G Ninja -DCC="gcc" \
-DXCOMPILE:BOOL=off \
-DBASE_CFLAGS="-Og -g -pipe -fno-omit-frame-pointer" -DHOST_CFLAGS="-march=native -Og -g -pipe -fno-omit-frame-pointer " \
-DLDFLAGS="-Wl,-O1 -Wl,--as-needed -static-libstdc++" \
\
\
-DTARGET_SONAME=libluajit.so \
-DTARGET_CFLAGS="-Og -g -pipe -fno-omit-frame-pointer -march=native -fPIC -DLUAJIT_SECURITY_STRHASH=0 -DLUAJIT_SECURITY_STRID=0" \
-DCROSS="-" \
/home/grozin/koreader/base/thirdparty/luajit && \
/usr/bin/ninja
-- The C compiler identification is GNU 11.2.1
-- The CXX compiler identification is GNU 11.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.35.1")
CMake Error: File /usr/share/cmake/Modules/RepositoryInfo.txt.in does not exist.
CMake Error at /home/grozin/koreader/base/thirdparty/cmake_modules/koreader_thirdparty_git.cmake:179 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:74 (ko_write_gitclone_script)
-- Configuring incomplete, errors occurred!
See also "/home/grozin/koreader/base/thirdparty/luajit/build/x86_64-pc-linux-gnu-debug/CMakeFiles/CMakeOutput.log".
make[1]: *** [Makefile.third:234: build/x86_64-pc-linux-gnu-debug/luajit] Ошибка 1
make[1]: выход из каталога «/home/grozin/koreader/base»
make: *** [Makefile:128: base/build/x86_64-pc-linux-gnu-debug/luajit] Ошибка 2
Failed to build emulator! Try run with -v for more information.
```
Naturally, there is no RepositoryInfo.txt.in in /usr/share/cmake/Modules/
Any ideas how to proceed?
I'd like to write an ebuild for KOReader for Gentoo (I currently maintain fbreader, coolreader, foliate, simple-fb2-reader in Gentoo). But first I need to build it on my computer.