Control: reopen -1

That didn't work, unfortunately. On powerpc, it's still building with 
debug-level
release and consequently fails [1] as powerpc is Zero-only target:

(No custom hook found at /«PKGBUILDDIR»/src/closed/autoconf/custom-hook.m4)
cd build && MAKE_VERBOSE=y QUIETLY= LOG=debug IGNORE_OLD_CONFIG=true 
LIBFFI_LIBS=-lffi_pic DEBUG_BINARIES=true FULL_DEBUG_SYMBOLS=0 
ZIP_DEBUGINFO_FILES=0
STRIP_POLICY=none POST_STRIP_CMD=true ../src/configure \
         --host=powerpc-linux-gnu --build=powerpc-linux-gnu 
--with-jvm-variants=zero --with-boot-jdk=/usr/lib/jvm/java-8-openjdk-powerpc
--with-boot-jdk-jvmargs="-XX:ThreadStackSize=2240" 
--with-extra-cflags='-Wdate-time -D_FORTIFY_SOURCE=2 -g 
-fdebug-prefix-map=/«PKGBUILDDIR»=. -Wformat
-fno-stack-protector -Wno-deprecated-declarations -Wdate-time 
-D_FORTIFY_SOURCE=2' --with-extra-cxxflags='-Wdate-time -D_FORTIFY_SOURCE=2 -g
-fdebug-prefix-map=/«PKGBUILDDIR»=. -Wformat -fno-stack-protector 
-Wno-deprecated-declarations' --with-extra-ldflags='-Xlinker -z -Xlinker relro 
-Xlinker
-Bsymbolic-functions' \
         --disable-ccache --with-jtreg=/usr --with-version-pre=Debian 
--with-version-opt=9~b179-1  --with-debug-level=release 
--enable-unlimited-crypto
--with-zlib=system --with-giflib=system --with-libpng=system 
--with-libjpeg=system --with-lcms=system --with-pcsclite=system 
--with-stdc++lib=dynamic
--disable-warnings-as-errors --disable-javac-server  --with-num-cores=4
Warning: You are using legacy autoconf cross-compilation flags.
It is recommended that you use --openjdk-target instead.

>From the debian/rules file:

COMMON_CONFIGURE_ARGS += \
        --with-debug-level=release \
        --enable-unlimited-crypto \
        --with-zlib=system \
        --with-giflib=system \
        --with-libpng=system \
        --with-libjpeg=system \
        --with-lcms=system \
        --with-pcsclite=system \
        --with-stdc++lib=dynamic \
        --disable-warnings-as-errors \
        --disable-javac-server \

This has to be "--with-debug-level=slowdebug" for Zero targets.

Thus, I suggest the following change:

--- debian/rules.orig   2017-07-21 16:02:19.000000000 +0200

+++ debian/rules        2017-07-22 20:43:09.146954686 +0200

@@ -524,9 +524,11 @@

   else

     DEFAULT_CONFIGURE_ARGS += --with-jvm-variants=server

   endif

+  DEFAULT_CONFIGURE_ARGS += --with-debug-level=release

 else

   DEFAULT_CONFIGURE_ARGS += --host=$(DEB_HOST_GNU_TYPE) 
--build=$(DEB_BUILD_GNU_TYPE)

   DEFAULT_CONFIGURE_ARGS += --with-jvm-variants=zero

+  DEFAULT_CONFIGURE_ARGS += --with-debug-level=slowdebug

 endif

 ZERO_CONFIGURE_ARGS += --with-jvm-variants=zero


@@ -560,7 +562,6 @@
        --with-version-opt=$(PKGVERSION) \

 COMMON_CONFIGURE_ARGS += \
-       --with-debug-level=release \
        --enable-unlimited-crypto \
        --with-zlib=system \
        --with-giflib=system \

> [1] 
> https://buildd.debian.org/status/fetch.php?pkg=openjdk-9&arch=powerpc&ver=9%7Eb179-1&stamp=1500747475&raw=0

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply via email to