Bug#870035: Compile with '--disable-bundled-libtom' to use system libtomcrypt/libtommath

2017-08-08 Thread Guilhem Moulin
On Tue, 08 Aug 2017 at 23:01:07 +0800, Matt Johnston wrote:
> --disable-bundled-libtom should work OK. I had assumed Debian was
> already using that.

I was not involved in dropbear maintenance during the early days, but
looking at debian/control's history it never Build-Depend'ed on
libtom*-dev.  I'll change that for 2017.75-2 (or 2017.76-1); thanks for
the info!

-- 
Guilhem.


signature.asc
Description: PGP signature


Bug#870035: Compile with '--disable-bundled-libtom' to use system libtomcrypt/libtommath (Was: Bug#870035: dropbear-bin: ftbfs on x32)

2017-08-07 Thread Guilhem Moulin
Hi,

Actually libtomcrypt 1.17 and libtommath 1.0 are both available in
Debian, so I'm tempted to add --disable-bundled-libtom to CFLAGS and
dynamically link against these libraries.  Not doing so is in fact a
violation of Debian policy §4.13:

“Some software packages include in their distribution convenience
copies of code from other software packages, generally so that users
compiling from source don't have to download multiple packages.
Debian packages should not make use of these convenience copies
unless the included package is explicitly intended to be used in
this way.”
— https://www.debian.org/doc/debian-policy/ch-source.html#s-embeddedfiles

However, as of 2017.75 dropbear's libtom bundle consists of libtomcrypt
1.16 and libtommath 0.40.  AFAICT dynamic linking against the latest
versions (1.17 + 1.0) works out of the box; Matt (X-Debbugs-Cc), are you
aware of any regressions when linking 2017.75 against the latest libtom?

Cheers,
-- 
Guilhem.


signature.asc
Description: PGP signature