Bug#694888: ca-certificates-java: early triggered jks-keystore may fail and leave the temporary /etc/java-7-openjdk/jvm-$arch.cfg

2013-01-27 Thread Thijs Kinkhorst
Hi Andreas,

 I can now also offer to NMU ca-certificates-java with my patch (and
 intend to do so in a few days without other progress).

I think the maintainer's earlier response in this log indicates that he
doesn't have time and appreciates if someone else could fix it, so I would
say, go ahead with your NMU.

I would bump the 'urgency' in the changelog though.


Cheers,
Thijs


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#694888: ca-certificates-java: early triggered jks-keystore may fail and leave the temporary /etc/java-7-openjdk/jvm-$arch.cfg

2013-01-27 Thread Andreas Beckmann
On 2013-01-27 11:28, Thijs Kinkhorst wrote:
 I think the maintainer's earlier response in this log indicates that he
 doesn't have time and appreciates if someone else could fix it, so I would
 say, go ahead with your NMU.
 
 I would bump the 'urgency' in the changelog though.

OK, uploaded to DELAYED/2 with urgency=medium. Or should I cancel the delay?


Andreas


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#694888: ca-certificates-java: early triggered jks-keystore may fail and leave the temporary /etc/java-7-openjdk/jvm-$arch.cfg

2013-01-26 Thread Andreas Beckmann
On 2013-01-23 13:05, Andreas Beckmann wrote:
 attaching a patch to check for nss.cfg before reading it

I can now also offer to NMU ca-certificates-java with my patch (and
intend to do so in a few days without other progress).

Andreas


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#694888: ca-certificates-java: early triggered jks-keystore may fail and leave the temporary /etc/java-7-openjdk/jvm-$arch.cfg

2013-01-23 Thread Andreas Beckmann
Followup-For: Bug #694888
Control: tag -1 patch

attaching a patch to check for nss.cfg before reading it

Andreas
diff -Nru ca-certificates-java-20121112+nmu1/debian/changelog ca-certificates-java-20121112+nmu2/debian/changelog
--- ca-certificates-java-20121112+nmu1/debian/changelog	2012-11-29 00:59:50.0 +0100
+++ ca-certificates-java-20121112+nmu2/debian/changelog	2013-01-23 12:43:10.0 +0100
@@ -1,3 +1,12 @@
+ca-certificates-java (20121112+nmu2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * postinst, jks-keystore.hook: Do not fail if nss.cfg does not (yet) exist,
+i.e. if openjdk-?-jre-headless is unpacked but not yet configured.
+(Closes: #694888)
+
+ -- Andreas Beckmann deb...@abeckmann.de  Wed, 23 Jan 2013 12:25:57 +0100
+
 ca-certificates-java (20121112+nmu1) unstable; urgency=low
 
   * Non-maintainer upload
diff -Nru ca-certificates-java-20121112+nmu1/debian/jks-keystore.hook.in ca-certificates-java-20121112+nmu2/debian/jks-keystore.hook.in
--- ca-certificates-java-20121112+nmu1/debian/jks-keystore.hook.in	2012-11-13 01:50:31.0 +0100
+++ ca-certificates-java-20121112+nmu2/debian/jks-keystore.hook.in	2013-01-23 12:42:16.0 +0100
@@ -54,7 +54,8 @@
 
 if dpkg-query --version /dev/null; then
 nsspkg=$(dpkg-query -L $(nsslib_name) | sed -n 's,\(.*\)/libnss3\.so$,\1,p'|head -n 1)
-nssjdk=$(sed -n '/nssLibraryDirectory/s/.*= *\(.*\)/\1/p' /etc/${jvm%-$arch}/security/nss.cfg)
+nsscfg=/etc/${jvm%-$arch}/security/nss.cfg
+nssjdk=$(test ! -f $nsscfg || sed -n '/nssLibraryDirectory/s/.*= *\(.*\)/\1/p' $nsscfg)
 if [ -n $nsspkg ]  [ -n $nssjdk ]  [ $nsspkg != $nssjdk ]; then
 ln -sf $nsspkg/libnss3.so $nssjdk/libnss3.so
 fi
diff -Nru ca-certificates-java-20121112+nmu1/debian/postinst.in ca-certificates-java-20121112+nmu2/debian/postinst.in
--- ca-certificates-java-20121112+nmu1/debian/postinst.in	2012-11-13 01:44:54.0 +0100
+++ ca-certificates-java-20121112+nmu2/debian/postinst.in	2013-01-23 12:39:51.0 +0100
@@ -40,7 +40,8 @@
 {
 if which dpkg-query /dev/null; then
 nsspkg=$(dpkg-query -L $(nsslib_name) | sed -n 's,\(.*\)/libnss3\.so$,\1,p'|head -n 1)
-nssjdk=$(sed -n '/nssLibraryDirectory/s/.*= *\(.*\)/\1/p' /etc/${jvm%-$arch}/security/nss.cfg)
+nsscfg=/etc/${jvm%-$arch}/security/nss.cfg
+nssjdk=$(test ! -f $nsscfg || sed -n '/nssLibraryDirectory/s/.*= *\(.*\)/\1/p' $nsscfg)
 if [ -n $nsspkg ]  [ -n $nssjdk ]  [ $nsspkg != $nssjdk ]; then
 ln -sf $nsspkg/libnss3.so $nssjdk/libnss3.so
 fi