Re: NM: git HEAD breaks (wifi plugin not available), Debian source works

Thanks, Thomas.

I was able to do everything I needed after running ``make install'' as a
local user, up until this change, which broke my ability to run
NetworkManager. I generally prefer to run ``make install'' as a local
user instead of as root, even when the final program must be run as
root, because there's a much lower chance that the make install will
overwrite files on my root filesystem. This case, where a few files
accidentally get modified outside of the prefix, has happened to me
frequently enough that I am wary of running ``make install'' as root
from dev source.

With your fix, users can either ``make install'' as a local user and
then chown the plugin files to root, or ``make install'' as root with
--without-udev-dir. This seems reasonable to me. It may still warrant
documentation though.

On Tue, Aug 26, 2014 at 2:04 PM, Thomas Haller <thaller redhat com> wrote:
On Thu, 2014-08-21 at 19:40 +0200, Thomas Haller wrote:
On Thu, 2014-08-21 at 08:26 -0700, dwk wrote:
reason I didn't want to run ``make install' as root is because the
install actually tries to delete and re-create the following file:

This happens even when a prefix is set. I didn't want to mess up my
local known-good install of NetworkManager, so I ran ``make install -k''
as my local user instead (so the install succeeds, with the exception of
modifying /lib).

So perhaps another fix is needed here, to fix the configure scripts in
case a local prefix is specified; or add a flag to configure to allow
local installs of NetworkManager (which would disable modifying /lib and
maybe disable the check-if-file-owned-by-root check for plugins). I
think the documentation should describe how to run multiple NM versions.

You can overwrite the UDEV dir (which defaults to /lib/udev).

./configure --prefix=/tmp/NM --with-udev-dir=/tmp/NM/lib/udev ...

[for the record]

I pushed
 to master.

now the option --without-udev-dir works as expected.


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