On Mon, Nov 28, 2016 at 11:38 PM, Pierre Labastie <[email protected]>
wrote:

> Hi Gordon,
>
> On 28/11/2016 08:15, Gordon Findlay wrote:
>
>> Hi
>>
>> I have finally got around to trying jhalfs seriously, after building LFS
>> manually and with my own scripts at least 10 times.
>>
>> I think I have sorted things out, but one thing bothers me:
>>
>> The first run failed at 021-addinguser. The error was 'addinguser failed
>> Makefile line 197' (or words to that effect - it's gone from scroll-back).
>>
> I tried to reproduce, and was unable to do so. Installed Opensuse Leap
> 42.2 with "server (text)" selection. I did not change anything to the sudo
> configuration, that is the user (pierre) is in the administrative group, so
> he can become root by giving his password. Installed subversion,
> ncurses-devel, gcc, gcc-c++, docbook_4, texinfo (brings in 600 or so
> texlive packages), bison, make, m4, patch. Checked-out jhalfs. Created
> /mnt/lfs and /sources, and changed ownership to pierre (note that for
> testing, I did not bother to create a partition: /mnt/lfs is on the same
> filesystem as /. Then run jhalfs. For me, 021-addinguser passes, but the
> "mk_LUSER" target does not start, because it asks for lfs's pasword, which
> is not set and I guess the sudoers configuration prevents me from becoming
> any user... Setting a password for the lfs user allowed user "pierre" to
> become "lfs" using sudo and to start the build.


Wow, ​​Thanks for all that work Pierre​.



>> I added the user and group for lfs in the usual way, and restarted the
>> make. So far so good: it has built binutils (pass 1) and the tools
>> directory looks as I'd expect; now churning through gcc pass 1. (I should
>> have used a faster machine for experimenting - SBU=6 mins)
>>
>> Any idea why the failure?  Host is SuSE Leap 42.2
>>
>> If anyone is looking to write documentation such as Hint for jhalfs I'd
>> be happy to help. I'd start it myself but I'm not sure that what I have
>> done is the expected way!
>>
> Well, this is sort of challenging: every distribution is different in what
> base packages they install. So it is hard to say something general about
> which package(s) should be added. We could also propose some sudo
> configuration, but it has some chance to be insecure for some systems... We
> could have some "install examples" in the jhalfs source, with reference to
> specific distributions, but it would need some maintenance to stay up to
> date, which is very hard, as soon as the initial writer/programmer has
> vanished and the distros have evolved.
>
> Regards,
> Pierre
>
​

​I suspected it was a lot of effort.

​In the mean time the build is working, whether by my good luck or good
management. Thanks.
​
Slainte
Gordon
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to