Re: mergemaster failing with read-only /usr/src

2015-05-18 Thread Garrett Cooper
On May 4, 2015, at 7:05, John Baldwin j...@freebsd.org wrote:

 /etc is quite special as it isn't installed during installworld, only for
 distribution.  The tests should probably be part of installworld, so please
 move it.

Fixed in r283056 — pending MFC to stable/10. Thanks for the report!
-NGie


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: mergemaster failing with read-only /usr/src

2015-05-04 Thread Will Andrews
On Sun, May 3, 2015 at 1:11 PM, Garrett Cooper yaneurab...@gmail.com wrote:
 Well, I do build on that machine directly, and /usr/obj is mounted r/w,
 only /usr/src is a read-only mount. Trying the workaround on the machine
 istself does not help, unfortunately: while the make buildenv does
 work without a problem, mergemaster still fails in the same way.

 I was going to move it to etc/tests soon since it wasn’t really testing 
 /etc/rc.d/, but it makes more sense (with the issue above), just to create 
 .../tests/etc, and move things there. I wish etc/ wasn’t such a special 
 butterfly...

I'm not sure which is the better approach.

I guess you could argue that etc/rc.d tests like this are technically
kernel tests (and only incidentally test the relevant rc.d script),
and therefore belong in tests/etc, the same way the kernel tests are
in tests/sys.

--Will.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: mergemaster failing with read-only /usr/src

2015-05-04 Thread John Baldwin
On Sunday, May 03, 2015 12:11:03 PM Garrett Cooper wrote:
 On May 3, 2015, at 8:55, Wolfgang Zenker wolfg...@lyxys.ka.sub.org wrote:
 
  * Jilles Tjoelker jil...@stack.nl [150503 14:53]:
  On Sun, May 03, 2015 at 02:03:49PM +0200, Wolfgang Zenker wrote:
  I'm trying to update this system:
  FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #0: Mon Apr 13 03:48:04 
  CEST 2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL mips
  
  Source for that was probably from about April 11th. I sucessfully built
  world and kernel, ran mergemaster -p and make installworld on rev 282299
  but then mergemaster fails with:
  
  # mergemaster -iFU
  
  *** Creating the temporary root environment in /var/tmp/temproot
  *** /var/tmp/temproot ready for use
  *** Creating and populating directory structure in /var/tmp/temproot
  
  /bin/sh: cannot create routing_test.tmp: Read-only file system
  
   *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
   the temproot environment
  
  Filesystems are mounted like this:
  # mount
  /dev/da0s2a on / (ufs, local, noatime)
  devfs on /dev (devfs, local, multilabel)
  /dev/da0s1 on /boot (msdosfs, local)
  vulcan.lyx:/usr/src11 on /usr/src (nfs, read-only)
  vulcan.lyx:/var/obj/11/mips64 on /usr/obj (nfs)
  
  This used to work before. Any ideas, any further info I could provide?
  
  This broke after a test was added for etc/rc.d/. Without special code,
  this causes these tests to be built and installed as part of
  mergemaster/etcmerge, like other parts of etc.
  
  As a workaround you can do:
   echo make -C etc obj all | make buildenv
  on the build machine after make buildworld. Then mergemaster will work,
  even with a read-only /usr/obj.
  
  Well, I do build on that machine directly, and /usr/obj is mounted r/w,
  only /usr/src is a read-only mount. Trying the workaround on the machine
  istself does not help, unfortunately: while the make buildenv does
  work without a problem, mergemaster still fails in the same way.
 
 I was going to move it to etc/tests soon since it wasn’t really testing 
 /etc/rc.d/, but it makes more sense (with the issue above), just to create 
 .../tests/etc, and move things there. I wish etc/ wasn’t such a special 
 butterfly...

/etc is quite special as it isn't installed during installworld, only for
distribution.  The tests should probably be part of installworld, so please
move it.

-- 
John Baldwin
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

mergemaster failing with read-only /usr/src

2015-05-03 Thread Wolfgang Zenker
Hi,

I'm trying to update this system:
FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #0: Mon Apr 13 03:48:04 CEST 
2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL  mips

Source for that was probably from about April 11th. I sucessfully built
world and kernel, ran mergemaster -p and make installworld on rev 282299
but then mergemaster fails with:

# mergemaster -iFU

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

/bin/sh: cannot create routing_test.tmp: Read-only file system

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

Filesystems are mounted like this:
# mount
/dev/da0s2a on / (ufs, local, noatime)
devfs on /dev (devfs, local, multilabel)
/dev/da0s1 on /boot (msdosfs, local)
vulcan.lyx:/usr/src11 on /usr/src (nfs, read-only)
vulcan.lyx:/var/obj/11/mips64 on /usr/obj (nfs)

This used to work before. Any ideas, any further info I could provide?

Wolfgang
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: mergemaster failing with read-only /usr/src

2015-05-03 Thread Wolfgang Zenker
* Jilles Tjoelker jil...@stack.nl [150503 14:53]:
 On Sun, May 03, 2015 at 02:03:49PM +0200, Wolfgang Zenker wrote:
 I'm trying to update this system:
 FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #0: Mon Apr 13 03:48:04 
 CEST 2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL  mips

 Source for that was probably from about April 11th. I sucessfully built
 world and kernel, ran mergemaster -p and make installworld on rev 282299
 but then mergemaster fails with:

 # mergemaster -iFU

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

 /bin/sh: cannot create routing_test.tmp: Read-only file system

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

 Filesystems are mounted like this:
 # mount
 /dev/da0s2a on / (ufs, local, noatime)
 devfs on /dev (devfs, local, multilabel)
 /dev/da0s1 on /boot (msdosfs, local)
 vulcan.lyx:/usr/src11 on /usr/src (nfs, read-only)
 vulcan.lyx:/var/obj/11/mips64 on /usr/obj (nfs)

 This used to work before. Any ideas, any further info I could provide?

 This broke after a test was added for etc/rc.d/. Without special code,
 this causes these tests to be built and installed as part of
 mergemaster/etcmerge, like other parts of etc.

 As a workaround you can do:
   echo make -C etc obj all | make buildenv
 on the build machine after make buildworld. Then mergemaster will work,
 even with a read-only /usr/obj.

Well, I do build on that machine directly, and /usr/obj is mounted r/w,
only /usr/src is a read-only mount. Trying the workaround on the machine
istself does not help, unfortunately: while the make buildenv does
work without a problem, mergemaster still fails in the same way.

Wolfgang
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: mergemaster failing with read-only /usr/src

2015-05-03 Thread Jilles Tjoelker
On Sun, May 03, 2015 at 02:03:49PM +0200, Wolfgang Zenker wrote:
 I'm trying to update this system:
 FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #0: Mon Apr 13 03:48:04 CEST 
 2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL  mips

 Source for that was probably from about April 11th. I sucessfully built
 world and kernel, ran mergemaster -p and make installworld on rev 282299
 but then mergemaster fails with:

 # mergemaster -iFU

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

 /bin/sh: cannot create routing_test.tmp: Read-only file system

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

 Filesystems are mounted like this:
 # mount
 /dev/da0s2a on / (ufs, local, noatime)
 devfs on /dev (devfs, local, multilabel)
 /dev/da0s1 on /boot (msdosfs, local)
 vulcan.lyx:/usr/src11 on /usr/src (nfs, read-only)
 vulcan.lyx:/var/obj/11/mips64 on /usr/obj (nfs)

 This used to work before. Any ideas, any further info I could provide?

This broke after a test was added for etc/rc.d/. Without special code,
this causes these tests to be built and installed as part of
mergemaster/etcmerge, like other parts of etc.

As a workaround you can do:
  echo make -C etc obj all | make buildenv
on the build machine after make buildworld. Then mergemaster will work,
even with a read-only /usr/obj.

-- 
Jilles Tjoelker
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: mergemaster failing with read-only /usr/src

2015-05-03 Thread Garrett Cooper
On May 3, 2015, at 8:55, Wolfgang Zenker wolfg...@lyxys.ka.sub.org wrote:

 * Jilles Tjoelker jil...@stack.nl [150503 14:53]:
 On Sun, May 03, 2015 at 02:03:49PM +0200, Wolfgang Zenker wrote:
 I'm trying to update this system:
 FreeBSD pomona 11.0-CURRENT FreeBSD 11.0-CURRENT #0: Mon Apr 13 03:48:04 
 CEST 2015 wolfgang@pomona:/usr/obj/usr/src/sys/UBQTERL mips
 
 Source for that was probably from about April 11th. I sucessfully built
 world and kernel, ran mergemaster -p and make installworld on rev 282299
 but then mergemaster fails with:
 
 # mergemaster -iFU
 
 *** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot
 
 /bin/sh: cannot create routing_test.tmp: Read-only file system
 
  *** FATAL ERROR: Cannot 'cd' to /usr/src and install files to
  the temproot environment
 
 Filesystems are mounted like this:
 # mount
 /dev/da0s2a on / (ufs, local, noatime)
 devfs on /dev (devfs, local, multilabel)
 /dev/da0s1 on /boot (msdosfs, local)
 vulcan.lyx:/usr/src11 on /usr/src (nfs, read-only)
 vulcan.lyx:/var/obj/11/mips64 on /usr/obj (nfs)
 
 This used to work before. Any ideas, any further info I could provide?
 
 This broke after a test was added for etc/rc.d/. Without special code,
 this causes these tests to be built and installed as part of
 mergemaster/etcmerge, like other parts of etc.
 
 As a workaround you can do:
  echo make -C etc obj all | make buildenv
 on the build machine after make buildworld. Then mergemaster will work,
 even with a read-only /usr/obj.
 
 Well, I do build on that machine directly, and /usr/obj is mounted r/w,
 only /usr/src is a read-only mount. Trying the workaround on the machine
 istself does not help, unfortunately: while the make buildenv does
 work without a problem, mergemaster still fails in the same way.

I was going to move it to etc/tests soon since it wasn’t really testing 
/etc/rc.d/, but it makes more sense (with the issue above), just to create 
.../tests/etc, and move things there. I wish etc/ wasn’t such a special 
butterfly...


signature.asc
Description: Message signed with OpenPGP using GPGMail