10.36. Attr-2.4.47 N32 Libraries

Attr is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities.

10.36.1. Installation of Attr

Apply a sed which prevents man-pages which were installed by the Section 10.6, “Man-pages-4.09” package:

sed -i -e "/SUBDIRS/s|man[25]||g" man/Makefile

Apply a sed to install the documentation with a versioned directory:

sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in

Prepare Attr for compilation:

CC="gcc ${BUILDN32}" \
./configure \
    --prefix=/usr \
    --libdir=/lib32 \
    --libexecdir=/usr/lib32

Compile the package:

make

The tests need to run with a filesystem which supports extended attributes. Test the results:

make -j1 tests root-tests

Install the package:

make install install-dev install-lib

Recreate the symlink in /usr/lib32 and remove the shared link from /lib32:

ln -sfv ../../lib32/$(readlink /lib32/libattr.so) /usr/lib32/libattr.so
rm -v /lib32/libattr.so

Set the proper permissions on the shared library:

chmod 755 -v /lib32/libattr.so.1.1.0

Details on this package are located in Section 10.37.2, “Contents of Attr.”