pdeathsig_helper and .debug/pdeathsig_helper.debug placed in /mnt when DESTDIR=/mnt
Trond Endrestøl
Trond.Endrestol at fagskolen.gjovik.no
Wed May 9 16:54:11 UTC 2018
On Wed, 9 May 2018 18:44+0200, Trond Endrestøl wrote:
> On Wed, 9 May 2018 16:50+0300, Konstantin Belousov wrote:
>
> > On Wed, May 09, 2018 at 02:49:34PM +0200, Trond Endrest?l wrote:
> > > I noticed two new entries in / after running make installworld today
> > > using amd64 stable/11 r333390:
> > >
> > > # LANG=en_US.UTF-8 ls -lT /pdeathsig_helper /.debug/pdeathsig_helper.debug
> > > -r--r--r-- 1 root wheel 7528 May 9 12:06:58 2018 /.debug/pdeathsig_helper.debug
> > > -r-xr-xr-x 1 root wheel 8576 May 9 12:06:58 2018 /pdeathsig_helper
> > >
> > > I'm sure these belong in /usr/tests/sys/kern. This must have happened
> > > in r333162 or shortly after.
> > >
> > > See PR 228018, of which I hijacked.
> >
> > Can you try this ?
> >
> > Index: tests/sys/kern/Makefile
> > ===================================================================
> > --- tests/sys/kern/Makefile (revision 333400)
> > +++ tests/sys/kern/Makefile (working copy)
> > @@ -4,6 +4,7 @@
> > .PATH: ${SRCTOP}/sys/kern
> >
> > TESTSDIR= ${TESTSBASE}/sys/kern
> > +BINDIR= ${TESTDIR}
> >
> > ATF_TESTS_C+= kern_copyin
> > ATF_TESTS_C+= kern_descrip_test
>
> I was not so lucky:
>
> ===> tests/sys/geom/class/uzip (install)
> --- realinstall_subdir_tests/sys/kern ---
> --- _proginstall ---
> install -s -o root -g wheel -m 555 pdeathsig_helper /mnt/pdeathsig_helper
> install -d /mnt/.debug/
> install -o root -g wheel -m 444 pdeathsig_helper.debug /mnt/.debug/pdeathsig_helper.debug
> --- kern_copyin.install ---
> (cd /usr/src/tests/sys/kern && DEPENDFILE=.depend.kern_copyin NO_SUBDIR=1 make -f /usr/src/tests/sys/kern/Makefile _RECURSING_PROGS=t PROG=kern_copyin install)
> --- realinstall_subdir_tests/sys/geom ---
> --- _etalonINS ---
> install -o root -g wheel -m 444 /usr/src/tests/sys/geom/class/uzip/etalon/etalon.txt /mnt/usr/tests/sys/geom/class/uzip/etalon/
> --- _SCRIPTSINS_1_test ---
> install -o root -g wheel -m 555 1_test /mnt/usr/tests/sys/geom/class/uzip/1_test
> --- _testsFILESINS_Kyuafile ---
> install -o root -g wheel -m 444 Kyuafile /mnt/usr/tests/sys/geom/class/uzip/Kyuafile
> --- _testsFILESINS ---
> install -o root -g wheel -m 444 /usr/src/tests/sys/geom/class/uzip/conf.sh 1.img.uzip.uue /mnt/usr/tests/sys/geom/class/uzip/
> --- _testsFILESINS ---
> install -o root -g wheel -m 444 /usr/src/tests/sys/geom/class/geom_subr.sh /mnt/usr/tests/sys/geom/class/
> --- realinstall_subdir_tests/sys/kern ---
> --- _proginstall ---
> --- realinstall_subdir_tests/sys/geom ---
> --- _testsFILESINS_Kyuafile ---
> --- realinstall_subdir_tests/sys/kern ---
> install -s -o root -g wheel -m 555 kern_copyin /mnt /usr/tests/sys/kern/kern_copyin
> --- realinstall_subdir_tests/sys/geom ---
> install -o root -g wheel -m 444 Kyuafile
> /mnt/usr/tests/sys/geom/class/Kyuafile
> --- realinstall_subdir_tests/sys/kern ---
> install: target `/usr/tests/sys/kern/kern_copyin' is not a directory
> usage: install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner]
> [-M log] [-D dest] [-h hash] [-T tags]
> [-B suffix] [-l linkflags] [-N dbdir]
> file1 file2
> install [-bCcpSsUv] [-f flags] [-g group] [-m mode] [-o owner]
> [-M log] [-D dest] [-h hash] [-T tags]
> [-B suffix] [-l linkflags] [-N dbdir]
> file1 ... fileN directory
> install -dU [-vU] [-g group] [-m mode] [-N dbdir] [-o owner]
> [-M log] [-D dest] [-h hash] [-T tags]
> directory ...
> *** [_proginstall] Error code 64
>
> make[7]: stopped in /usr/src/tests/sys/kern
> 1 error
If I revert the changes to tests/sys/kern/Makefile, and try
installworld installkernel again, I get:
--- maninstall ---
install -o root -g wheel -m 444 mailstats.8.gz
/mnt/usr/share/man/man8/
--- realinstall_subdir_tests ---
sh: cannot create Kyuafile.tmp: Read-only file system
sh: cannot create Kyuafile.tmp: Read-only file system
*** [Kyuafile] Error code 2
make[6]: stopped in /usr/src/tests/sys/kern
1 error
Both /usr/src and /usr/obj are read-only NFSv3 exports.
I should probably wipe the object tree before proceeding.
--
Trond.
More information about the freebsd-stable
mailing list