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

--linux-package-deps Is documented as Boolean flag, but it actually takes an arg

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 15, 25
    • tools
    • generic
    • linux

      A DESCRIPTION OF THE PROBLEM :
      You can also see this in the code:

      https://github.com/openjdk/jdk/blob/fea5f2b1458cdd53f437e59caaffaa6e22fb59a7/src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxPackageBundler.java#L366-L372


      I could confirm that the option accepts parameters and those affect the output .deb:

      This is the .deb I got with this jpackage command: jpackage --type deb --name yt-dlp-compose --input build/libs --main-jar yt-dlp-compose-1.0.0.jar --linux-package-deps ffmpeg

      dpkg -I yt-dlp-compose_1.0_arm64-ffmpeg-dep.deb
       new Debian package, version 2.0.
       size 37176504 bytes: control archive=1127 bytes.
           531 bytes, 11 lines control
           867 bytes, 38 lines * postinst #!/bin/sh
           819 bytes, 31 lines * postrm #!/bin/sh
           631 bytes, 35 lines * preinst #!/bin/sh
           789 bytes, 39 lines * prerm #!/bin/sh
       Package: yt-dlp-compose
       Version: 1.0
       Section: misc
       Maintainer: Unknown <Unknown>
       Priority: optional
       Architecture: arm64
       Provides: yt-dlp-compose
       Description: yt-dlp-compose
       Depends: libasound2t64, libbrotli1, libbsd0, libbz2-1.0, libc6, libfreetype6, libgcc-s1, libgif7, libglib2.0-0t64, libgraphite2-3, libharfbuzz0b, libjpeg-turbo8, liblcms2-2, libmd0, libpcre2-8-0, libpcsclit
      e1, libpng16-16t64, libstdc++6, libx11-6, libxau6, libxcb1, libxdmcp6, libxext6, libxi6, libxrender1, libxtst6, zlib1g , ffmpeg
       Installed-Size: 160957
      While the .deb without dependencies does not have this dependency (jpackage --type deb --name yt-dlp-compose --input build/libs --main-jar yt-dlp-compose-1.0.0.jar):

      dpkg -I yt-dlp-compose_1.0_arm64-without-deps.deb
       new Debian package, version 2.0.
       size 37177420 bytes: control archive=1122 bytes.
           523 bytes, 11 lines control
           867 bytes, 38 lines * postinst #!/bin/sh
           819 bytes, 31 lines * postrm #!/bin/sh
           631 bytes, 35 lines * preinst #!/bin/sh
           789 bytes, 39 lines * prerm #!/bin/sh
       Package: yt-dlp-compose
       Version: 1.0
       Section: misc
       Maintainer: Unknown <Unknown>
       Priority: optional
       Architecture: arm64
       Provides: yt-dlp-compose
       Description: yt-dlp-compose
       Depends: libasound2t64, libbrotli1, libbsd0, libbz2-1.0, libc6, libfreetype6, libgcc-s1, libgif7, libglib2.0-0t64, libgraphite2-3, libharfbuzz0b, libjpeg-turbo8, liblcms2-2, libmd0, libpcre2-8-0, libpcsclite1, libpng16-16t64, libstdc++6, libx11-6, libxau6, libxcb1, libxdmcp6, libxext6, libxi6, libxrender1, libxtst6, zlib1g
       Installed-Size: 161654




            tongwan Andrew Wang
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: