Package: amule
Version: 2.1.0-1
Severity: minor

Hi,
 amule configure script doesn't recognise crypto++ release.
 It use: grep "Reference Manual" $crypto_prefix/include/crypto++/cryptlib.h | 
cut -d' ' -f5
 that with libcrypto++-dev package gives back Reference instead of 5.2.1.

 So I suggest to change it using sed.
 
 Here two little patches to change this behaviour 
 and to change crypto++ header style name from gentoo_debian to only debian.

--- acinclude.m4        2006-01-17 20:02:50.000000000 +0100
+++ acinclude.m4        2006-01-17 20:05:27.000000000 +0100
@@ -586,8 +586,12 @@
          fi

if test -f $crypto_prefix/include/crypto++/cryptlib.h; then
-                 CRYPTO_PP_STYLE="gentoo_debian"
-                 crypto_version=`grep "Reference Manual" 
$crypto_prefix/include/crypto++/cryptlib.h | cut -d' ' -f5`
+               if test -f /etc/debian_version; then
+                 CRYPTO_PP_STYLE="debian"
+               else
+                 CRYPTO_PP_STYLE="gentoo"
+               fi
+               crypto_version=`grep "Reference Manual" 
$crypto_prefix/include/crypto++/cryptlib.h | sed 
's/[[^0-9]]*\([[0-9]][[0-9.]]*\).*$/\1/'`
         fi

          vers=`echo $crypto_version | $AWK 'BEGIN { FS = "."; } { printf "% 
d", ([$]1 * 1000 + [$]2) * 1000 + [$]3;}'`

*** second patch ***

--- configure.in        2006-01-17 20:03:01.000000000 +0100
+++ configure.in        2006-01-17 20:04:30.000000000 +0100
@@ -243,7 +243,7 @@

 case "$CRYPTO_PP_STYLE" in

- gentoo_debian) CXXFLAGS="$CXXFLAGS -I$crypto_prefix/include 
-D__CRYPTO_DEBIAN_GENTOO__"
+ gentoo | debian ) CXXFLAGS="$CXXFLAGS -I$crypto_prefix/include 
-D__CRYPTO_DEBIAN_GENTOO__"
                 # Debian uses libcrypto++5.1 - it's not my fault, please soda 
patch the package
                 LDFLAGS="$LDFLAGS -L$crypto_prefix/lib"
                 CRYPTOLIBS="-lcrypto++"


Thanks

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (800, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages amule depends on:
ii  amule-common                  2.1.0-1    common files for aMule
ii  libc6                         2.3.5-12   GNU C Library: Shared libraries an
ii  libcrypto++5.2c2a             5.2.1c2a-2 General purpose cryptographic shar
ii  libgcc1                       1:4.0.2-7  GCC support library
ii  libstdc++6                    4.0.2-7    The GNU Standard C++ Library v3
ii  libwxgtk2.6-0                 2.6.1.2    wxWidgets Cross-platform C++ GUI t
ii  zlib1g                        1:1.2.3-9  compression library - runtime

Versions of packages amule recommends:
ii  amule-daemon                  2.1.0-1    aMule daemon
ii  amule-utils                   2.1.0-1    utilities for amule

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to