bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool-1.5.18 -- installed files owned by non-root user


From: Peter Breitenlohner
Subject: Re: libtool-1.5.18 -- installed files owned by non-root user
Date: Fri, 1 Jul 2005 10:59:03 +0200 (CEST)

On Fri, 1 Jul 2005, Ralf Wildenhues wrote:

* Peter Breitenlohner wrote on Thu, Jun 30, 2005 at 05:29:40PM CEST:

(3) Finally as root I did "make install". Due to the way this works, some of
the files (those installed under ${prefix}/share/libtool) were still owned
by me instead of root. VERY UNCOOL, please fix.

Acknowledged.  Hrmpf.  I don't like the whole dancing around we have
in place in order to preserve timestamps on the libltdl files. ....

Incidentally, that kind of "dancing around" is in no way unique to libtool.

....  We
should be able to have rely on an $INSTALL program which does this
for us (and also the user might want to override some of the INSTALL*
variables anyway; or need to use his `install' which preserves some
extended attributes like for selinux..).

Wouldn't it be easiest to amend install-sh with this functionality?
At least we can't just chown to root, the install user might not be
root but might still be different from the build user.  :-/

An install-sh option "-p" (as for coreutils install) would certainly help.

Suggestions welcome,

At the moment, I use a shell script (bash) which does something like this:

        pkg=libtool
        prefix=/usr/local
        ../$src/configure --prefix=$prefix <more_options> || exit
        make || exit
        make check || exit
        make install-strip || exit
        [ `id -u` == 0 ] && chown -R root: $prefix/share/$pkg

Peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]