package/openjdk-bin: fix install
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 8 Mar 2020 17:37:37 +0000 (18:37 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 8 Mar 2020 19:12:52 +0000 (20:12 +0100)
Create $(HOST_DIR)/bin and $(HOST_DIR)/lib otherwise build can fail on:

cp -dpfr /home/buildroot/autobuild/instance-2/output-1/build/host-openjdk-bin-13.0.2_8/bin/* /home/buildroot/autobuild/instance-2/output-1/per-package/host-openjdk-bin/host/bin/
cp: target '/home/buildroot/autobuild/instance-2/output-1/per-package/host-openjdk-bin/host/bin/' is not a directory
package/pkg-generic.mk:276: recipe for target '/home/buildroot/autobuild/instance-2/output-1/build/host-openjdk-bin-13.0.2_8/.stamp_host_installed' failed
make: *** [/home/buildroot/autobuild/instance-2/output-1/build/host-openjdk-bin-13.0.2_8/.stamp_host_installed] Error 1

Fixes:
 - http://autobuild.buildroot.org/results/28bcec0d28003c2784b6cd27039099c65bac3b96

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/openjdk-bin/openjdk-bin.mk

index e2525a5c3d6f1fe1c6e96aa3ee3fc9962c617be7..e780a797e679cfde369d252bc7a9a48fc51baeb1 100644 (file)
@@ -18,7 +18,9 @@ HOST_OPENJDK_BIN_LICENSE_FILES = legal/java.prefs/LICENSE legal/java.prefs/ASSEM
 # Because unpack200 is a deprecated tool, removing it to fix this
 # issue is safe.
 define HOST_OPENJDK_BIN_INSTALL_CMDS
+       mkdir -p $(HOST_DIR)/bin
        cp -dpfr $(@D)/bin/* $(HOST_DIR)/bin/
+       mkdir -p $(HOST_DIR)/lib
        cp -dpfr $(@D)/lib/* $(HOST_DIR)/lib/
        $(RM) -f $(HOST_DIR)/bin/unpack200
 endef