anyone else seen: mergemaster -iF Cannot 'cd' to /usr/src

From: Julian H. Stacey <jhs_at_berklix.com>
Date: Sat, 18 Jan 2020 15:10:21 +0100
Anyone else seen this: mergemaster -iF Cannot 'cd' to /usr/src

Maybe something trivial ? (I have a cold, may have missed something).

mergemaster -v -i -F

*** The directory specified for the temporary root environment,
    /var/tmp/temproot, exists.  This can be a security risk if untrusted
    users have access to the system.

  Use 'd' to delete the old /var/tmp/temproot and continue
  Use 't' to select a new temporary root directory
  Use 'e' to exit mergemaster

  Default is to use /var/tmp/temproot as is

How should I deal with this? [Use the existing /var/tmp/temproot] d

   *** Deleting the old /var/tmp/temproot

*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot

 *** Press the [Enter] or [Return] key to continue 
1 error

  *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
      the temproot environment

(#) printenv
TERMPATH=/etc/termcap:/usr/share/misc/termcap
NOCLEANDEPENDS=
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin
DESTDIR=/
PWD=/usr/src/usr.sbin/mergemaster
TERM=xterm
PS1=(#) 

(#) chflags -R noschg /var/tmp/temproot
(#) rm -rf /var/tmp/temproot
(#) ls -la /var/tmp 

total 32
drwxrwxrwt   4 root  wheel   512 Jan 18 13:27 .
drwxr-xr-x  33 root  wheel  1024 Jan 18 12:34 ..
drwxr-xr-x  21 root  wheel  1024 Jan 18 13:25 mergemaster
drwxrwxrwt   2 root  wheel  1024 Jan 18 02:16 vi.recover
(#) mergemaster -iF

*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot

 *** Press the [Enter] or [Return] key to continue 
1 error

  *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
      the temproot environment

(#) ls -la /usr/src
total 126992
drwxrwxrwx   24 jhs   staff      1024 Jan 17 00:18 .
drwxr-xr-x   15 root  wheel       512 Dec 18 00:02 ..
-rw-r--r--    1 jhs   staff        85 Jan 17 00:04 .arcconfig
-rw-r--r--    1 jhs   staff       448 Jan 17 00:04 .arclint
-rw-r--r--    1 jhs   staff       405 Jan 17 00:08 .cirrus.yml
-rw-r--r--    1 jhs   staff      2243 Jan 17 00:04 .clang-format
-rw-r--r--    1 jhs   staff        14 Jan 18 12:43 .ctm_status
-rw-r--r--    1 jhs   staff       205 Jan 17 00:04 .gitattributes
-rw-r--r--    1 jhs   staff       580 Jan 17 00:08 .gitignore
-rw-r--r--    1 jhs   staff         7 Jan 18 12:43 .svn_revision
-rw-r--r--    1 jhs   staff      6170 Jan 17 00:14 COPYRIGHT
-rw-r--r--    1 jhs   staff       548 Jan 17 00:04 LOCKS
...

cd /var/tmp/
ls -la
total 24
drwxrwxrwt   3 root  wheel   512 Jan 18 13:45 .
drwxr-xr-x  33 root  wheel  1024 Jan 18 12:34 ..
drwxrwxrwt   2 root  wheel   512 Jan 18 13:42 vi.recover

sh  -x /usr/sbin/mergemaster  -iF
---------

Script started on Sat Jan 18 13:45:29 2020
(#) sh  -x /usr/sbin/mergemaster  -iF
+ PATH=/bin:/usr/bin:/usr/sbin
+ TEMPROOT=/var/tmp/temproot
+ [ -r /etc/mergemaster.rc ]
+ . /etc/mergemaster.rc
+ STRICT=yes
+ AUTO_INSTALL=yes
+ DIFF_FLAG=-c
+ VERBOSE=yes
+ PRESERVE_FILES=yes
+ MM_PRE_COMPARE_SCRIPT=/site/etc/mergemaster_pre_compare
+ IGNORE_FILES='/.cshrc /.profile /etc/X11/xorg.conf /etc/defaults/Makefile /etc/devd/berklix.conf /etc/exports /etc/exports.README /etc/exports.lapr.js.berklix.net /etc/exports.lapr.no.berklix.net /etc/exports.lapr.xx.berklix.net /etc/fstab /etc/fstab.s1 /etc/fstab.s2 /etc/fstab.s3 /etc/fstab.s4 /etc/ftpusers.LN /etc/group /etc/host.conf /etc/hostid /etc/ipsec.conf /etc/libmap32.conf /etc/local /etc/login.conf.LN /etc/lxdvdrip.conf /etc/mail/LN.common.cpp /etc/mail/README.JHS /etc/mail/access /etc/mail/access.db /etc/mail/aliases.db /etc/mail/certs /etc/mail/common.cpp /etc/mail/exposed-users /etc/mail/generics-domains /etc/mail/lapr.js.berklix.net.cf /etc/mail/lapr.js.berklix.net.mc /etc/mail/lapr.js.berklix.net.submit.cf /etc/mail/lapr.js.berklix.net.submit.mc /etc/mail/local-host-names /etc/mail/local-users /etc/mail/masquerade /etc/mail/relay-domains /etc/mail/sendmail.mc /etc/mail/virtusertable /etc/mail/virtusertable.db /etc/make.conf /etc/make.conf.README /etc/master!
 .passwd /etc/mergemaster.rc /etc/motd.template /etc/motd.site /etc/namedb /etc/netgroup /etc/networks.sh /etc/nsswitch.conf.LN /etc/pbx /etc/rc.conf /etc/rc.d/Makefile /etc/rc.d/opensm /etc/rc.firewall.LN /etc/rc.firewall.src /etc/rc.local /etc/rc.shutint /etc/rc.shutmedia /etc/rc.shutusb /etc/resolv.conf /etc/resolv.conf.LN /etc/src.conf /etc/ssh/moduli.LN /etc/ssh/ssh_host_dsa_key /etc/ssh/ssh_host_dsa_key.pub /etc/ssh/ssh_host_ecdsa_key /etc/ssh/ssh_host_ecdsa_key.pub /etc/ssh/ssh_host_ed25519_key /etc/ssh/ssh_host_ed25519_key.pub /etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_rsa_key /etc/ssh/ssh_host_rsa_key.pub /etc/ssh/sshd_config.old /etc/ssl/cert.pem /etc/system.fvwm2rc /etc/system.fvwmrc /etc/uucp /etc/vi.exrc /etc/wpa_supplicant.conf /root/.cshrc /root/.login /root/.profile /var/crash'
+ [ -r /.mergemasterrc ]
+ newopts=' -iF'
+ set -- -iF
+ unset var newopts
+ getopts :ascrvhipCPm:t:du:w:D:A:FU COMMAND_LINE_ARGUMENT
+ AUTO_INSTALL=yes
+ getopts :ascrvhipCPm:t:du:w:D:A:FU COMMAND_LINE_ARGUMENT
+ FREEBSD_ID=yes
+ getopts :ascrvhipCPm:t:du:w:D:A:FU COMMAND_LINE_ARGUMENT
+ [ -n '' ]
+ MTREEDB=//var/db
+ MTREEFILE=//var/db/mergemaster.mtree
+ [ -n yes -a -z '' ]
+ date +%y%m%d-%H%M%S
+ PRESERVE_FILES_DIR=/var/tmp/mergemaster/preserved-files-200118-134739
+ mkdir -p /var/tmp/mergemaster/preserved-files-200118-134739
+ [ -e //etc/fstab ]
+ grep -q nodev //etc/fstab
+ echo ''

+ [ -n '' ]
+ PAGER=less
+ [ -n yes -a ! less '=' less ]
+ DIFF_FLAG=-c
+ SOURCEDIR=/usr/src
+ [ ! -f /usr/src/Makefile.inc1 -a -f /usr/src/../Makefile.inc1 ]
+ [ ! -f /usr/src/Makefile.inc1 ]
+ realpath /usr/src
+ SOURCEDIR=/usr/src
+ MM_MAKE='make  -m /usr/src/share/mk -DNO_FILEMON'
+ /sbin/sysctl -n hw.ncpu
+ MM_MAKE='make  -m /usr/src/share/mk -DNO_FILEMON -j4'
+ [ -n '' -a -s //var/db/mergemaster.mtree ]
+ [ -t 0 ]
+ tput columns
+ w=80
+ SCREEN_WIDTH=80
+ ID_TAG=FreeBSD
+ TEST_TEMP_ROOT=yes
+ [ yes '=' yes ]
+ [ -d /var/tmp/temproot ]
+ unset TEST_TEMP_ROOT
+ [ '' '=' yes ]
+ echo '*** Creating the temporary root environment in /var/tmp/temproot'
*** Creating the temporary root environment in /var/tmp/temproot
+ mkdir -p /var/tmp/temproot
+ echo ' *** /var/tmp/temproot ready for use'
 *** /var/tmp/temproot ready for use
+ [ ! -d /var/tmp/temproot ]
+ echo ' *** Creating and populating directory structure in /var/tmp/temproot'
 *** Creating and populating directory structure in /var/tmp/temproot
+ echo ''

+ press_to_continue
+ local DISCARD
+ echo -n ' *** Press the [Enter] or [Return] key to continue '
 *** Press the [Enter] or [Return] key to continue + read DISCARD

+ cd /usr/src
+ make -m /usr/src/share/mk -DNO_FILEMON -j4 'DESTDIR=/' distrib-dirs
+ make -m /usr/src/share/mk -DNO_FILEMON -j4 'DESTDIR=/var/tmp/temproot' distrib-dirs
+ make -m /usr/src/share/mk -DNO_FILEMON -j4 _obj 'SUBDIR_OVERRIDE=etc'
+ make -m /usr/src/share/mk -DNO_FILEMON -j4 everything 'SUBDIR_OVERRIDE=etc'
1 error
+ echo ''

+ echo $'  *** FATAL ERROR: Cannot \'cd\' to /usr/src and install files to'
  *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
+ echo '      the temproot environment'
      the temproot environment
+ echo ''

+ exit 1

cd /usr/src/share/mk
grep everything *

bsd.obj.mk:# destroy almost everything
dirdeps.mk:#    if "no" sub-makes are used to build everything,
dirdeps.mk:# qualify everything now
meta.stage.mk:# generally we want staging to wait until everything else is done
meta.sys.mk:# it works best if we do everything via sub-makes
meta2deps.sh:       # we can prefix everything with $OBJTOP to
sys.mk:# buildworld -> installworld -> buildworld to rebuild everything.
sys.mk:# Since the build is self-reliant and bootstraps everything it needs,
sys.mk:# We do not want everything out-of-date just because

Ie all commnted out
------------

cat .svn_revision 
356863
cat .ctm_status 
src-cur 14334

My last world made against .svn_revision 356861, 356863 running now

Cheers
--
Julian Stacey, Consultant Systems Engineer, BSD Linux http://berklix.com/jhs/
UK stole 700,000 Brexit votes from Brits in EU + 3 M globaly.  170 states have
votes abroad.  Brits in EU forced to foreign nationality  http://stolenvotes.uk
Still buried by UK government: http://www.berklix.org/brexit/#russian_report
Received on Sat Jan 18 2020 - 13:10:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:22 UTC