Opened 18 years ago

Closed 14 years ago

Last modified 7 years ago

#2174 closed enhancement (fixed)

ACL/Attr

Reported by: Luca Owned by: Wayne Blaszczyk
Priority: normal Milestone: x-future
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

Kdelibs-<version>, Samba and other packages support ACL/Attr for file permission Access Control Lists.

ftp://oss.sgi.com/projects/xfs/cmd_tars/acl_2.2.39-1.tar.gz ftp://oss.sgi.com/projects/xfs/cmd_tars/attr_2.4.32-1.tar.gz

ACL needs Attr to be installed first.

Attr building instructions:

make configure
make
make install install-lib install-dev

Lib64 enabled by default, I disabled it with:

sed -i 's@--enable-lib64=yes@--enable-lib64=no@' Makefile

To turn off debugging asserts and turn on optimizer it is possible to set the following variables before running make configure: OPTIMIZER=-O DEBUG=-DNDEBUG

ACL building instructions:

make configure
make
make install install-lib install-dev

Lib64 enabled by default, I disabled it with:

sed -i 's@--enable-lib64=yes@--enable-lib64=no@' Makefile

To turn off debugging asserts and turn on optimizer it is possible to set the following variables before running make configure: OPTIMIZER=-O DEBUG=-DNDEBUG

By default ACL and Attr creates symlinks from /usr/lib/libacl{a,la} and /usr/lib/libattr{a,la} to /lib and install lib{acl,attr}.{so,so.1,so.1.1.0} in /lib and symlinks lib{acl,attr}.so from /lib to /usr/lib.

Change History (9)

comment:1 by alexander@…, 16 years ago

Implementing this would also require a page about patched coreuils.

comment:2 by alexander@…, 16 years ago

As pointed out by Luca, new coreutils (6.9) no longer require a patch, but still have to be recompiled. This way, a pointer has to be added into the LFS coreutils page to Attr and ACL.

comment:3 by DJ Lucas, 15 years ago

Things have changed considerably...these will be required for Gnome-2.28 (actually for udev because of gudev).

# attr-2.4.43
./configure --libexecdir=/usr/lib \
            --mandir=/usr/share/man &&
make &&
sudo make PKG_USER=root PKG_GROUP=root \
    PKG_DOC_DIR=/usr/share/doc/attr-2.4.43 install &&
sudo make PKG_USER=root PKG_GROUP=root install-lib &&
sudo make PKG_USER=root PKG_GROUP=root install-dev &&
sudo rm /usr/lib/libattr.so &&
sudo ln -sf libattr.so.1.1.0 /usr/lib/libattr.so &&
sudo /sbin/ldconfig
# acl-2.2.47
./configure --libexecdir=/usr/lib \
            --mandir=/usr/share/man &&
make &&
sudo make PKG_USER=root PKG_GROUP=root \
    PKG_DOC_DIR=/usr/share/doc/acl-2.2.47 install &&
sudo make PKG_USER=root PKG_GROUP=root install-lib &&
sudo make PKG_USER=root PKG_GROUP=root install-dev &&
sudo rm /usr/lib/libacl.so &&
sudo ln -sf libacl.so.1.1.0 /usr/lib/libacl.so &&
sudo /sbin/ldconfig

comment:4 by Wayne Blaszczyk, 14 years ago

Owner: changed from blfs-book@… to Wayne Blaszczyk
Status: newassigned

comment:5 by Wayne Blaszczyk, 14 years ago

It seems this package comes with tests but I cannot get any meaningful results from them. i.e. lots of errors. Executed 'make tests root-tests ext-tests'. I got the packages from the following urls: http://mirror.dknss.com/nongnu/attr/attr-2.4.44.src.tar.gz http://mirror.dknss.com/nongnu/acl/acl-2.2.48.src.tar.gz

comment:6 by Wayne Blaszczyk, 14 years ago

Worked it out, the tests require a xfs filesystem. Even then, it still has a few failures.

comment:7 by Wayne Blaszczyk, 14 years ago

Need to rebuild coreutils to reduce the test failures even further. (so that ls can display the acl bit) One of the ongoing failures is due to not finding the sort-getfattr-output script/command. No idea where to find this.

comment:8 by Wayne Blaszczyk, 14 years ago

Resolution: fixed
Status: assignedclosed

comment:9 by bdubbs@…, 7 years ago

Milestone: futurex-future

Milestone renamed

Note: See TracTickets for help on using tickets.