[Debian-med-packaging] Bug#1021440: emboss: FTBFS on hppa - no java

John David Anglin dave.anglin at bell.net
Sat Oct 8 18:12:13 BST 2022


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&arch=hppa&ver=6.6.0%2Bdfsg-11&stamp=1665246248&raw=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)
-------------- next part --------------
--- control.save	2022-02-18 13:43:27.000000000 +0000
+++ control	2022-10-08 14:29:05.879080150 +0000
@@ -5,7 +5,7 @@
 Section: science
 Priority: optional
 Build-Depends: debhelper-compat (= 13),
-#              javahelper,
+#              javahelper [!hppa] <!nojava>,
                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&aid=3033326&group_id=93650&atid=605031
-               default-jdk,
-               ant
+               default-jdk [!hppa] <!nojava>,
+               ant [!hppa] <!nojava>
 # #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: <!nojava>
 Depends: ${shlibs:Depends},
          ${misc:Depends},
          emboss,
--- rules.save	2022-10-07 22:14:29.265495688 +0000
+++ rules	2022-10-08 14:35:04.872301169 +0000
@@ -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/


More information about the Debian-med-packaging mailing list