termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

[Bug]: recoll's `recollindex` binary linking issue

Open JCGoran opened this issue 1 year ago • 0 comments

Problem description

Recoll uses the recollindex binary (see for instance the online manpage) to perform the actual indexing of files on the filesystem; unfortunately, it seems that the linking in Termux is not working as intended, as when I run recollindex, I get the following error message:

CANNOT LINK EXECUTABLE "recollindex": library "librecoll-1.33.4.so" not found: needed by main executable

with an exit code 1.

What steps will reproduce the bug?

  1. install the recoll package: apt install recoll
  2. run recollindex

What is the expected behavior?

The recollindex binary should find the library at the proper path, which seems to be at /data/data/com.termux/files/usr/lib/recoll/librecoll-1.33.4.so. After some experimentation, running something like:

export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PREFIX/lib/recoll"

seems to do the trick, and recollindex can successfully index the files.

System information

termux-info:

Termux Variables:
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=26230
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb http://mirror.mephi.ru/termux/termux-main stable main
Updatable packages:
All packages up to date
termux-tools version:
1.35.0
Android version:
11
Kernel build information:
Linux localhost 4.14.212-gccfcc225a50c-ab7508431 #1 SMP PREEMPT Wed Jun 30 09:53:57 UTC 2021 aarch64 Android
Device manufacturer:
Google
Device model:
Pixel 4a

JCGoran avatar Jan 01 '23 23:01 JCGoran