Bug#688415: libnss3: creates links in root directory

2012-09-23 Thread Axel Beckert
Hi Thilo,

Thilo Six wrote:
  -- snip --
  $ l / | grep '.so'
  lrwxrwxrwx   1 root root   36  19:22 15.04.2012  libnss3.so -
  /usr/lib/x86_64-linux-gnu/libnss3.so
  lrwxrwxrwx   1 root root   44  19:22 15.04.2012  libsoftokn3.so -
  /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
 -- snip --
 
  PS. if it helps. I have '/var/lib/dpkg' version controlled. I allready did
  search the commit history.
 -- snip --
 
 # hg grep --ignore-case libnss3.so
[...]
 info/ca-certificates-java.postinst:215:-:   ln -sf $nsspkg/libnss3.so
 $nssjdk/libnss3.so
 info/ca-certificates-java.postinst:215:-:   rm -f $nssjdk/libnss3.so
 info/ca-certificates-java.postinst:215:+:ln -sf $nsspkg/libnss3.so
 $nssjdk/libnss3.so
 info/ca-certificates-java.postinst:215:+:rm -f $nssjdk/libnss3.so

Bingo. From the changelog of ca-certificates-java:

ca-certificates-java (20120524) unstable; urgency=low

  [ Marc Deslauriers ]
  [...]
  * debian/postinst: don't put a symlink in / if jvm doesn't contain nss
configuration. (Closes: #665754, #665749).

So you actually ran into this stuff. I leave open to the
ca-certificates-java maintainers if this not being cleaned up
automatically is considered a bug or not (and it hence would just be a
duplicate of #665754 and #665749) and which severity it would have.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert a...@debian.org, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


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



Bug#688415: libnss3: creates links in root directory

2012-09-22 Thread Thilo Six
Package: libnss3
Version: 2:3.13.6-1
Severity: important

Dear Maintainer,

on 'amd64' systems i have these symlinks in the root directory:

$ l / | grep '.so'
lrwxrwxrwx   1 root root   36  19:22 15.04.2012  libnss3.so -
/usr/lib/x86_64-linux-gnu/libnss3.so
lrwxrwxrwx   1 root root   44  19:22 15.04.2012  libsoftokn3.so -
/usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so

I think these do not belong into the root directory.
Setting serverty to 'important' as i think this is a FHS violation.

Thank you.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libnss3 depends on:
ii  libc6  2.13-35
ii  libnspr4   2:4.9.2-1
ii  libnspr4-0d2:4.9.2-1
ii  libsqlite3-0   3.7.13-1
ii  multiarch-support  2.13-35
ii  zlib1g 1:1.2.7.dfsg-13

libnss3 recommends no packages.

libnss3 suggests no packages.

-- no debconf information


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



Bug#688415: libnss3: creates links in root directory

2012-09-22 Thread Axel Beckert
Control: tag -1 + moreinfo

Hi Thilo,

Thilo Six wrote:
 Package: libnss3
 Version: 2:3.13.6-1
 Severity: important
 
 Dear Maintainer,
 
 on 'amd64' systems i have these symlinks in the root directory:

 $ l / | grep '.so'
 lrwxrwxrwx   1 root root   36  19:22 15.04.2012  libnss3.so -
 /usr/lib/x86_64-linux-gnu/libnss3.so
 lrwxrwxrwx   1 root root   44  19:22 15.04.2012  libsoftokn3.so -
 /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so

I have libnss3 version 2:3.13.6-1 installed on amd64, too, but I do
not have these symlinks.

Their pure existence doesn't mean they're caused by the mentioned
package. So let's try to find out where they come from:

Try dpkg -S /*.so to see if they belong to any package and if so, to
which.

 I think these do not belong into the root directory.

That's true.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert a...@debian.org, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


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



Bug#688415: libnss3: creates links in root directory

2012-09-22 Thread Thilo Six
Hello Axel,

Thanks for your reply.


Excerpt from Axel Beckert:

-- snip --
 $ l / | grep '.so'
 lrwxrwxrwx   1 root root   36  19:22 15.04.2012  libnss3.so -
 /usr/lib/x86_64-linux-gnu/libnss3.so
 lrwxrwxrwx   1 root root   44  19:22 15.04.2012  libsoftokn3.so -
 /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
 
 I have libnss3 version 2:3.13.6-1 installed on amd64, too, but I do
 not have these symlinks.
 
 Their pure existence doesn't mean they're caused by the mentioned
 package. So let's try to find out where they come from:
 
 Try dpkg -S /*.so to see if they belong to any package and if so, to
 which.

# dpkg -S /*.so
dpkg-query: no path found matching pattern /libnss3.so
dpkg-query: no path found matching pattern /libsoftokn3.so

hmm well what does that mean? Where did these come from?


 
 I think these do not belong into the root directory.
 
 That's true.
 
   Regards, Axel

-- 
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6  7C18 89A4 A2A0 C70B 1A8F


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



Bug#688415: libnss3: creates links in root directory

2012-09-22 Thread Axel Beckert
Hi Thilo,

Thilo Six wrote:
  $ l / | grep '.so'
  lrwxrwxrwx   1 root root   36  19:22 15.04.2012  libnss3.so -
  /usr/lib/x86_64-linux-gnu/libnss3.so
  lrwxrwxrwx   1 root root   44  19:22 15.04.2012  libsoftokn3.so -
  /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
  
  I have libnss3 version 2:3.13.6-1 installed on amd64, too, but I do
  not have these symlinks.
[...]
  Try dpkg -S /*.so to see if they belong to any package and if so, to
  which.
 
 # dpkg -S /*.so
 dpkg-query: no path found matching pattern /libnss3.so
 dpkg-query: no path found matching pattern /libsoftokn3.so

 hmm well what does that mean?

That means they're not part of any installed package.

 Where did these come from?

It's still possible that they have been created by e.g. some
post-installation scripts.

Can you check in /var/log/dpkg.log* what packages have been installed
or updated on 15.04.2012 around that time?

Do you have any not-packaged software installed on that system? Was it
installed on that date?

Any other files from that date? Try the following command:

find / -newermt '15-Apr-2012 19:20:00' -a -not -newermt '19-Apr-2012 19:25:00'

It should list at least the two symbolic links in question.

Maybe that gives a hint to where the symbolic links come from.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert a...@debian.org, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


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



Bug#688415: libnss3: creates links in root directory

2012-09-22 Thread Thilo Six
Hi Axel,


Excerpt from Axel Beckert:

-- snip --
 $ l / | grep '.so'
 lrwxrwxrwx   1 root root   36  19:22 15.04.2012  libnss3.so -
 /usr/lib/x86_64-linux-gnu/libnss3.so
 lrwxrwxrwx   1 root root   44  19:22 15.04.2012  libsoftokn3.so -
 /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so

-- snip --
 Where did these come from?
 
 It's still possible that they have been created by e.g. some
 post-installation scripts.
 
 Can you check in /var/log/dpkg.log* what packages have been installed
 or updated on 15.04.2012 around that time?

All. It seems that day i did the squeeze - wheezy dist-upgrade.

 Do you have any not-packaged software installed on that system?

I did had the backports from 'http://mozilla.debian.net' installed in squeeze.

 Was it installed on that date?
 
 Any other files from that date? Try the following command:
 
 find / -newermt '15-Apr-2012 19:20:00' -a -not -newermt '19-Apr-2012 19:25:00'
 
 It should list at least the two symbolic links in question.
 
 Maybe that gives a hint to where the symbolic links come from.
 
   Regards, Axel

PS. if it helps. I have '/var/lib/dpkg' version controlled. I allready did
search the commit history.

from before dist-upgrade:

# hg cat --rev 110 info/libnss3-1d.list
/.
/usr
/usr/lib
/usr/lib/libnss3.so.1d
/usr/lib/nss
/usr/lib/nss/libnssdbm3.chk
/usr/lib/nss/libnssckbi.so
/usr/lib/nss/libsoftokn3.so
/usr/lib/nss/libnssdbm3.so
/usr/lib/nss/libfreebl3.so
/usr/lib/nss/libsoftokn3.chk
/usr/lib/nss/libfreebl3.chk
/usr/lib/libssl3.so.1d
/usr/lib/libsmime3.so.1d
/usr/lib/libnssutil3.so.1d
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libnss3-1d
/usr/share/doc
/usr/share/doc/libnss3-1d
/usr/share/doc/libnss3-1d/copyright
/usr/share/doc/libnss3-1d/changelog.Debian.gz
/usr/lib/libnssutil3.so
/usr/lib/libssl3.so
/usr/lib/libsmime3.so
/usr/lib/libnss3.so


after dist-upgrade:
# hg cat --rev 114 info/libnss3-1d:amd64.list
/.
/usr
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libnss3.so.1d
/usr/lib/x86_64-linux-gnu/nss
/usr/lib/x86_64-linux-gnu/nss/libnssdbm3.chk
/usr/lib/x86_64-linux-gnu/nss/libnssckbi.so
/usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
/usr/lib/x86_64-linux-gnu/nss/libnssdbm3.so
/usr/lib/x86_64-linux-gnu/nss/libfreebl3.so
/usr/lib/x86_64-linux-gnu/nss/libsoftokn3.chk
/usr/lib/x86_64-linux-gnu/nss/libfreebl3.chk
/usr/lib/x86_64-linux-gnu/libssl3.so.1d
/usr/lib/x86_64-linux-gnu/libsmime3.so.1d
/usr/lib/x86_64-linux-gnu/libnssutil3.so.1d
/usr/share
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/libnss3-1d
/usr/share/doc
/usr/share/doc/libnss3-1d
/usr/share/doc/libnss3-1d/copyright
/usr/share/doc/libnss3-1d/changelog.Debian.gz
/usr/lib/x86_64-linux-gnu/libnssutil3.so
/usr/lib/x86_64-linux-gnu/libssl3.so
/usr/lib/x86_64-linux-gnu/libsmime3.so
/usr/lib/x86_64-linux-gnu/libnss3.so


So from that there should not have been a file '/libnss3.so' or
'/libsoftokn3.so' anytime.

Since those symlinks are not used it seems, nor wanted i consider to just delete
them.

-- 
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6  7C18 89A4 A2A0 C70B 1A8F


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



Bug#688415: libnss3: creates links in root directory

2012-09-22 Thread Thilo Six
Hello again



 -- snip --
 $ l / | grep '.so'
 lrwxrwxrwx   1 root root   36  19:22 15.04.2012  libnss3.so -
 /usr/lib/x86_64-linux-gnu/libnss3.so
 lrwxrwxrwx   1 root root   44  19:22 15.04.2012  libsoftokn3.so -
 /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so
-- snip --

 PS. if it helps. I have '/var/lib/dpkg' version controlled. I allready did
 search the commit history.
-- snip --

# hg grep --ignore-case libnss3.so
info/libnss3:amd64.md5sums:290:-:d8ac963debc226b75d3cffc4557c3c22
usr/lib/x86_64-linux-gnu/libnss3.so
info/libnss3:amd64.md5sums:290:+:76f9cd49d7d81287b46914c5a1ce3bee
usr/lib/x86_64-linux-gnu/libnss3.so
info/ca-certificates-java.postinst:215:-:   ln -sf $nsspkg/libnss3.so
$nssjdk/libnss3.so
info/ca-certificates-java.postinst:215:-:   rm -f $nssjdk/libnss3.so
info/ca-certificates-java.postinst:215:+:ln -sf $nsspkg/libnss3.so
$nssjdk/libnss3.so
info/ca-certificates-java.postinst:215:+:rm -f $nssjdk/libnss3.so
info/libnss3:amd64.md5sums:215:-:e61ed0e96d436be47232751382a8221b
usr/lib/x86_64-linux-gnu/libnss3.so
info/libnss3:amd64.md5sums:215:+:d8ac963debc226b75d3cffc4557c3c22
usr/lib/x86_64-linux-gnu/libnss3.so
info/libnss3-1d:amd64.list:209:-:/usr/lib/x86_64-linux-gnu/libnss3.so
info/libnss3-1d:amd64.md5sums:209:-:7535484c60bba37a9bc09ef6ddce91a7
usr/lib/x86_64-linux-gnu/libnss3.so.1d
info/libnss3:amd64.list:209:+:/usr/lib/x86_64-linux-gnu/libnss3.so
info/libnss3:amd64.md5sums:209:+:e61ed0e96d436be47232751382a8221b
usr/lib/x86_64-linux-gnu/libnss3.so
info/libnss3:amd64.symbols:209:+:libnss3.so libnss3 (= 2:3.13.4-2~) |
libnss3-1d #MINVER#
info/libnss3-1d:amd64.md5sums:174:-:6314c18c5895229e3f247361b87a22f3
usr/lib/x86_64-linux-gnu/libnss3.so.1d
info/libnss3-1d:amd64.md5sums:174:+:7535484c60bba37a9bc09ef6ddce91a7
usr/lib/x86_64-linux-gnu/libnss3.so.1d
info/ca-certificates-java.postinst:113:+:   ln -sf $nsspkg/libnss3.so
$nssjdk/libnss3.so
info/ca-certificates-java.postinst:113:+:   rm -f $nssjdk/libnss3.so
info/libnss3-1d:amd64.list:113:+:/usr/lib/x86_64-linux-gnu/libnss3.so.1d
info/libnss3-1d:amd64.list:113:+:/usr/lib/x86_64-linux-gnu/libnss3.so
info/libnss3-1d:amd64.md5sums:113:+:6314c18c5895229e3f247361b87a22f3
usr/lib/x86_64-linux-gnu/libnss3.so.1d
info/libnss3-1d:amd64.symbols:113:+:libnss3.so.1d libnss3-1d #MINVER#
info/libnss3-1d.md5sums:69:-:31a4971c8e3b087787e8cc7e50da73af  
usr/lib/libnss3.so.1d
info/libnss3-1d.md5sums:69:+:36198e7b87c179deadae5ca4eb52dcf0  
usr/lib/libnss3.so.1d
info/libnss3-1d.md5sums:30:-:8033a53b2c0adf4844ea9a3bcc715593  
usr/lib/libnss3.so.1d
info/libnss3-1d.md5sums:30:+:31a4971c8e3b087787e8cc7e50da73af  
usr/lib/libnss3.so.1d
info/libnss3-1d.md5sums:1:-:fcd8ac88cc3cf71362d4ed67c6bd670a  
usr/lib/libnss3.so.1d
info/libnss3-1d.md5sums:1:+:8033a53b2c0adf4844ea9a3bcc715593  
usr/lib/libnss3.so.1d
info/libnss3-1d.list:0:+:/usr/lib/libnss3.so.1d
info/libnss3-1d.list:0:+:/usr/lib/libnss3.so
info/libnss3-1d.md5sums:0:+:fcd8ac88cc3cf71362d4ed67c6bd670a  
usr/lib/libnss3.so.1d
info/libnss3-1d.symbols:0:+:libnss3.so.1d libnss3-1d #MINVER#


so the only package that links libnss3.so seems to be 'ca-certificates-java'.


,[  info/ca-certificates-java.postinst  ]

if which dpkg-query --version /dev/null; then
nsspkg=$(dpkg-query -L libnss3-1d | sed -n 's,\(.*\)/libnss3\.so$,\1,p')
nssjdk=$(sed -n '/nssLibraryDirectory/s/.*= *\(.*\)/\1/p'
/etc/$jvm/security/nss.cfg)
if [ $nsspkg != $nssjdk ]; then
ln -sf $nsspkg/libnss3.so $nssjdk/libnss3.so
fi
fi

`-

dpkg-query -L libnss3-1d | sed -n 's,\(.*\)/libnss3\.so$,\1,p'

yields nothing here on my system. Then this could possibly create a link in 
root.


-- 
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6  7C18 89A4 A2A0 C70B 1A8F


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