RE: how to compile acl patched coreutils under slackwarelinux?

"Russell Packer" <[email protected]> Fri, 22 Oct 2004 15:16:19 +0100
Newsgroups gmane.linux.file-systems.acl.devel
Message-ID <A0CB61816D3A634C91B373CE14106CA0012C29C4@iron.int.arnoldinteractive.com>
> -----Original Message-----
> From: Matthias F. Brandstetter [mailto:[email protected]]
> Sent: 22 October 2004 14:52
> To: Russell Packer
> Cc: [email protected]
> Subject: RE: [Acl-Devel] how to compile acl patched coreutils under
> slackwarelinux?
> 
> On Fr, 22.10.2004, 13:55, Russell Packer sagte:
> > And installed two packages required - acl (version 2.2.23 or better)
and
> > attr (version 2.4.16 or better).
> >
> > The attr package was installed:
> >
> > tar -zxvf attr-2.4.16.src.tar.gz
> > cd attr-2.4.16
> > ./configure
> > make
> > make install
> > make install-lib
> > make install-dev
> 
> done.
> 
> > Then install the acl package:
> >
> > tar -zxvf acl-2.2.3.src.tar.gz
> > cd attr-2.2.3
> > ./configure
> > make
> > make install
> > make install-lib
> > make install-dev
> > ldconfig
> 
> done.
> 
> > Then I did coreutils
> >
> > tar -zxvf coreutils-5.1.2.tar.gz
> > tar -zxvf coreutils-5.1.2-patch.tar.gz
> > patch -p0 -b <
../coreutils-patch/coreutils-5.1.2/coreutils-5.1.2.dif
> > patch -p1 -b < ../coreutils-patch/coreutils-5.1.2/coreutils-acl.diff
> > patch -p1 -b <
> > ../coreutils-patch/coreutils-5.1.2/coreutils-acl+posix.diff
> > patch -p1 -b <
> > ../coreutils-patch/coreutils-5.1.2/coreutils-acl+posix.diff
> > patch -p1 -b <
../coreutils-patch/coreutils-5.1.2/coreutils-xattr.diff
> > patch -p1 -b <
../coreutils-patch/coreutils-5.1.2/coreutils-sysinfo.diff
> > ./configure
> > make
> > make install
> 
> done.
> 
> I did exactly what you said, step by step. But I still get this error
> during ./configure of coreutils:
> ...
> checking sys/acl.h usability... yes
> checking sys/acl.h presence... yes
> checking for sys/acl.h... yes
> checking for acl... no
> ...
> 
> Btw., same goes for Samba 3.0.7: I want to install ACL enabled Samba
> server, ./configure says something like "ACL ... ok, using POSIX ACL",
but
> after make && make install I get this:
> ...
>  --with Options:
>    WITH_SENDFILE
>    WITH_SMBMOUNT
>    WITH_UTMP
>    WITH_WINBIND
> ...
> 
> so, it seems no ACLs here either :(
> (but I configured Samba with ./configure --with-acl-support=yes)
> 
> Any ideas? I am really somewhat lost here :(
> Should I switch my distribution for this server?

Switch distro? Personally I'd say no. I use Slackware for everything and
have found it to be the most stable and compliant distributions
available.

As for coreutils, I just re-ran configure myself to check my output. I
get:

checking sys/acl.h usability... yes
checking sys/acl.h presence... yes
checking for sys/acl.h... yes
checking for acl... no
checking for library containing acl_get_file... -lacl
checking acl/libacl.h usability... yes
checking acl/libacl.h presence... yes
checking for acl/libacl.h... yes
checking for acl_get_file... yes
checking for acl_set_file... yes
checking for acl_free... yes
checking for acl_to_text... yes
checking for acl_from_text... yes
checking for acl_delete_def_file... yes
checking for acl_entries... yes
checking for acl_extended_file... yes

So it appears that I too get the "no" for ACL, and yet I do have ACL
working. Curious.

With Samba I used:

./configure --with-acl-support -with-smbmount

With the relevant output being:

checking whether to support ACLs... checking for getxattr in -lattr...
yes
checking for acl_get_file in -lacl... yes
checking for ACL support... yes
Using posix ACLs


Personally I'd run a little getfacl / setfacl check, before you install
Samba, just to make sure that you can get and set acl bit correctly.
Also run an ls to make sure your output has the "+" at the start. Note
that "ls" default install is to /usr/bin are coreutils default ls
install is to /usr/local/bin. I simple changed my path order to use the
patched ls out of preference. Personally I did not want to overwrite my
existing ls (and other coreutils) in case of problems. Of course the
relevant configure options can be passed to coreutils to change its
installation location as an alternative to the path modification option.




_______________________________________________
acl-devel mailing list
[email protected]
http://acl.bestbits.at/mailman/listinfo/acl-devel