On Tue, Aug 31, 2021 at 12:18:52AM +0300, Niko Tyni wrote:
> Source: weechat
> Version: 3.0.1-1
> Severity: serious
> Tags: ftbfs sid bookworm
> 
> This package fails to build from source on current sid.
> 
> It looks like this regressed with the recent change in debianutils
> that made /usr/bin/which output a deprecation warning.
> 
> >From a build log:
> 
>    -- Found GCRYPT: /usr/bin/which: this version of `which' is deprecated; 
> use `command -v' in scripts instead.
>    -L/usr/lib/x86_64-linux-gnu -lgcrypt  
>    
>    [...]
>    
>    CMake Error at src/plugins/irc/CMakeLists.txt:20 (add_library):
>      Target "irc" links to item " use `command -v' in scripts instead.
>    
>      -L/usr/lib/x86_64-linux-gnu -lgcrypt" which has leading or trailing
>      whitespace.  This is now an error according to policy CMP0004.
> 
> A full log is available at
> 
>   
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/weechat.html
> 
> -- 
> Niko Tyni   nt...@debian.org

Hi Niko,

Thanks for your report.

The problem is indirectly caused by the deprecation of the "which" command in
the package debianutils.  I opened the Debian bug #993244 two days ago (feel
free to merge bugs if needed).

The "which" command seems to be used inside CMake, not in WeeChat itself, but
this breaks compilation of WeeChat (I suppose like many other packages).

For now I have no fix available on WeeChat side.  If the warning on stderr in
"which" command stays as-is, I think CMake has to be fixed.

-- 
Sébastien Helleu

web: weechat.org / flashtux.org
irc: FlashCode @ irc.libera.chat

Reply via email to