On Fri, May 01, 2015 at 01:08:48PM +0200, Pierre Labastie wrote:
> Le 01/05/2015 12:26, Fernando de Oliveira a écrit :
> > Thank you very much for the post.
> > 
> > On 30-04-2015 13:58, Ken Moffat wrote:
> >> On Thu, Apr 30, 2015 at 07:32:32AM -0300, Fernando de Oliveira wrote:
> >>> Re: r15900 and r15901.
> > 
> > 
> >>> CONFIGURE="./configure --prefix=/usr" &&
> >>> INSTALLCOMMAND="make install &&
> >>>                 chmod   -v   755 /usr/lib/lib{hogweed,nettle}.so &&
> >>>                 install -v -m755 -d /usr/share/doc/${PACKAGE}    &&
> >>>                 install -v -m644 nettle.html /usr/share/doc/${PACKAGE}"
> > 
> >> But does that chmod do the same thing ?  A
> >> symlink is normally 777, what we need is to change its target (from
> >> what I recall, the targets get installed as 644).
> > 
> > Yes. And I think you agre that we should every time check if versions
> > could be removed from the instructions.
> > 
> > Simple test of concept:
> > 
> > $ touch test.so.123 && ln -sv test.so.123 test.so
> > “test.so” -> “test.so.123”
> > $ stat -c '%a %A %n' test.so*
> > 777 lrwxrwxrwx test.so
> > 664 -rw-rw-r-- test.so.123
> > $ LANG=C chmod -c 0755 test.so
> > mode of 'test.so' changed from 0664 (rw-rw-r--) to 0755 (rwxr-xr-x)
> > $ stat -c '%a %A %n' test.so*
> > 777 lrwxrwxrwx test.so
> > 755 -rwxr-xr-x test.so.123
> 
> Also, from "man chmod":
> chmod never changes the permissions of symbolic links; the chmod system
> call cannot change their permissions.  This is not a problem since the per‐
> missions of symbolic links are never used.  However, for each symbolic link
> listed on the command line, chmod changes the permissions of the pointed-to
> file.
> 

People read the man pages ? (joke, I've just been reading some,
without any benefit.)  Thanks to you both, sorry for the
noise.

> Pierre, BLFS-inactive at the moment. Hope to be back soon

Best wishes.

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to