Bug 294866

Summary: Problematic gcry_check_version(GCRYPT_VERSION) check
Product: [Applications] ktorrent Reporter: Modestas Vainius <modax>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Modestas Vainius 2012-02-26 14:28:43 UTC
Hello,

gcry_check_version(GCRYPT_VERSION) check at src/util/functions.cpp:InitGCrypt() is problematic. It uses GCRYPT_VERSION macro which expands to gcrypt version at compile time and potentially overrides dependencies provided by higher level packaging tools. If a minimum gcrypt version is needed, it should either be hardcoded in the code, or better yet, provided and defined via CMakeLists.txt.

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653400 for more information.
Comment 1 Joris Guisson 2012-02-28 17:34:49 UTC
Git commit a23bafe9191e0dcbd5ae75335fd5d8e49bfda9ed by Joris Guisson.
Committed on 28/02/2012 at 18:34.
Pushed by guisson into branch 'master'.

Don't use the gcrypt version macro in it's version check

M  +1    -0    ChangeLog
M  +3    -3    src/util/functions.cpp

http://commits.kde.org/libktorrent/a23bafe9191e0dcbd5ae75335fd5d8e49bfda9ed
Comment 2 Joris Guisson 2012-02-28 17:35:41 UTC
Git commit d285dad197ebab968df16885b30d40b2666a8ae9 by Joris Guisson.
Committed on 28/02/2012 at 18:34.
Pushed by guisson into branch '1.2'.

Backport to 1.2: Don't use the gcrypt version macro in it's version check

M  +1    -0    ChangeLog
M  +3    -3    src/util/functions.cpp

http://commits.kde.org/libktorrent/d285dad197ebab968df16885b30d40b2666a8ae9