Details
-
Bug
-
Resolution: Fixed
-
P3
-
internal
-
linux
Description
On 10/29/2019 12:21 PM, Richard Evans wrote:
> Just upgraded to the latest 14-jpackage+1-64 and my rpm building script is failing, here's the end of the --verbose output:
>
> Running [rpmbuild, --eval=%{_target_cpu}]
> rpmbuild: no spec files given for build
> x86_64
> java.io.IOException: Command [rpmbuild, --eval=%{_target_cpu}] exited with 1 code
> at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:68)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.rpmArch(LinuxRpmBundler.java:226)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.buildRPM(LinuxRpmBundler.java:241)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.buildPackageBundle(LinuxRpmBundler.java:155)
> at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.execute(LinuxPackageBundler.java:154)
> at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:627)
> at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:513)
> at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:98)
> at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:51)
> jdk.jpackage.internal.PackagerException: java.io.IOException: Command [rpmbuild, --eval=%{_target_cpu}] exited with 1 code
> at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.execute(LinuxPackageBundler.java:167)
> at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:627)
> at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:513)
> at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:98)
> at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:51)
> Caused by: java.io.IOException: Command [rpmbuild, --eval=%{_target_cpu}] exited with 1 code
> at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:68)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.rpmArch(LinuxRpmBundler.java:226)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.buildRPM(LinuxRpmBundler.java:241)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.buildPackageBundle(LinuxRpmBundler.java:155)
> at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.execute(LinuxPackageBundler.java:154)
> ... 4 more
>
> Here's my script:
>
> ../jdk14/bin/jpackage --package-type rpm \
> --runtime-image projects/launcher/build/jlink \
> --dest zzz \
> --name "edq" \
> --module edq.launcher/oracle.edq.launcher.Main \
> --file-associations assoc.properties \
> --icon /opt/stuff/edq.png \
> --description "Oracle EDQ Launcher" \
> --vendor Oracle \
> --app-version 0.29 \
> --install-dir /opt \
> --linux-menu-group "Oracle EDQ" \
> --linux-package-name edqlaunch
>
> This is running on a Oracle Linux 6 system.
> Just upgraded to the latest 14-jpackage+1-64 and my rpm building script is failing, here's the end of the --verbose output:
>
> Running [rpmbuild, --eval=%{_target_cpu}]
> rpmbuild: no spec files given for build
> x86_64
> java.io.IOException: Command [rpmbuild, --eval=%{_target_cpu}] exited with 1 code
> at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:68)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.rpmArch(LinuxRpmBundler.java:226)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.buildRPM(LinuxRpmBundler.java:241)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.buildPackageBundle(LinuxRpmBundler.java:155)
> at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.execute(LinuxPackageBundler.java:154)
> at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:627)
> at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:513)
> at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:98)
> at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:51)
> jdk.jpackage.internal.PackagerException: java.io.IOException: Command [rpmbuild, --eval=%{_target_cpu}] exited with 1 code
> at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.execute(LinuxPackageBundler.java:167)
> at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:627)
> at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:513)
> at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:98)
> at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:51)
> Caused by: java.io.IOException: Command [rpmbuild, --eval=%{_target_cpu}] exited with 1 code
> at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:68)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.rpmArch(LinuxRpmBundler.java:226)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.buildRPM(LinuxRpmBundler.java:241)
> at jdk.jpackage/jdk.jpackage.internal.LinuxRpmBundler.buildPackageBundle(LinuxRpmBundler.java:155)
> at jdk.jpackage/jdk.jpackage.internal.LinuxPackageBundler.execute(LinuxPackageBundler.java:154)
> ... 4 more
>
> Here's my script:
>
> ../jdk14/bin/jpackage --package-type rpm \
> --runtime-image projects/launcher/build/jlink \
> --dest zzz \
> --name "edq" \
> --module edq.launcher/oracle.edq.launcher.Main \
> --file-associations assoc.properties \
> --icon /opt/stuff/edq.png \
> --description "Oracle EDQ Launcher" \
> --vendor Oracle \
> --app-version 0.29 \
> --install-dir /opt \
> --linux-menu-group "Oracle EDQ" \
> --linux-package-name edqlaunch
>
> This is running on a Oracle Linux 6 system.
Attachments
Issue Links
- relates to
-
JDK-8230612 Debian packaging ignores version and release in custom control file
- Resolved