Bug#1021440: emboss: FTBFS on hppa - no java

2022-10-10 Thread Andreas Tille
Hi John,

Am Sat, Oct 08, 2022 at 05:12:13PM + schrieb John David Anglin:
> The emboss package does not currently build on hppa because of a lack
> of java support.
> 
> The attached patch adds support for the nojava profile and fixes building
> on hppa except for the jemboss package which need java.

I've applied your patch to reward your work.  However, my personal
insight into the packages maintained by the Debian Med team tells me,
that the probability that any of our packages will be used on hppa is
zero.  Just to let you know that there are probably more valuable fields
you could spent your time on.

Thanks for the patch anyway

 Andreas.

-- 
http://fam-tille.de



Bug#1021440: emboss: FTBFS on hppa - no java

2022-10-08 Thread John David Anglin
Source: emboss
Version: 6.6.0+dfsg-11
Severity: normal
Tags: ftbfs patch

Dear Maintainer,

The emboss package does not currently build on hppa because of a lack
of java support.

The attached patch adds support for the nojava profile and fixes building
on hppa except for the jemboss package which need java.

See for build log:
https://buildd.debian.org/status/fetch.php?pkg=emboss=hppa=6.6.0%2Bdfsg-11=1665246248=0

Regards,
Dave Anglin

-- System Information:
Debian Release: bookworm/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 5.19.14+ (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
--- control.save2022-02-18 13:43:27.0 +
+++ control 2022-10-08 14:29:05.879080150 +
@@ -5,7 +5,7 @@
 Section: science
 Priority: optional
 Build-Depends: debhelper-compat (= 13),
-#  javahelper,
+#  javahelper [!hppa] ,
libx11-dev,
x11proto-core-dev,
libgdchart-gd2-xpm-dev,
@@ -19,8 +19,8 @@
sharutils,
tcsh | csh | c-shell,
 # Needed until the following is solved: 
https://sourceforge.net/tracker/?func=detail=3033326_id=93650=605031
-   default-jdk,
-   ant
+   default-jdk [!hppa] ,
+   ant [!hppa] 
 # #Build-Depends-Indep: default-jdk
 Standards-Version: 4.5.0
 Vcs-Browser: https://salsa.debian.org/med-team/emboss
@@ -142,6 +142,7 @@
 
 Package: jemboss
 Architecture: all
+Build-Profiles: 
 Depends: ${shlibs:Depends},
  ${misc:Depends},
  emboss,
--- rules.save  2022-10-07 22:14:29.265495688 +
+++ rules   2022-10-08 14:35:04.872301169 +
@@ -16,6 +16,13 @@
 VERSION=$(DEB_VERSION_UPSTREAM)
 RENAMED := cons pscan
 
+# Disable java packages on architecture that don't have
+# an openjdk port.
+nojava_archs = hppa
+ifneq (,$(filter $(DEB_HOST_ARCH), $(nojava_archs)))
+export DEB_BUILD_PROFILES += nojava
+endif
+
 EMBOSS-TMP  = $(CURDIR)/debian/emboss_tmp
 EMBOSS  = $(CURDIR)/debian/emboss
 EMBOSS-TEST = $(CURDIR)/debian/emboss-test
@@ -25,8 +32,11 @@
 CONFFLAGS   += --libdir=/usr/lib/emboss/lib
 CONFFLAGS   += --includedir=/usr/lib/emboss/include
 CONFFLAGS   += --enable-systemlibs
+
+ifeq ($(filter nojava,$(DEB_BUILD_PROFILES)),)
 CONFFLAGS   += --with-java=/usr/lib/jvm/default-java/include
 CONFFLAGS   += --with-javaos=/usr/lib/jvm/default-java/include/linux
+endif
 
 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
@@ -42,9 +52,11 @@
 
 override_dh_auto_build:
dh_auto_build -- AJAX_FIXED_ROOT=\\\"/usr/share/EMBOSS\\\" 
CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(DEB_LDFLAGS)"
+ifeq ($(filter nojava,$(DEB_BUILD_PROFILES)),)
# Add 2 extra files wanted in jemboss.jar
cd jemboss/lib && make jemboss.jar
cd jemboss && jar uf lib/jemboss.jar resources/version 
resources/*.properties
+endif
 
 override_dh_clean:
rm -rf debian/emboss_tmp
@@ -88,6 +100,7 @@
### While the next call repeats a statement from install-arch it is 
needed to get the
### data dir right into place.  Make should be clever enough to not 
duplicate the process
$(MAKE) -C emboss install DESTDIR=$(EMBOSS-TMP)
+ifeq ($(filter nojava,$(DEB_BUILD_PROFILES)),)
$(MAKE) -C jemboss install DESTDIR=$(CURDIR)/debian/jemboss 
bindir=/usr/bin
# install target seems to remove executable flag which is claimed by 
lintian
find debian/jemboss/usr/share/EMBOSS/jemboss/utils -type f -not 
-executable -name "*sh" -exec chmod a+x \{\} \;
@@ -95,6 +108,7 @@
rm debian/jemboss/usr/share/EMBOSS/jemboss/LICENSE
# resources.jar not needed as we use the data files in 
/usr/share/EMBOSS/data/
rm -f debian/jemboss/usr/share/EMBOSS/jemboss/resources/resources.jar
+endif
 
### Installation of the test suite
cp -a test debian/emboss-test/usr/share/EMBOSS/