File icedtea-web-1.4.2-mkdir.patch of Package icedtea-web.openSUSE_13.1_Update
From: mvyskocil@suse.com
Subject: mkdir public keystore dir before keytool runs
If ~/.icedtea/security does not exists, keytool fails to run.
---
Makefile.am | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: icedtea-web-1.4.2/Makefile.am
===================================================================
--- icedtea-web-1.4.2.orig/Makefile.am
+++ icedtea-web-1.4.2/Makefile.am
@@ -39,7 +39,8 @@ export PRIVATE_KEYSTORE_PASS=123456789
export EXPORTED_TEST_CERT_PREFIX=icedteatests
export EXPORTED_TEST_CERT_SUFFIX=crt
export TEST_CERT_ALIAS=icedteaweb
-export PUBLIC_KEYSTORE=${HOME}/.icedtea/security/trusted.certs
+export PUBLIC_KEYSTORE_DIR=${HOME}/.icedtea/security
+export PUBLIC_KEYSTORE=$(PUBLIC_KEYSTORE_DIR)/trusted.certs
export PUBLIC_KEYSTORE_PASS=changeit
export SOFTKILLER=softkiller
@@ -642,6 +643,7 @@ stamps/junit-jnlp-dist-signed.stamp:
touch $@
stamps/netx-dist-tests-prepare-reproducers.stamp: stamps/junit-jnlp-dist-dirs stamps/liveconnect-dist.stamp stamps/netx-dist.stamp stamps/plugin.stamp
+ mkdir -p $(PUBLIC_KEYSTORE_DIR) ; \
types=($(ALL_NONCUSTOM_REPRODUCERS)); \
for which in "$${types[@]}" ; do \
. $(abs_top_srcdir)/NEW_LINE_IFS ; \