On Sat, Dec 02, 2017 at 12:36:11PM +0200, Juhani Numminen wrote:
> Control: tags -1 + patch
> 
> Hi there,
> 
> On Tue, 31 Jan 2017 09:35:00 +0000 Matthias Klose wrote:
> > The package fails to build in a test rebuild on at least amd64 with
> > gcc-7/g++-7, but succeeds to build with gcc-6/g++-6.
> 
> I think that's because GCJ was removed from GCC in version 7, and so the
> build tries to use gcj-6 with g++-7, which leads to the following error
> message.
> 
> > pdftk.cc:33:10: fatal error: gcj/cni.h: No such file or directory
> >  #include <gcj/cni.h>
> >           ^~~~~~~~~~~
> 
> Luckily, pdftk packaging already has a method to choose a specific GCC
> version. One only has to do the inverse of this commit:
> https://anonscm.debian.org/cgit/collab-maint/pdftk.git/commit/?id=4d888b81fbaaf49a086807ef6b072d93b06fac70
> 
> Here is the required change.
>...
> -Build-Depends: debhelper (>= 9), gcj-jdk
> +Build-Depends: debhelper (>= 9), gcj-6-jdk, g++-6
>...

The problem with that approach is that gcc-6 won't be part of buster,
and this would therefore result in an "uses obsolete gcc version"
RC bug before buster.

IIRC Florian Weimer at one point looked into making pdftk using 
something other than gcj, and considered that non-fixable.

> Cheers,
> Juhani

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

Reply via email to