driver/xf86-input-vmmouse : cannot create regular file `/lib/udev/rules.d/69-xorg-vmmouse.rules': Permission denied

Dennis Clarke dclarke at blastwave.org
Thu Jan 24 15:40:19 PST 2013



----- Original Message -----
From: Peter Hutterer <peter.hutterer at who-t.net>
Date: Thursday, January 24, 2013 6:24 pm
Subject: Re: driver/xf86-input-vmmouse : cannot create regular file `/lib/udev/rules.d/69-xorg-vmmouse.rules': Permission denied
To: Dennis Clarke <dclarke at blastwave.org>
Cc: xorg at lists.freedesktop.org


> On Thu, Jan 24, 2013 at 01:11:36PM -0500, Dennis Clarke wrote:
> > 
> > > > Do I need to isolate this module, build it as root, and then go 
> back 
> > > to being a 
> > > > regular user or ?? 
> > > 
> > > vmmouse gets the directory to install the udev rules from 
> pkgconfig by
> > > default, or --with-udev-rules-dir at configure time. if you don't 
> need 
> > > the
> > > rules, you can consider the installation as successful though and 
> continue
> > > to the next module.
> > 
> > Not too sure how to deal with that.  I generally just do a pull from 
> git and 
> > then fire off a build. This proceeds neatly until it hits the 
> vmmouse module
> > which stops the process.  I don't see an option anywhere to skip it 
> and
> > I don't know if it is a "need" or a "want".
> > 
> > What I could do is put the username doing the compile into a group called
> > "xorg" and give that group write permissions to a few specific directories.
> > 
> > Is that what you suggest ?  Or am I supposed to do this build as the 
> root user?
> 
> - custom user with the right permissions or root is one option
> - set $CONFFLAGS in the environment to --with-udev-rules-dir. other modules
>   will ignore it, those that don't would likely run into the same permission
>   issue anyway

I am trying to do this compile as anyone would do any other software package
which would generally have an install stage that comes after the compile and 
test phases.  So the safe bet is to set CONFFLAGS with something like 
this : --with-udev-rules-dir=/opt/xorg/udev

Dis that and the compile now proceeds but there will need to be some funky 
install done later to copy those bits in /opt/xorg/udev over to the /etc dir.

Maybe .. not sure. 

Doing a compile as root is just not going to happen.  Not without a full system 
backup first.

oooops .. spoke too soon.  the compile just failed again and quickly too : 


======================================================================
==  Processing module/component:  "driver/xf86-input-synaptics"
==        configuration options:  --with-udev-rules-dir=/opt/xorg/udev 
Cloning into driver/xf86-input-synaptics...
remote: Counting objects: 6253, done.
remote: Compressing objects: 100% (3270/3270), done.
remote: Total 6253 (delta 4327), reused 4343 (delta 2943)
Receiving objects: 100% (6253/6253), 1.32 MiB | 1.05 MiB/s, done.
Resolving deltas: 100% (4327/4327), done.
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I /opt/xorg/share/aclocal 
configure.ac:25: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
autoreconf: configure.ac: tracing
configure.ac:25: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
autoreconf: running: libtoolize --copy
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:25: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
autoreconf: running: /usr/bin/autoconf
configure.ac:25: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
autoreconf: running: /usr/bin/autoheader
configure.ac:25: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:25: warning: AC_INIT: not a literal: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
configure.ac:39: installing `./config.guess'
configure.ac:39: installing `./config.sub'
configure.ac:34: installing `./install-sh'
configure.ac:34: installing `./missing'
src/Makefile.am: installing `./depcomp'
autoreconf: Leaving directory `.'
configure: WARNING: unrecognized options: --with-udev-rules-dir
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc option to accept ISO C99... -std=gnu99
checking whether __clang__ is declared... no
checking whether __INTEL_COMPILER is declared... no
checking whether __SUNPRO_C is declared... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking if gcc -std=gnu99 supports -Werror=unknown-warning-option... no
checking if gcc -std=gnu99 supports -Werror=unused-command-line-argument... no
checking if gcc -std=gnu99 supports -Wall... yes
checking if gcc -std=gnu99 supports -Wpointer-arith... yes
checking if gcc -std=gnu99 supports -Wmissing-declarations... yes
checking if gcc -std=gnu99 supports -Wformat=2... yes
checking if gcc -std=gnu99 supports -Wstrict-prototypes... yes
checking if gcc -std=gnu99 supports -Wmissing-prototypes... yes
checking if gcc -std=gnu99 supports -Wnested-externs... yes
checking if gcc -std=gnu99 supports -Wbad-function-cast... yes
checking if gcc -std=gnu99 supports -Wold-style-definition... yes
checking if gcc -std=gnu99 supports -Wdeclaration-after-statement... yes
checking if gcc -std=gnu99 supports -Wunused... yes
checking if gcc -std=gnu99 supports -Wuninitialized... yes
checking if gcc -std=gnu99 supports -Wshadow... yes
checking if gcc -std=gnu99 supports -Wcast-qual... yes
checking if gcc -std=gnu99 supports -Wmissing-noreturn... yes
checking if gcc -std=gnu99 supports -Wmissing-format-attribute... yes
checking if gcc -std=gnu99 supports -Wredundant-decls... yes
checking if gcc -std=gnu99 supports -Werror=implicit... yes
checking if gcc -std=gnu99 supports -Werror=nonnull... yes
checking if gcc -std=gnu99 supports -Werror=init-self... yes
checking if gcc -std=gnu99 supports -Werror=main... yes
checking if gcc -std=gnu99 supports -Werror=missing-braces... yes
checking if gcc -std=gnu99 supports -Werror=sequence-point... yes
checking if gcc -std=gnu99 supports -Werror=return-type... yes
checking if gcc -std=gnu99 supports -Werror=trigraphs... yes
checking if gcc -std=gnu99 supports -Werror=array-bounds... yes
checking if gcc -std=gnu99 supports -Werror=write-strings... yes
checking if gcc -std=gnu99 supports -Werror=address... yes
checking if gcc -std=gnu99 supports -Werror=int-to-pointer-cast... yes
checking if gcc -std=gnu99 supports -Werror=pointer-to-int-cast... yes
checking if gcc -std=gnu99 supports -pedantic... yes
checking if gcc -std=gnu99 supports -Werror... yes
checking if gcc -std=gnu99 supports -Werror=attributes... yes
checking whether to build unit test cases... auto
checking for rint in -lm... yes
checking if RANDR is defined... yes
checking for XORG... yes
checking which optional backends will be build... ps2comm alpscomm eventcomm
checking for MTDEV... no
configure: error: Package requirements (mtdev) were not met:

No package 'mtdev' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MTDEV_CFLAGS
and MTDEV_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
build.sh: "autogen.sh" failed on driver/xf86-input-synaptics
build.sh: error processing module/component:  "driver/xf86-input-synaptics"
aster $ 

Looks like another dependecy needed. 

When I get to the end of this process I plan to write a detailed article that shows
how you too can build X.  Except with all the dependencies laid out up front 
as well as the secret[1] tricks to make it work.  

Dennis 

[1] stuff someone knows but isn't documented anywhere to make the process 
    easily digestable and no more complex than bootstrapping GCC.


More information about the xorg mailing list