Subject: bug#38929: [bug#78732] [PATCH] gnu: simple-scan: enable scanning over network for eSCL/WSD scanners

From: Sergey Trofimov <[email-masked]>
Date: Thu, 12 Jun 2025 13:04:02 +0200

Hi,

Rostislav Svoboda <[email-masked]> writes:

> Hello
>
>> The LD_LIBRARY_PATH looks suspicious.
>
> What exactly is suspicious?
>
>>  Is there any way around it using other SANE tooling?
>
> AFAIK there's no simpler runtime-only solution:
> - You could use patchelf to prepend the store's lib/sane directory
> onto the binary's RPATH, but that's as even even more fiddly as
> setting LD_LIBRARY_PATH
> - sane-config only spits out compile-time flags (-I..., -L...,
> -lsane); it doesn't tell the loader where to find backends at runtime.
>

I've proposed another solution on codeberg, please take a look
https://codeberg.org/guix/guix/pulls/541