openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #11105
Bug#797662: openjdk-7: please allow derivative build same as parent distro
Source: openjdk-7
Version: 7u79-2.5.5
Severity: wishlist
Hello,
Please allow building your package with same build runes as parent
distribution.
Regards
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (900, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 4.1.0-1-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru openjdk-7-7u79-2.5.5/debian/rules openjdk-7-7u79-2.5.5/debian/rules
--- openjdk-7-7u79-2.5.5/debian/rules 2015-04-15 20:39:28.000000000 +0200
+++ openjdk-7-7u79-2.5.5/debian/rules 2015-08-07 18:58:05.000000000 +0200
@@ -26,6 +26,9 @@
distribution := $(shell lsb_release --id --short)
distrel := $(shell lsb_release --codename --short)
+derivative := $(shell if dpkg-vendor --derives-from Ubuntu; then echo Ubuntu; \
+ elif dpkg-vendor --derives-from Debian; then echo Debian; \
+ else echo Unknown; fi)
ifeq ($(distrel),n/a)
distrel := sid
endif
@@ -330,7 +333,7 @@
endif
ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf))
-ifeq ($(distribution),Ubuntu)
+ifeq ($(derivative),Ubuntu)
ifneq (,$(filter $(distrel),jaunty))
OPT_CFLAGS/cppInterpreter_arm.o = -O2 -falign-functions=32 -falign-loops=8 -g0
else
@@ -377,7 +380,7 @@
on_buildd := $(shell [ -f /CurrentlyBuilding -o "$$LOGNAME" = buildd ] && echo yes)
-ifeq ($(distribution),Debian)
+ifeq ($(distributio),Debian)
with_wm = $(notdir $(firstword $(wildcard /usr/bin/metacity /usr/bin/twm)))
ifneq (,$(findstring twm, $(with_wm)))
with_wm_args = -f $(CURDIR)/bin/jtreg.tmwrc
@@ -690,7 +693,7 @@
jdk_tools = $(filter-out $(all_jre_tools), $(all_jdk_tools))
jdk_tools_alt = $(filter-out apt java-rmi.cgi, $(jdk_tools))
-ifeq ($(distribution),Ubuntu)
+ifeq ($(derivative),Ubuntu)
pkg_compress = lzma
else
pkg_compress = bzip2
@@ -780,7 +783,7 @@
rhino_source := $(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W librhino-java)
endif
-pkg_ffidev = $(if $(filter $(distribution),Ubuntu),$(if $(filter $(distrel),hardy),libffi4-dev,libffi-dev),libffi-dev)
+pkg_ffidev = $(if $(filter $(derivative),Ubuntu),$(if $(filter $(distrel),hardy),libffi4-dev,libffi-dev),libffi-dev)
bd_zero = \
$(pkg_ffidev) [$(foreach a,$(hotspot_archs),!$(a))],
@@ -886,7 +889,7 @@
# .desktop files need to be multiarch installable
java_launcher = /$(basedir)/bin/java
java_launcher = /usr/bin/java
-ifeq ($(distribution),Ubuntu)
+ifeq ($(derivative),Ubuntu)
ifeq (,$(filter $(distrel),karmic jaunty intrepid hardy))
java_launcher = cautious-launcher %f /$(basedir)/bin/java
java_launcher = cautious-launcher %f /usr/bin/java
@@ -1562,7 +1565,7 @@
rm -f debian/*.install debian/*.links debian/*.debhelper.log
lib_ext_dirs = common $(sort $(foreach arch,$(arch_map),$(firstword $(subst =,$(SPACE),$(arch)))))
-ifeq ($(distribution),Ubuntu)
+ifeq ($(derivative),Ubuntu)
lib_ext_dirs := $(filter-out arm hppa m68k mips% powerpcspe s390% sh%, $(lib_ext_dirs))
else
lib_ext_dirs := $(filter-out arm hppa lpia, $(lib_ext_dirs))