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

jpackage error due to missing final newline in Debian control file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 14, 15
    • Fix Version/s: 15
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b24
    • OS:
      linux

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: