[Pkg-phototools-devel] Bug#863446: lepton: Please make "Architecture: any"
Edmund Grimley Evans
edmund.grimley.evans at gmail.com
Fri May 26 22:37:04 UTC 2017
Source: lepton
Version: 1.2.1+20170405-1
I was able to build it on arm64 with just a few changes:
1. Change to "Architecture: any" in debian/control, obviously.
2. In debian/rules, use:
CPPFLAGS="-DUSE_SYSTEM_MD5_DEPENDENCY" dh_auto_configure --
--enable-system-dependencies --disable-vectorization
Note 2.1: The "USE_SYSTEM_MD5_DEPENDENCY" might fix bug #835108 for
you. I saw a similar problem where the local "md5.h" was used together
with the system library.
Note 2.2: You should make the "--disable-vectorization" conditional on
the Debian architecture, of course. Don't disable it on Intel
architectures.
3. Add the obvious pair of lines in srcio/Seccomp.cc:
#elif defined(__aarch64__)
# define ARCH_NR AUDIT_ARCH_AARCH64
4. In src/lepton/jpgcoder.cc replace "#ifndef _ARCH_PPC" with
something like "#if defined(__i386__) || defined(__x86_64__)".
Probably the same or similar changes would make this package build on
most architectures, so please try it some time.
More information about the Pkg-phototools-devel
mailing list