* Simon Josefsson [Mon, 09 Mar 2009 10:39:48 +0100]:

> >>Hi.  Thanks for the report.  This patch may help:
> >>-Build-Depends: debhelper (>= 6), autotools-dev, gcj, fastjar
> >>+Build-Depends: debhelper (>= 6), autotools-dev, gcj [!alpha !arm !hppa 
> >>!hurd-i386 !sh3 !sh4], fastjar

Yes, that patch should help. In the common case, Build-Depending on
"gcj" will just prevent the package from being tried on arches that
do not have java/gcj. But TTBOMK the experimental autobuilders don't
include the patch that manages to do that, hence it was tried.

AFAICS, libidn provides other binaries than java package, so you really
need to apply your patch above. Otherwise, those other parts won't be
built on arches without java (and would be eternally out-of-date).

> >>The libidn11-java package is Architecture: all, so the libidn11-java
> >>package built on hppa will never be installed in the archive, right?

If you creates -java packages that are arch:any, in addition to
debian/control, you must modify your debian/rules to handle gracefully
being built on a system without gcj. The result should be that the
libidn11-java is not built at all; you can do that with the -N switch of
debhelper. You should be able to find example code.

However, if the java package is arch:all, no modification is strictly
required. However, if you want to be pedantic, you should ensure
binary-indep fails if the package is built on a system without gcj.

> >>I'm not sure how to test whether the above patch is enough, other than
> >>to upload a new package.  Rebuilding the package on my i386 machine
> >>will likely just work fine.  Ideas?

I suggest that you do the following test. Apply the following version of
the patch in a test package:

- Build-Depends: debhelper (>= 6), autotools-dev, gcj, fastjar
+ Build-Depends: debhelper (>= 6), autotools-dev, xxx [!i386], fastjar

And then build your package on pbuilder passing -B. That should simulate
what the hppa buildd is going to do. Do you see it?

> >>Anibal, what do you think?

> > https://buildd.debian.org/quinn-diff/Packages-arch-specific

> > Maybe list libidn11-java in Packages-arch-specific to only exclude hppa?

P-a-s would be relevant here if libidn11-java was arch:any, and only
because libidn provides some non-java packages.

> Maybe a better solution is to Build-Depend on 'default-jdk' rather than
> depending on 'gcj' explicitly?  I believe the libidn java port should
> build with any compliant java compiler.

I have no idea about this, and you should ask debian-java. But I'll note
that there is no default-jdk on hppa either.

I hope this mail cleared things for you.

Cheers,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
                       Listening to: Victoria Abril - Le jazz et la java




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

Reply via email to