Permissions problem/interaction with udev on Xenomai current
Permissions problem happening when building with the current git for Xenomai:
for i in vxworks psos rtai uitron vrtx ; do rm -f /home/gpontis/b2/g/output/target/usr/lib/lib$i.* ; if [ $i == "posix" ] ; then rm -f /home/gpontis/b2/g/output/target/usr/lib/posix.wrappers ; fi ; done
if test -d /home/gpontis/b2/g/output/target/etc/udev/rules.d ; then for f in /home/gpontis/b2/g/output/build/xenomai-2.6/ksrc/nucleus/udev/*.rules ; do cp $f /home/gpontis/b2/g/output/target/etc/udev/rules.d/ ; done ; fi;
cp: cannot create regular file `/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtheap.rules': Permission denied
cp: cannot create regular file `/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtpipe.rules': Permission denied
make: *** [/home/gpontis/b2/g/output/build/xenomai-2.6/.stamp_target_installed] Error 1
gpontis@ubuntuVm:~/b2/g$
Quoted 8 lines · George Pontis
Permissions problem happening when building with the current git for Xenomai:
for i in vxworks psos rtai uitron vrtx ; do rm -f
/home/gpontis/b2/g/output/target/usr/lib/lib$i.*; if [ $i == "posix" ] ; then rm -f/home/gpontis/b2/g/output/target/usr/lib/posix.wrappers; fi ; done
if test -d/home/gpontis/b2/g/output/target/etc/udev/rules.d; then for f in/home/gpontis/b2/g/output/build/xenomai-2.6/ksrc/nucleus/udev/*.rules; do cp $f/home/gpontis/b2/g/output/target/etc/udev/rules.d/; done ; fi;
cp: cannot create regular file `/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtheap.rules': Permission denied
cp: cannot create regular file `/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtpipe.rules': Permission denied
make: *** [/home/gpontis/b2/g/output/build/xenomai-2.6/.stamp_target_installed] Error 1
gpontis@ubuntuVm:~/b2/g$
Normally, this copy is run as root. Maybe you are trying to run "make install" on a directory through NFS with root squashing enabled on the server side?
Signature · 1 line
Gilles.
Quoted 30 lines
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: Wednesday, July 31, 2013 2:22 PM
To: George Pontis
Cc: [email protected]
Subject: Re: [Xenomai] Permissions problem/interaction with udev on Xenomai currentQuoted 1 line · George Pontis
Permissions problem happening when building with the current git for
Xenomai:
Quoted 2 lines
for i in vxworks psos rtai uitron vrtx ; do rm -f
/home/gpontis/b2/g/output/target/usr/lib/lib$i.*; if [ $i == "posix" ] ; then rm -f/home/gpontis/b2/g/output/target/usr/lib/posix.wrappers; fi ; doneQuoted 1 line
if test -d
/home/gpontis/b2/g/output/target/etc/udev/rules.d; then for f in
/home/gpontis/b2/g/output/build/xenomai-2.6/ksrc/nucleus/udev/*.rules; do cp $f/home/gpontis/b2/g/output/target/etc/udev/rules.d/; done ; fi;Quoted 1 line
cp: cannot create regular file
`/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtheap.rules':
Permission deniedQuoted 1 line
cp: cannot create regular file
`/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtpipe.rules': Permission denied
Quoted 1 line
make: *** [
/home/gpontis/b2/g/output/build/xenomai-2.6/.stamp_target_installed] Error 1
Quoted 1 line
gpontis@ubuntuVm:~/b2/g$
Quoted 6 lines
Normally, this copy is run as root. Maybe you are trying to run "make install" on a directory through NFS with root squashing enabled on the server side?
--
Gilles.
I could see running it as root if building and installing on the same computer. In my case the build runs on a PC for an embedded target. There are many files that need to be handled specially by the build environment. In my case this is buildroot, which tries to take care of ownership and permissions when it creates a rootfs.tar.
I see that something is testing sudo and the build is interrupted until the users supplies the password. And under some conditions the target directory etc/udev/rules.d is created as being owned by me, other times as being owned by root. When it is owned by me, then the build succeeds. I could make a patch for buildroot to apply to a Xenomai makefile or shell script. But I thought that I should ask before doing this, since we did not experience this problem with xenomai current a couple of months ago.
George
Quoted 42 lines · George Pontis
Quoted 30 lines
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: Wednesday, July 31, 2013 2:22 PM
To: George Pontis
Cc: [email protected]
Subject: Re: [Xenomai] Permissions problem/interaction with udev on Xenomai currentQuoted 1 line · George Pontis
Permissions problem happening when building with the current git for
Xenomai:
Quoted 2 lines
for i in vxworks psos rtai uitron vrtx ; do rm -f
/home/gpontis/b2/g/output/target/usr/lib/lib$i.*; if [ $i == "posix" ] ; then rm -f/home/gpontis/b2/g/output/target/usr/lib/posix.wrappers; fi ; doneQuoted 1 line
if test -d
/home/gpontis/b2/g/output/target/etc/udev/rules.d; then for f in
/home/gpontis/b2/g/output/build/xenomai-2.6/ksrc/nucleus/udev/*.rules; do cp $f/home/gpontis/b2/g/output/target/etc/udev/rules.d/; done ; fi;Quoted 1 line
cp: cannot create regular file
`/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtheap.rules':
Permission deniedQuoted 1 line
cp: cannot create regular file
`/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtpipe.rules': Permission denied
Quoted 1 line
make: *** [
/home/gpontis/b2/g/output/build/xenomai-2.6/.stamp_target_installed] Error 1
Quoted 1 line
gpontis@ubuntuVm:~/b2/g$
Quoted 6 lines
Normally, this copy is run as root. Maybe you are trying to run "make install" on a directory through NFS with root squashing enabled on the server side?
--
Gilles.I could see running it as root if building and installing on the same computer. In my case the build runs on a PC for an embedded target. There are many files that need to be handled specially by the build environment. In my case this is buildroot, which tries to take care of ownership and permissions when it creates a rootfs.tar.
Quoted 6 lines
I see that something is testing sudo and the build is interrupted until the users supplies the password. And under some conditions the target directory etc/udev/rules.d is created as being owned by me, other times as being owned by root. When it is owned by me, then the build succeeds. I could make a patch for buildroot to apply to a Xenomai makefile or shell script. But I thought that I should ask before doing this, since we did not experience this problem with xenomai current a couple of months ago.
in xenomai sources, the copy is run as root, by using the sudo command, so, chances are that buildroot patches xenomai makefile and that is the reason why you have this issue. IOW, this looks like a buildroot issue more than a xenomai issue.
Quoted 5 lines
George
Signature · 1 line
Gilles.
Quoted 86 lines
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: Thursday, August 01, 2013 12:39 PM
To: George Pontis
Cc: [email protected]
Subject: Re: [Xenomai] Permissions problem/interaction with udev on Xenomai currentQuoted 6 lines · George Pontis
Quoted 6 lines
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: Wednesday, July 31, 2013 2:22 PM
To: George Pontis
Cc: [email protected]
Subject: Re: [Xenomai] Permissions problem/interaction with udev onXenomai
Quoted 9 lines
Quoted 9 lines
current
Quoted 1 line · George Pontis
Permissions problem happening when building with the current git for
Xenomai:
Quoted 2 lines
for i in vxworks psos rtai uitron vrtx ; do rm -f
/home/gpontis/b2/g/output/target/usr/lib/lib$i.*; if [ $i == "posix" ] ; thenrm
Quoted 2 lines
Quoted 2 lines
-f
/home/gpontis/b2/g/output/target/usr/lib/posix.wrappers; fi ; doneQuoted 1 line
if test -d
/home/gpontis/b2/g/output/target/etc/udev/rules.d; then for fin
Quoted 1 line
Quoted 1 line
/home/gpontis/b2/g/output/build/xenomai-2.6/ksrc/nucleus/udev/*.rules;do
Quoted 6 lines
Quoted 6 lines
cp $f
/home/gpontis/b2/g/output/target/etc/udev/rules.d/; done ; fi;Quoted 1 line
cp: cannot create regular file
`/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtheap.rules':
Permission deniedQuoted 1 line
cp: cannot create regular file
`/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtpipe.rules':
Permission
Quoted 6 lines
Quoted 6 lines
denied
Quoted 1 line
make: *** [
/home/gpontis/b2/g/output/build/xenomai-2.6/.stamp_target_installed] Error 1
Quoted 1 line
gpontis@ubuntuVm:~/b2/g$
Quoted 8 lines
Quoted 6 lines
Normally, this copy is run as root. Maybe you are trying to run "make install" on a directory through NFS with root squashing enabled on the server side?
--
Gilles.I could see running it as root if building and installing on the same computer.
In my case the
Quoted 1 line
build runs on a PC for an embedded target. There are many files that need to
be handled
Quoted 1 line
specially by the build environment. In my case this is buildroot, which tries to
take care of
Quoted 3 lines
ownership and permissions when it creates a rootfs.tar.
I see that something is testing sudo and the build is interrupted until the
users supplies
Quoted 1 line
the password. And under some conditions the target directory
etc/udev/rules.d is created
Quoted 1 line
as being owned by me, other times as being owned by root. When it is owned
by me, then
Quoted 1 line
the build succeeds. I could make a patch for buildroot to apply to a Xenomai
makefile or
Quoted 1 line
shell script. But I thought that I should ask before doing this, since we did not
experience
Quoted 1 line
this problem with xenomai current a couple of months ago.
in xenomai sources, the copy is run as root, by using the sudo command, so, chances are that buildroot patches xenomai makefile and that is the reason why you have this issue. IOW, this looks like a buildroot issue more than a xenomai issue.
Quoted 5 lines
George
Quoted 2 lines
--
Gilles.
It turned out that buildroot had a patch for this already. I just needed to adjust the offset for xenomai current and actually apply it. Their patch was a one line mod to make install-exec-local not depend on "devices". Sorry for the noise on the list.
Geo.
Quoted 86 lines · George Pontis
Quoted 86 lines
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: Thursday, August 01, 2013 12:39 PM
To: George Pontis
Cc: [email protected]
Subject: Re: [Xenomai] Permissions problem/interaction with udev on Xenomai currentQuoted 6 lines · George Pontis
Quoted 6 lines
-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: Wednesday, July 31, 2013 2:22 PM
To: George Pontis
Cc: [email protected]
Subject: Re: [Xenomai] Permissions problem/interaction with udev onXenomai
Quoted 9 lines
Quoted 9 lines
current
Quoted 1 line · George Pontis
Permissions problem happening when building with the current git for
Xenomai:
Quoted 2 lines
for i in vxworks psos rtai uitron vrtx ; do rm -f
/home/gpontis/b2/g/output/target/usr/lib/lib$i.*; if [ $i == "posix" ] ; thenrm
Quoted 2 lines
Quoted 2 lines
-f
/home/gpontis/b2/g/output/target/usr/lib/posix.wrappers; fi ; doneQuoted 1 line
if test -d
/home/gpontis/b2/g/output/target/etc/udev/rules.d; then for fin
Quoted 1 line
Quoted 1 line
/home/gpontis/b2/g/output/build/xenomai-2.6/ksrc/nucleus/udev/*.rules;do
Quoted 6 lines
Quoted 6 lines
cp $f
/home/gpontis/b2/g/output/target/etc/udev/rules.d/; done ; fi;Quoted 1 line
cp: cannot create regular file
`/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtheap.rules':
Permission deniedQuoted 1 line
cp: cannot create regular file
`/home/gpontis/b2/g/output/target/etc/udev/rules.d/rtpipe.rules':
Permission
Quoted 6 lines
Quoted 6 lines
denied
Quoted 1 line
make: *** [
/home/gpontis/b2/g/output/build/xenomai-2.6/.stamp_target_installed] Error 1
Quoted 1 line
gpontis@ubuntuVm:~/b2/g$
Quoted 8 lines
Quoted 6 lines
Normally, this copy is run as root. Maybe you are trying to run "make install" on a directory through NFS with root squashing enabled on the server side?
--
Gilles.I could see running it as root if building and installing on the same computer.
In my case the
Quoted 1 line
build runs on a PC for an embedded target. There are many files that need to
be handled
Quoted 1 line
specially by the build environment. In my case this is buildroot, which tries to
take care of
Quoted 3 lines
ownership and permissions when it creates a rootfs.tar.
I see that something is testing sudo and the build is interrupted until the
users supplies
Quoted 1 line
the password. And under some conditions the target directory
etc/udev/rules.d is created
Quoted 1 line
as being owned by me, other times as being owned by root. When it is owned
by me, then
Quoted 1 line
the build succeeds. I could make a patch for buildroot to apply to a Xenomai
makefile or
Quoted 1 line
shell script. But I thought that I should ask before doing this, since we did not
experience
Quoted 1 line
this problem with xenomai current a couple of months ago.
in xenomai sources, the copy is run as root, by using the sudo command, so, chances are that buildroot patches xenomai makefile and that is the reason why you have this issue. IOW, this looks like a buildroot issue more than a xenomai issue.
Quoted 5 lines
George
Quoted 6 lines
Quoted 2 lines
--
Gilles.It turned out that buildroot had a patch for this already. I just needed to adjust the offset for xenomai current and actually apply it. Their patch was a one line mod to make install-exec-local not depend on "devices". Sorry for the noise on the list.
Running make install-user instead of "make install" has the same effect as removing the dependency on "devices"..
Signature · 1 line
Gilles.