On 2013-12-14 13:12:31, Jeroen Ooms wrote:
> This is perhaps more of a debian question, but hopefully someone can help.
> I am using the 'whereis' command in the configure script for the RAppArmor
> package [1] to detect the location of libapparmor.so to put it in Makevars.
> I tested this and it worked on Ubuntu, Debian and OpenSuse, until recently.
> 
> However, a user has brought to my attention that in Debian (testing)
> Jessie, this no longer works. I tried this on EC2 and I get:
> 
> root@ip-10-137-12-151:/usr/lib# find / -name 'libapparmor.so'
> /usr/lib/x86_64-linux-gnu/libapparmor.so
> 
> Is it correct that the location of libapparmor.so has changed?

Yes - It is caused by multiarch support in newer Debian/Ubuntu
libapparmor packages.

> What would be a better method to use in my configure script to detect
> the location of libapparmor.so?

I'd suggest ldconfig:

$ ldconfig -p | grep libapparmor\.so
        libapparmor.so.1 (libc6,x86-64) => /usr/lib/libapparmor.so.1

Tyler

Attachment: signature.asc
Description: Digital signature

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to