Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8244981

jpackage error due to missing final newline in Debian control file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • 14, 15
    • tools
    • b24
    • linux

      Several jpackage jtreg tests fail on Debian with this error:

      Generating DEB for installer to: /home/nicgas01/jdk/build/linux-aarch64-server-release/test-support/jtreg_test_jdk_tools_jpackage_linux_AppCategoryTest_java/tools/jpackage/linux/AppCategoryT\
      est/./output/appcategorytest_1.0-1_arm64.deb.
      Running [fakeroot, dpkg-deb, --verbose, -b, /tmp/jdk.incubator.jpackage5360969385964413475/images, /home/nicgas01/jdk/build/linux-aarch64-server-release/test-support/jtreg_test_jdk_tools_jpa\
      ckage_linux_AppCategoryTest_java/tools/jpackage/linux/AppCategoryTest/./output/appcategorytest_1.0-1_arm64.deb]
      dpkg-deb: error: parsing file '/tmp/jdk.incubator.jpackage5360969385964413475/images/DEBIAN/control' near line 9 package 'appcategorytest':
       end of file during value of field 'Installed-Size' (missing final newline)
      java.io.IOException: Command [fakeroot, dpkg-deb, --verbose, -b, /tmp/jdk.incubator.jpackage5360969385964413475/images, /home/nicgas01/jdk/build/linux-aarch64-server-release/test-support/jtr\
      eg_test_jdk_tools_jpackage_linux_AppCategoryTest_java/tools/jpackage/linux/AppCategoryTest/./output/appcategorytest_1.0-1_arm64.deb] exited with 2 code
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Executor.executeExpectSuccess(Executor.java:73)

      dpkg-deb requires the control file end with a final newline. Seen on Ubuntu 18.04 and Debian Bullseye.

            ngasson Nick Gasson
            ngasson Nick Gasson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: