Re: Help Needed with 6.12 Binutils + Package Users
On 01/10/2011 07:57 PM, Brian Winfrey wrote: I am unable to get passed 6.12 Binutils due to expect -c spawn ls returning the ptys error. if the command is run on host system it succeeds. this indicates that my kernel has support. if run on host as su lfs it succeeds. this indicates that it is not due to permissions. if run upon entering chroot it succeeds. this indicates that /dev is mounted correctly. if run in chroot as su binutils it fails. (ditto if run as 'su another_user'.) I notice that when I 'su another_user' in host the resulting SHLVL is 1; however, in chroot the result is 2. This is my third attempt, thinking I had missed something, so I have scripted everything. I do not think I have missed any steps on this attempt, but I may fall short on Package Users Hint - prerequisite 2 ;-) Any help is appeciated thanks, Brian If you take a close look at the Package Users hint you will see in the first two paragraphs of Section 6 some information about installing 'su' in Chapter 5 of the book. In Chapter 5.17 of the book, Coreutils-8.5, the last paragraph and the last command deal with this. There are a number of solutions. The one I used was to make 'su' setuid root. Therefore, this situation is a permissions one and one that has evolved with LFS leaving the hint a mite outdated in this regard. Dan -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Help Needed with 6.12 Binutils + Package Users
If you take a close look at the Package Users hint you will see in the first two paragraphs of Section 6 some information about installing 'su' in Chapter 5 of the book. In Chapter 5.17 of the book, Coreutils-8.5, the last paragraph and the last command deal with this. There are a number of solutions. The one I used was to make 'su' setuid root. Therefore, this situation is a permissions one and one that has evolved with LFS leaving the hint a mite outdated in this regard. Now that you mention it, I do recall reading that. Thanks, I will now do that to avoid any similar issues as I continue. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Help Needed with 6.12 Binutils + Package Users
I am unable to get passed 6.12 Binutils due to expect -c spawn ls returning the ptys error. if the command is run on host system it succeeds. this indicates that my kernel has support. if run on host as su lfs it succeeds. this indicates that it is not due to permissions. if run upon entering chroot it succeeds. this indicates that /dev is mounted correctly. if run in chroot as su binutils it fails. (ditto if run as 'su another_user'.) I notice that when I 'su another_user' in host the resulting SHLVL is 1; however, in chroot the result is 2. This is my third attempt, thinking I had missed something, so I have scripted everything. I do not think I have missed any steps on this attempt, but I may fall short on Package Users Hint - prerequisite 2 ;-) Any help is appeciated thanks, Brian -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Help Needed with 6.12 Binutils + Package Users
On Mon, Jan 10, 2011 at 7:57 PM, Brian Winfrey bwcod...@gmail.com wrote: I am unable to get passed 6.12 Binutils due to expect -c spawn ls returning the ptys error. This is normal when using the package users hint, due to the fact that the PTY's are incorrectly premissioned in the chroot environment. If you want to run the test suites for anything using DejaGNU in the chroot enviorment, run the test suite as root. -- William Immendorf The ultimate in free computing. Messages in plain text, please, no HTML. GPG key ID: 1697BE98 If it's not signed, it's not from me. -- Every nonfree program has a lord, a master -- and if you use the program, he is your master. Richard Stallman -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Help Needed with 6.12 Binutils + Package Users
On Mon, Jan 10, 2011 at 6:23 PM, William Immendorf will.immend...@gmail.com wrote: On Mon, Jan 10, 2011 at 7:57 PM, Brian Winfrey bwcod...@gmail.com wrote: I am unable to get passed 6.12 Binutils due to expect -c spawn ls returning the ptys error. This is normal when using the package users hint, due to the fact that the PTY's are incorrectly premissioned in the chroot environment. If you want to run the test suites for anything using DejaGNU in the chroot enviorment, run the test suite as root. -- William Immendorf The ultimate in free computing. Messages in plain text, please, no HTML. GPG key ID: 1697BE98 If it's not signed, it's not from me. -- Every nonfree program has a lord, a master -- and if you use the program, he is your master. Richard Stallman -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page I was looking at the ownership and permissions and it does appear odd. in host it is root:root or root:tty and in chroot it is root:root or root:tape, which is probably due to different group assignments between lfs and ubuntu. I read a thread on linux questions that recommended 'chmod a+rw /dev/pts/0'. Does that sound like a reasonable work around? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Help Needed with 6.12 Binutils + Package Users
I read a thread on linux questions that recommended 'chmod a+rw /dev/pts/0'. Does that sound like a reasonable work around? Did not appear to work. I wonder why this is not mentioned in the hint, or did I miss it? Thanks. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page