libnss-ldap packaged with dangling symlinks

Bug #1388960 reported by Ard van Breemen
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libnss-ldap (Debian)
Fix Released
Unknown
libnss-ldap (Ubuntu)
Fix Released
Medium
Louis Bouchard
Trusty
Confirmed
Medium
Unassigned
Utopic
Won't Fix
Medium
Unassigned

Bug Description

On armhf libnss-ldap is packaged with dangling/incorrect symlinks:

This is on ubuntu 14.04/trusty:

root@ubuntudev:~/poep/q# ls -al /usr/lib/arm-linux-gnueabihf/libnss_ldap* /lib/arm-linux-gnueabihf/*ldap*
lrwxrwxrwx 1 root root 13 Jul 18 2012 /lib/arm-linux-gnueabihf/nss_ldap.so -> nss_ldap.so.1
-rw-r--r-- 1 root root 55640 Jul 18 2012 /lib/arm-linux-gnueabihf/nss_ldap.so.1
lrwxrwxrwx 1 root root 41 Jul 18 2012 /usr/lib/arm-linux-gnueabihf/libnss_ldap.so -> /lib/arm-linux-gnueabihf/libnss_ldap.so.2

This is on debian jessie:
ard@odroid3:~$ ls -al /usr/lib/arm-linux-gnueabihf/libnss_ldap* /lib/arm-linux-gnueabihf/libnss_ldap*
-rw-r--r-- 1 root root 55548 Dec 7 2013 /lib/arm-linux-gnueabihf/libnss_ldap-2.17.so
lrwxrwxrwx 1 root root 19 Dec 7 2013 /lib/arm-linux-gnueabihf/libnss_ldap.so.2 -> libnss_ldap-2.17.so
lrwxrwxrwx 1 root root 41 Dec 7 2013 /usr/lib/arm-linux-gnueabihf/libnss_ldap.so -> /lib/arm-linux-gnueabihf/libnss_ldap.so.2

(same architecture, actually, jessie is the lxc host and ubuntudev is the lxc container)

This bug is kinda critical, since armhf is rolling out more and more, and the package just does not work.

Regards,
Ard van Breemen

Revision history for this message
Ard van Breemen (ard) wrote :

Hi,

This could be a dup of #1022903, as it seems that nss itself is looking for libnss_<plugin>.so.2 instead of libnss_<plugin>.so .

Hmm, yes,
ln -s nss_ldap.so /lib/arm-linux-gnueabihf/libnss_ldap.so.2
fixes the problem.

Revision history for this message
Ard van Breemen (ard) wrote :

The problem is the same as in #387576
libnss-ldap doesn't recognize armhf as a debian glibc system.
There are a lot of kludges in there about glibc. Isn't it easier just to merge debian libnss-ldap?

Revision history for this message
Ard van Breemen (ard) wrote :

The biggest problem with the packages is that the original source contains a configure script.
And that the autoreconf.patch patches the configure script. Making obsolete the fix-glibc-test-for-armel-gnueabi.patch patch.
I patched the autoreconf.patch with attached patch.
Now on to the next bug...

Revision history for this message
Ard van Breemen (ard) wrote :

patch configure patch to recognize armhf as glibc.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "libnss-ldap-armhf.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Louis Bouchard (louis) wrote :

I am currently working at merging the upstream package from debian. I will give a look at your patch and make sure that the merge fixes this situation.

Changed in libnss-ldap (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Louis Bouchard (louis-bouchard)
Revision history for this message
Ard van Breemen (ard) wrote : Re: [Bug 1388960] Re: libnss-ldap packaged with dangling symlinks

Hi,
On Tue, Nov 04, 2014 at 09:41:07AM -0000, Louis Bouchard wrote:
> I am currently working at merging the upstream package from debian. I
> will give a look at your patch and make sure that the merge fixes this
> situation.
If you go upstream (as in debian upstream), that works.
Then you can ignore my patch, since my patch opened up another
segfault somewhere...

If you want me to test stuff on armhf, let me know, since this is
only an ubuntu build server.

Regards,
Ard van Breemen
--
.signature not found

Revision history for this message
Ard van Breemen (ard) wrote :

I force installed the armhf build of libnss-build for vivid on my trusty install, and it basically works, except for the update-rc.d line in the postinst, which contains incompatible syntax.

So:
https://launchpad.net/ubuntu/+archive/primary/+files/libnss-ldap_265-3ubuntu2_armhf.deb
works stable on trusty armhf.

I will try to recompile it on trusty and see if the update-rc.d line will be downgraded to the trusty syntax, and that the remainder also works.

If that works, I suggest releasing it for 14.04 armhf, since the current libnss-ldap for armhf is broken. Even with my patch :-(.

Revision history for this message
Ard van Breemen (ard) wrote :

To make the package work on trusty, you have to change debian/rules:
override_dh_installinit:
        dh_installinit -- start . stop 20 0 1 6 .

should be:

override_dh_installinit:
        dh_installinit -- stop 20 0 1 6 .

as update-rc.d gets confused by the empty start.

Rolf Leggewie (r0lf)
Changed in libnss-ldap (Ubuntu Utopic):
status: New → Won't Fix
Mathew Hodson (mhodson)
Changed in libnss-ldap (Ubuntu Trusty):
importance: Undecided → Medium
Changed in libnss-ldap (Ubuntu Utopic):
importance: Undecided → Medium
Mathew Hodson (mhodson)
tags: added: precise trusty
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libnss-ldap (Ubuntu Trusty):
status: New → Confirmed
Revision history for this message
Mathew Hodson (mhodson) wrote :

Reported in Bug #1022903 that the bug was fixed in Debian in 264-2.4. Vivid has 265-3ubuntu2, so marking this Fix Released.

Changed in libnss-ldap (Ubuntu):
status: Confirmed → Fix Released
Changed in libnss-ldap (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.