Le 21/02/2020 à 21:30, Alan Feuerbacher a écrit :
> On Thu, 2020-02-20 at 23:12 -0600, Bruce Dubbs wrote:
>> On 2/20/20 10:56 PM, Alan Feuerbacher wrote:
>>> On Thu, 2020-02-20 at 21:13 -0600, Douglas R. Reno wrote:
>>>> On 2/20/20 8:16 PM, Alan Feuerbacher wrote:
>>>>> I managed to get the configuration settings right enough that
>>>>> jhalfs
>>>>> builds a lot of packages, but it stops with this:
>>>>>
>>> SNIP
>>>
>>>>> I'm probably missing something. Helpful hints?
>>>>>
>>>>> Alan
>>>>>
>>>> I've been consistently getting this problem as well, and I've
>>>> never
>>>> figured out what caused it. Are you using the latest bash from
>>>> LFS?
>>>>
>>>>
>>>> Normally what I do to fix this is:
>>>>
>>>>
>>>> sudo chown -v root:root /mnt/lfs/jhalfs/envars
>>>
>>> Presumably you mean /mnt/build_dir/jhalfs/envars , since build_dir
>>> is
>>> what the jhalfs README recommends instead of lfs.
>>
>> My distro, my rules. I like /mnt/lfs.  The is a setting in jhalfs to 
>> change the build directory.
>>
>>
>>>> And then restart jhalfs. It'll pick up from there and continue as
>>>> normal.
>>>
>>> Here's what it spit back after doing the above and then "make":
>>>
>>> ##################
>>> [alan@localhost jhalfs]$ make
>>> -----------------------------------------------------------------
>>> ------
>>> mk_CHROOT
>>> You are going to CHROOT into /mnt/build_dir lfs
>>> a password is required
>>> [sudo] password for alan:
>>> -----------------------------------------------------------------
>>> ------
>>>   Building target 064-util-linux
>>>   [|/tools/bin/bash: line 1: /mnt/build_dir/jhalfs/test-logs/064-
>>> util-
>>> linux-2.35.1: No such file or directory
>>> make: *** [Makefile:597: 064-util-linux] Error 1
>>> make: *** [Makefile:103: mk_CHROOT] Error 2
>>> ######################
>>>
>>
>> rm -rf /mnt/build_dir/<everything except sources>
>>
>> and start over.  Your sources should all be in
>> /mnt/build_dir/sources.
>>
>> Check the sources with 'md5sum -c md5sums' where the md5sums file is 
>> generated from the xml sources when the book is built and copied to
>> /mnt/build_dir/sources/
>>
> Done. We got up to the same point and had the same error as before:
> 
> #################################
> . . .
> ---------------------------------------------------------------------
> -----------
>  Building target 064-util-linux
>  [+++++++++++++++++++++++++++++                               ] 1 min.
> 28 sec
>  Target 064-util-linux OK
> ---------------------------------------------------------------------
> -----------
> ---------------------------------------------------------------------
> -----------
>  Building target 065-xz
>  [+++++++++++++++++++                                         ] 0 min.
> 18 sec
>  Target 065-xz OK
> ---------------------------------------------------------------------
> -----------
> ---------------------------------------------------------------------
> -----------
>  Building target 066-stripping
>  [-                                                           ] 0 min.
> 0 sec
>  Target 066-stripping OK
> ---------------------------------------------------------------------
> -----------
> make: Leaving directory '/mnt/build_dir/jhalfs'
> [sudo] password for alan: 
> ---------------------------------------------------------------------
> -----------
>  Building target restore-luser-env
> 
>  Target restore-luser-env OK
> ---------------------------------------------------------------------
> -----------
> ---------------------------------------------------------------------
> -----------
>  Building target 067-changingowner
>  [+                                                           ] 0 min.
> 0 sec
>  Target 067-changingowner OK
> ---------------------------------------------------------------------
> -----------
> ---------------------------------------------------------------------
> -----------
>  Building target 069-kernfs
>  [\                                                           ] 0 min.
> 0 sec
>  Target 069-kernfs OK
> ---------------------------------------------------------------------
> -----------
> mkdir -pv /mnt/build_dir/run/systemd/resolve
> mkdir: created directory '/mnt/build_dir/run/systemd'
> mkdir: created directory '/mnt/build_dir/run/systemd/resolve'
> cp -v /etc/resolv.conf /mnt/build_dir/run/systemd/resolve
> '/etc/resolv.conf' -> '/mnt/build_dir/run/systemd/resolve/resolv.conf'
> ---------------------------------------------------------------------
> -----------
> mk_CHROOT
> You are going to CHROOT into /mnt/build_dir lfs
> a password is required
> ---------------------------------------------------------------------
> -----------
>  Building target 072-creatingdirs
>  [|/tools/bin/bash: envars: Permission denied                 ] 0 min.
> 0 sec
> make: *** [Makefile:650: 072-creatingdirs] Error 1
> make[1]: *** [Makefile:103: mk_CHROOT] Error 2
> make[1]: Leaving directory '/mnt/build_dir/jhalfs'
> 
> 
> ERROR:  Error 2 at common/common-functions line 39!
> 
> <jhalfs> exit
> make: *** [Makefile:12: all] Error 2
> #################################
> 
> Info from previous email about this problem:
> 
> #################################
> [alan@localhost jhalfs]$ ll /mnt/build_dir/jhalfs/envars
> -rw-r--r--. 1 lfs root 0 Feb 21 12:53 /mnt/build_dir/jhalfs/envars
> 
> [alan@localhost jhalfs]$ ll -d /mnt/build_dir/jhalfs/
> drwxrwxrwt. 9 alan alan 4096 Feb 21 12:53 /mnt/build_dir/jhalfs/
> #################################
> 
> Since I started over, jhalfs generated a new configuration file:
> 
> #################################
> [alan@localhost jhalfs]$ cat configuration
> # Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
> 
> #
> # BOOK Settings
> #
> # BOOK_LFS is not set
> BOOK_LFS_SYSD=y
> # BOOK_CLFS is not set
> # BOOK_CLFS2 is not set
> # BOOK_CLFS3 is not set
> # BOOK_BLFS is not set
> INITSYS="systemd"
> PROGNAME="lfs"
> RUN_ME="./jhalfs run"
> relSVN=y
> # WORKING_COPY is not set
> # BRANCH is not set
> PLATFORM="GENERIC"
> SPARC64_PROC="none"
> BLFS_TOOL=y
> 
> #
> # blfs-tool dependencies
> #
> DEP_LIBXML=y
> DEP_LIBXSLT=y
> DEP_DBXML=y
> DEP_LYNX=y
> DEP_SUDO=y
> DEP_WGET=y
> DEP_GPM=y
> DEP_SVN=y
> # end of blfs-tool dependencies
> 
> BLFS_SVN=y
> # BLFS_WORKING_COPY is not set
> # BLFS_BRANCH is not set
> BLFS_ROOT="/blfs_root"
> BLFS_XML="blfs-xml"
> LFS_XML="lfs-xml"
> # CUSTOM_TOOLS is not set
> TRACKING_DIR="/var/lib/jhalfs/BLFS"
> # end of BOOK Settings
> 
> #
> # General Settings
> #
> LUSER="lfs"
> LGROUP="lfs"
> LHOME="/home"
> BUILDDIR="/mnt/build_dir"
> GETPKG=y
> SRC_ARCHIVE="/srcsjhalfs"
> RETRYSRCDOWNLOAD=y
> RETRYDOWNLOADCNT=20
> DOWNLOADTIMEOUT=30
> SERVER="http://ftp.osuosl.org";
> RUNMAKE=y
> # CLEAN is not set
> # end of General Settings
> 
> #
> # Build Settings
> #
> CONFIG_TESTS=y
> 
> #
> # Test settings
> #
> TST_1=y
> # TST_2 is not set
> # TST_3 is not set
> NO_BOMB=y
> # BOMB is not set
> # end of Test settings
> 
> TEST=1
> # PKGMNGT is not set
> INSTALL_LOG=y
> # STRIP is not set
> DEL_LA_FILES=y
> # NO_PROGRESS_BAR is not set
> # end of Build Settings
> 
> #
> # System configuration
> #
> HAVE_FSTAB=y
> FSTAB="$SRC_ARCHIVE/fstablfs"
> CONFIG_BUILD_KERNEL=y
> CONFIG="$SRC_ARCHIVE/config-5.5.3"
> # NCURSES5 is not set
> TIMEZONE="GMT"
> LANG="en_US.UTF-8"
> # FULL_LOCALE is not set
> PAGE_LETTER=y
> # PAGE_A4 is not set
> PAGE="letter"
> HOSTNAME="**EDITME**"
> 
> #
> # Network configuration
> #
> INTERFACE="enp0s31f6"
> IP_ADDR="10.0.2.9"
> GATEWAY="10.0.2.2"
> PREFIX="24"
> BROADCAST="10.0.2.255"
> DOMAIN="local"
> DNS1="127.0.0.1"
> DNS2="127.0.1.1"
> # end of Network configuration
> 
> #
> # Console configuration
> #
> FONT="lat0-16"
> KEYMAP="us"
> # LOCAL is not set
> # end of Console configuration
> # end of System configuration
> 
> #
> # Advanced Features
> #
> REPORT=y
> # COMPARE is not set
> # CONFIG_OPTIMIZE is not set
> OPTIMIZE=0
> 
> #
> # Internal Settings (WARNING: for jhalfs developers only)
> #
> SCRIPT_ROOT="jhalfs"
> JHALFSDIR="$BUILDDIR/$SCRIPT_ROOT"
> LOGDIRBASE="logs"
> LOGDIR="$JHALFSDIR/$LOGDIRBASE"
> TESTLOGDIRBASE="test-logs"
> TESTLOGDIR="$JHALFSDIR/$TESTLOGDIRBASE"
> FILELOGDIRBASE="installed-files"
> FILELOGDIR="$JHALFSDIR/$FILELOGDIRBASE"
> ICALOGDIR="$LOGDIR/ICA"
> MKFILE="$JHALFSDIR/Makefile"
> XSL="$PROGNAME.xsl"
> PKG_LST="unpacked"
> # end of Internal Settings (WARNING: for jhalfs developers only)
> # end of Advanced Features
> 
> # REBUILD_MAKEFILE is not set
> #################################
> 
> I'm not clear about something: the configuration file contains these
> lines:
> 
> #################################
> # General Settings
> #
> LUSER="lfs"
> LGROUP="lfs"
> LHOME="/home"
> #################################
> 
> But I can find nothing in the Menu program that corresponds with these.
> Can you explain what this stuff means? I'm wondering especially because
> the error messages above have this:
> 
> #################################
> mk_CHROOT
> You are going to CHROOT into /mnt/build_dir lfs
> a password is required
> ---------------------------------------------------------------------
> -----------
>  Building target 072-creatingdirs
>  [|/tools/bin/bash: envars: Permission denied                 ] 0 min.
> 0 sec
> #################################
> 
> There is an "lfs" user on my Fedora host left over from manually
> building LFS, but I see nothing in the jhalfs documentation about an
> "lfs" user.
> 
> Perhaps a bit more info will be helpful in figuring this out:
> 
> My jhalfs directory structures:
> 
> This is just a general place to store information. The "jhalfs"
> directory listed is from the svn download: 
> "svn co svn://svn.linuxfromscratch.org/ALFS/jhalfs/trunk jhalfs"
> This directory is where I've executed "make":
> [alan@localhost Jhalfs]$ ll /home/alan/Jhalfs/
> total 32
> drwxrwxr-x.  2 alan wheel  4096 Feb 20 16:36 BitsFromsdd
> drwxrwxr-x. 15 alan wheel  4096 Feb 20 19:00 jhalfs
> -rw-rw-r--.  1 alan wheel 23788 Feb  8 10:44 jhalfslog
> 
> After executing "make", the directory /mnt/build_dir is populated in
> the way I expect:
> 
> #################################
> [alan@localhost jhalfs]$ cd /mnt/build_dir/
> [alan@localhost build_dir]$ ll
> total 48
> drwxr-xr-x.  11 alan alan  4096 Feb 21 11:48 blfs_root
> drwxr-xr-x.   3 root root  4096 Feb 21 11:13 boot
> drwxr-xr-x.  24 root root  4880 Feb 21 11:20 dev
> drwxr-xr-x.   2 root root  4096 Feb 21 11:13 home
> drwxrwxrwt.   9 alan alan  4096 Feb 21 12:53 jhalfs
> drwx------.   2 root root 16384 Feb 20 16:16 lost+found
> drwxr-xr-x.   2 root root  4096 Feb 21 11:13 opt
> dr-xr-xr-x. 289 root root     0 Feb 21 11:19 proc
> drwxrwxrwt.   3 root root    60 Feb 21 12:53 run
> drwxrwxrwt.   2 root root  4096 Feb 21 12:51 sources
> dr-xr-xr-x.  13 root root     0 Feb 21 11:19 sys
> drwxr-xr-x.  12 root root  4096 Feb 21 12:51 tools
> drwxr-xr-x.   3 root root  4096 Feb 21 11:48 var
> #################################
> 
> I'm not sure why root ends up as the owner and group for most of the
> directories.
> 
> Alan
> 

I'm not sure what to do. You and Douglas seem to have the same problem but
Bruce and I don't, and I've tried to reproduce it to no avail. I suggested to
Douglas to edit the Makefile in /mnt/build_dir/jhalfs before starting the build:
after the line "mk_SUDO: mk_LUSER", add:
<tab>chown -v root:root $(MOUNT_PT)/jhalfs/envars

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to