Re: svn commit: r325119 - head/share/examples

2017-10-29 Thread Cy Schubert
In message <201710300430.v9u4uylp050...@repo.freebsd.org>, Eitan Adler 
writes:
> Author: eadler
> Date: Mon Oct 30 04:30:34 2017
> New Revision: 325119
> URL: https://svnweb.freebsd.org/changeset/base/325119
> 
> Log:
>   Unbreak install
>   
>   Reported by:cy
> 
> Modified:
>   head/share/examples/Makefile
> 
> Modified: head/share/examples/Makefile
> =
> =
> --- head/share/examples/Makefile  Mon Oct 30 03:41:04 2017(r32511
> 8)
> +++ head/share/examples/Makefile  Mon Oct 30 04:30:34 2017(r32511
> 9)
> @@ -136,7 +136,6 @@ XFILES=   BSD_daemon/FreeBSD.pfa \
>   ppp/ppp.secret.sample \
>   ppp/ppp.secret.span-isp \
>   ppp/ppp.secret.span-isp.working \
> - printing/README \
>   printing/diablo-if-net \
>   printing/hpdf \
>   printing/hpif \
> 

;)


-- 
Cheers,
Cy Schubert 
FreeBSD UNIX:     Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325119 - head/share/examples

2017-10-29 Thread Eitan Adler
Author: eadler
Date: Mon Oct 30 04:30:34 2017
New Revision: 325119
URL: https://svnweb.freebsd.org/changeset/base/325119

Log:
  Unbreak install
  
  Reported by:  cy

Modified:
  head/share/examples/Makefile

Modified: head/share/examples/Makefile
==
--- head/share/examples/MakefileMon Oct 30 03:41:04 2017
(r325118)
+++ head/share/examples/MakefileMon Oct 30 04:30:34 2017
(r325119)
@@ -136,7 +136,6 @@ XFILES= BSD_daemon/FreeBSD.pfa \
ppp/ppp.secret.sample \
ppp/ppp.secret.span-isp \
ppp/ppp.secret.span-isp.working \
-   printing/README \
printing/diablo-if-net \
printing/hpdf \
printing/hpif \
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325118 - in head/sys: contrib/ncsw/Peripherals/BM contrib/ncsw/Peripherals/FM contrib/ncsw/Peripherals/FM/HC contrib/ncsw/Peripherals/FM/MAC contrib/ncsw/Peripherals/FM/MACSEC contrib/...

2017-10-29 Thread Justin Hibbits
Author: jhibbits
Date: Mon Oct 30 03:41:04 2017
New Revision: 325118
URL: https://svnweb.freebsd.org/changeset/base/325118

Log:
  Update DPAA SDK to SDK 2.0
  
  This adds some support for ARM as well as 64-bit.  64-bit on PowerPC is
  currently not working, and ARM support has not been completed or tested on the
  FreeBSD side.
  
  As this was imported from a Linux tree, it includes some Linux-isms
  (ioread/iowrite), so compile with the LinuxKPI for now.  This may change in 
the
  future.

Added:
  head/sys/contrib/ncsw/Peripherals/FM/MAC/fman_crc32.c   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/MAC/fman_crc32.h   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/MAC/fman_dtsec.c   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/MAC/fman_dtsec_mii_acc.c   (contents, 
props changed)
  head/sys/contrib/ncsw/Peripherals/FM/MAC/fman_memac.c   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/MAC/fman_memac_mii_acc.c   (contents, 
props changed)
  head/sys/contrib/ncsw/Peripherals/FM/MAC/fman_tgec.c   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/MAC/memac.c   (contents, props changed)
  head/sys/contrib/ncsw/Peripherals/FM/MAC/memac.h   (contents, props changed)
  head/sys/contrib/ncsw/Peripherals/FM/MAC/memac_mii_acc.c   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/MAC/memac_mii_acc.h   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/MACSEC/
  head/sys/contrib/ncsw/Peripherals/FM/MACSEC/fm_macsec.c   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/MACSEC/fm_macsec.h   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/MACSEC/fm_macsec_guest.c   (contents, 
props changed)
  head/sys/contrib/ncsw/Peripherals/FM/MACSEC/fm_macsec_master.c   (contents, 
props changed)
  head/sys/contrib/ncsw/Peripherals/FM/MACSEC/fm_macsec_master.h   (contents, 
props changed)
  head/sys/contrib/ncsw/Peripherals/FM/MACSEC/fm_macsec_secy.c   (contents, 
props changed)
  head/sys/contrib/ncsw/Peripherals/FM/MACSEC/fm_macsec_secy.h   (contents, 
props changed)
  head/sys/contrib/ncsw/Peripherals/FM/Pcd/crc64.h   (contents, props changed)
  head/sys/contrib/ncsw/Peripherals/FM/Pcd/fm_kg.h   (contents, props changed)
  head/sys/contrib/ncsw/Peripherals/FM/Pcd/fm_plcr.h   (contents, props changed)
  head/sys/contrib/ncsw/Peripherals/FM/Pcd/fm_prs.h   (contents, props changed)
  head/sys/contrib/ncsw/Peripherals/FM/Pcd/fm_replic.c   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/Pcd/fm_replic.h   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/Pcd/fman_kg.c   (contents, props changed)
  head/sys/contrib/ncsw/Peripherals/FM/Pcd/fman_prs.c   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/Port/fm_port_dsar.h   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/Port/fman_port.c   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/Rtc/fman_rtc.c   (contents, props 
changed)
  head/sys/contrib/ncsw/Peripherals/FM/SP/
  head/sys/contrib/ncsw/Peripherals/FM/SP/fm_sp.c   (contents, props changed)
  head/sys/contrib/ncsw/Peripherals/FM/SP/fm_sp.h   (contents, props changed)
  head/sys/contrib/ncsw/Peripherals/FM/SP/fman_sp.c   (contents, props changed)
  head/sys/contrib/ncsw/Peripherals/FM/fman_ncsw.c   (contents, props changed)
  head/sys/contrib/ncsw/Peripherals/FM/inc/fm_sp_common.h   (contents, props 
changed)
  head/sys/contrib/ncsw/inc/Peripherals/fm_macsec_ext.h   (contents, props 
changed)
  head/sys/contrib/ncsw/inc/Peripherals/fm_vsp_ext.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/Peripherals/mii_acc_ext.h   (contents, props 
changed)
  head/sys/contrib/ncsw/inc/cores/arm_ext.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/flib/
  head/sys/contrib/ncsw/inc/flib/common/
  head/sys/contrib/ncsw/inc/flib/common/arch/
  head/sys/contrib/ncsw/inc/flib/common/arch/ppc_access.h   (contents, props 
changed)
  head/sys/contrib/ncsw/inc/flib/common/general.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/flib/fman_common.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/flib/fsl_enet.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/flib/fsl_fman.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/flib/fsl_fman_dtsec.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/flib/fsl_fman_dtsec_mii_acc.h   (contents, props 
changed)
  head/sys/contrib/ncsw/inc/flib/fsl_fman_kg.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/flib/fsl_fman_memac.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/flib/fsl_fman_memac_mii_acc.h   (contents, props 
changed)
  head/sys/contrib/ncsw/inc/flib/fsl_fman_port.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/flib/fsl_fman_prs.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/flib/fsl_fman_rtc.h   (contents, props changed)
  head/sys/contrib/ncsw/inc/flib/fsl_fman_sp.h   

svn commit: r325117 - head/sys/cam/ata

2017-10-29 Thread Warner Losh
Author: imp
Date: Mon Oct 30 03:25:22 2017
New Revision: 325117
URL: https://svnweb.freebsd.org/changeset/base/325117

Log:
  Send IDLE IMMEDIATE for warm boot.
  
  We must send either an IDLE IMMEDIATE or a STANDBY IMMEDIATE to drives
  on warm boot so their SMART and other volatile data is
  persisted. However, for a warm boot we don't want to send STANDBY
  IMMEDIATE to some spinning drives because they will spin down. If
  there's a lot of these drives on the system, that can cause a
  thundering herd problem at startup time (that in extreme cases causes
  timeout in device discovery).
  
  Sponsored by: Netflix
  Differential Revision: https://reviews.freebsd.org/D12811

Modified:
  head/sys/cam/ata/ata_da.c

Modified: head/sys/cam/ata/ata_da.c
==
--- head/sys/cam/ata/ata_da.c   Mon Oct 30 03:12:38 2017(r325116)
+++ head/sys/cam/ata/ata_da.c   Mon Oct 30 03:25:22 2017(r325117)
@@ -3534,17 +3534,29 @@ adaspindown(uint8_t cmd, int flags)
 static void
 adashutdown(void *arg, int howto)
 {
+   int how;
 
adaflush();
 
/*
-* STANDBY IMMEDIATE flushes any volatile data to the drive so
-* do this always to ensure we flush a cosnsistent state to
-* the drive. adaspindown will ensure that we don't send this
-* to a drive that doesn't support it.
+* STANDBY IMMEDIATE saves any volatile data to the drive. It also spins
+* down hard drives. IDLE IMMEDIATE also saves the volatile data without
+* a spindown. We send the former when we expect to lose power soon. For
+* a warm boot, we send the latter to avoid a thundering herd of spinups
+* just after the kernel loads while probing. We have to do something to
+* flush the data because the BIOS in many systems resets the HBA
+* causing a COMINIT/COMRESET negotiation, which some drives interpret
+* as license to toss the volatile data, and others count as unclean
+* shutdown when in the Active PM state in SMART attributes.
+*
+* adaspindown will ensure that we don't send this to a drive that
+* doesn't support it.
 */
-   if (ada_spindown_shutdown != 0)
-   adaspindown(ATA_STANDBY_IMMEDIATE, 0);
+   if (ada_spindown_shutdown != 0) {
+   how = (howto & (RB_HALT | RB_POWEROFF | RB_POWERCYCLE)) ?
+   ATA_STANDBY_IMMEDIATE : ATA_IDLE_IMMEDIATE;
+   adaspindown(how, 0);
+   }
 }
 
 static void
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325116 - head

2017-10-29 Thread Warner Losh
Author: imp
Date: Mon Oct 30 03:12:38 2017
New Revision: 325116
URL: https://svnweb.freebsd.org/changeset/base/325116

Log:
  Return proper status from buildenv.
  
  make buildenv BUILDENV_SHELL= more useful. Remove '||
  true' from the command line so that errors are properly
  returned. There appears to be no reason for it, and it dates back to
  the original commit by ru@.
  
  Sponsored by: Netflix

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==
--- head/Makefile.inc1  Mon Oct 30 03:12:34 2017(r325115)
+++ head/Makefile.inc1  Mon Oct 30 03:12:38 2017(r325116)
@@ -991,8 +991,7 @@ buildenv: .PHONY
 .if ${BUILDENV_SHELL:M*zsh*}
@echo For ZSH you must run: export CPUTYPE=${TARGET_CPUTYPE}
 .endif
-   @cd ${BUILDENV_DIR} && env ${WMAKEENV} BUILDENV=1 ${BUILDENV_SHELL} \
-   || true
+   @cd ${BUILDENV_DIR} && env ${WMAKEENV} BUILDENV=1 ${BUILDENV_SHELL}
 
 TOOLCHAIN_TGTS=${WMAKE_TGTS:Neverything:Nbuild${libcompat}}
 toolchain: ${TOOLCHAIN_TGTS} .PHONY
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325115 - head/tools/boot

2017-10-29 Thread Warner Losh
Author: imp
Date: Mon Oct 30 03:12:34 2017
New Revision: 325115
URL: https://svnweb.freebsd.org/changeset/base/325115

Log:
  Fix parallel build issues and add MK_ZFS=no case
  
  To ensure that I don't break the MK_ZFS=no case (currently working),
  add that to the build, at least for i386 and amd64. Also, out of an
  abundance of caution, clean single threaded, and then build in a
  separate make. Otherwise, I hit a race where we build before objdir
  has been created, which breaks at the moment.
  
  Sponsored by: Netflix

Modified:
  head/tools/boot/universe.sh

Modified: head/tools/boot/universe.sh
==
--- head/tools/boot/universe.sh Mon Oct 30 03:12:28 2017(r325114)
+++ head/tools/boot/universe.sh Mon Oct 30 03:12:34 2017(r325115)
@@ -33,9 +33,33 @@ for i in \
; do
 ta=${i##*/}
 echo -n "Building $ta..."
-( ( make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make -j 20 clean 
cleandepend cleandir obj depend all" \
-> _.boot.${ta}.log 2>&1 ) && echo Success ) || echo Fail
+if ! make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make clean cleandepend 
cleandir obj depend"  \
+> _.boot.${ta}.log 2>&1; then
+   echo "Fail (cleanup)"
+   continue
+fi
+if ! make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make -j 20 all"  \
+>> _.boot.${ta}.log 2>&1; then
+   echo "Fail (build)"
+   continue
+fi
+echo "Success"
 done
-
-
-
+for i in \
+   amd64/amd64 \
+   i386/i386 \
+   ; do
+ta=${i##*/}
+echo -n "Building $ta MK_ZFS=no..."
+if ! make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make clean cleandepend 
cleandir obj depend"  \
+> _.boot.${ta}.noZFS.log 2>&1; then
+   echo "Fail (cleanup)"
+   continue
+fi
+if ! make buildenv TARGET_ARCH=$ta BUILDENV_SHELL="make MK_ZFS=no -j 20 
all"  \
+>> _.boot.${ta}.noZFS.log 2>&1; then
+   echo "Fail (build)"
+   continue
+fi
+echo "Success"
+done
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325114 - in head/sys/boot: mips/beri/boot2 mips/beri/loader mips/uboot ofw/libofw powerpc/boot1.chrp powerpc/kboot powerpc/ofw powerpc/ps3 powerpc/uboot sparc64/boot1 sparc64/loader

2017-10-29 Thread Warner Losh
Author: imp
Date: Mon Oct 30 03:12:28 2017
New Revision: 325114
URL: https://svnweb.freebsd.org/changeset/base/325114

Log:
  Use defs.mk defins in most MD code
  
  Use defines from defs.mk in most MD code (the biggest exception is
  x86, which will be its own commit due to its size). Prefer including
  bsd.init.mk over the variations (../Makefile.inc and src.opts.mk being
  the two biggest ones).
  
  Sponsored by: Netflix

Modified:
  head/sys/boot/mips/beri/boot2/Makefile
  head/sys/boot/mips/beri/loader/Makefile
  head/sys/boot/mips/uboot/Makefile
  head/sys/boot/ofw/libofw/Makefile
  head/sys/boot/powerpc/boot1.chrp/Makefile
  head/sys/boot/powerpc/kboot/Makefile
  head/sys/boot/powerpc/ofw/Makefile
  head/sys/boot/powerpc/ps3/Makefile
  head/sys/boot/powerpc/uboot/Makefile
  head/sys/boot/sparc64/boot1/Makefile
  head/sys/boot/sparc64/loader/Makefile

Modified: head/sys/boot/mips/beri/boot2/Makefile
==
--- head/sys/boot/mips/beri/boot2/Makefile  Mon Oct 30 02:31:08 2017
(r325113)
+++ head/sys/boot/mips/beri/boot2/Makefile  Mon Oct 30 03:12:28 2017
(r325114)
@@ -29,6 +29,8 @@
 #
 # $FreeBSD$
 
+.include 
+
 INSTALLFLAGS=  -b
 
 LOADERS=   flashboot jtagboot
@@ -47,8 +49,9 @@ AFLAGS=   -G0
 
 CFLAGS=-ffreestanding  \
-I${.CURDIR}\
-   -I${.CURDIR}/../../../common\
-   -I${.CURDIR}/../../../..\
+   -I${SASRC}  \
+   -I${LDRSRC} \
+   -I${SYSDIR} \
-D_KERNEL   \
-Wall   \
-G0 \
@@ -62,8 +65,8 @@ LDFLAGS=  -nostdlib   \
-G0 \
-L${.CURDIR}
 
-.PATH: ${.CURDIR}/../common
-CFLAGS+=   -I${.CURDIR}/../common
+.PATH: ${BOOTSRC}/mips/beri/common
+CFLAGS+=   -I${BOOTSRC}/mips/beri/common
 
 flashboot.elf: relocate.o start.o boot2.o altera_jtag_uart.o cfi.o sdcard.o
${CC} ${LDFLAGS} -T ${.CURDIR}/flashboot.ldscript -o ${.TARGET} \

Modified: head/sys/boot/mips/beri/loader/Makefile
==
--- head/sys/boot/mips/beri/loader/Makefile Mon Oct 30 02:31:08 2017
(r325113)
+++ head/sys/boot/mips/beri/loader/Makefile Mon Oct 30 03:12:28 2017
(r325114)
@@ -29,7 +29,8 @@
 #
 # $FreeBSD$
 
-.include 
+.include 
+
 MK_SSP=no
 MAN=
 
@@ -67,11 +68,11 @@ LOADER_GZIP_SUPPORT?= yes
 LOADER_BZIP2_SUPPORT?= yes
 
 # Always add MI sources
-.include   "../../../loader.mk"
+.include   "${BOOTSRC}/loader.mk"
 
 # BERI files common to boot2 and loader
-.PATH: ${.CURDIR}/../common
-CFLAGS+=   -I${.CURDIR}/../common
+.PATH: ${BOOTSRC}/mips/beri/common
+CFLAGS+=   -I${BOOTSRC}/mips/beri/common
 
 # Loader-specific MD headers
 CFLAGS+=   -I${.CURDIR}
@@ -98,8 +99,8 @@ loader.help: help.common help.mips
cat ${.ALLSRC} | \
awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
 
-.PATH: ${.CURDIR}/../../../forth
-.include   "${.CURDIR}/../../../forth/Makefile.inc"
+.PATH: ${BOOTSRC}/forth
+.include   "${BOOTSRC}/forth/Makefile.inc"
 
 FILES+= loader.rc menu.rc
 
@@ -108,8 +109,8 @@ FILES+= loader.rc menu.rc
 CFLAGS+= -ffunction-sections -fdata-sections
 CFLAGS+= -Wl,--gc-sections
 # Link USB BOOT library
-LDADD+= ${.OBJDIR}/../../../usb/libusbboot.a
-CFLAGS+= -I${.CURDIR}/../../../usb
+LDADD+= ${BOOTOBJ}/usb/libusbboot.a
+CFLAGS+= -I${BOOTSRC}/usb
 # Define USB SUPPORT
 CFLAGS+= -DLOADER_USB_SUPPORT
 .endif

Modified: head/sys/boot/mips/uboot/Makefile
==
--- head/sys/boot/mips/uboot/Makefile   Mon Oct 30 02:31:08 2017
(r325113)
+++ head/sys/boot/mips/uboot/Makefile   Mon Oct 30 03:12:28 2017
(r325114)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-.include 
+.include 
 
 FILES= ubldr
 
@@ -26,7 +26,7 @@ LOADER_BZIP2_SUPPORT?=no
 LOADER_FDT_SUPPORT=${MK_FDT}
 
 # Always add MI sources
-.include   "../../loader.mk"
+.include   "${BOOTSRC}/loader.mk"
 CFLAGS+=   -I.
 
 CLEANFILES+=   loader.help
@@ -35,14 +35,14 @@ CFLAGS+=-ffreestanding -msoft-float -g
 
 LDFLAGS=   -nostdlib -static -T ${.CURDIR}/ldscript.${MACHINE_CPUARCH}
 
-.include   "../../uboot.mk"
+.include   "${BOOTSRC}/uboot.mk"
 
 DPADD= ${LIBFICL} ${LIBUBOOT} ${LIBFDT} ${LIBUBOOT_FDT} ${LIBSA}
 LDADD= ${LIBFICL} ${LIBUBOOT} ${LIBFDT} ${LIBUBOOT_FDT} ${LIBSA}
 
 OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}
 
-loader.help: help.common help.uboot ${.CURDIR}/../../fdt/help.fdt
+loader.help: help.common help.uboot ${BOOTSRC}/fdt/help.fdt
cat 

svn commit: r325113 - head/sys/dev/flash

2017-10-29 Thread Justin Hibbits
Author: jhibbits
Date: Mon Oct 30 02:31:08 2017
New Revision: 325113
URL: https://svnweb.freebsd.org/changeset/base/325113

Log:
  Add Microchip 1-MBit SPI flash ID
  
  Used on the AmigaOne X5000.

Modified:
  head/sys/dev/flash/mx25l.c

Modified: head/sys/dev/flash/mx25l.c
==
--- head/sys/dev/flash/mx25l.c  Mon Oct 30 01:55:38 2017(r325112)
+++ head/sys/dev/flash/mx25l.c  Mon Oct 30 02:31:08 2017(r325113)
@@ -122,6 +122,7 @@ struct mx25l_flash_ident flash_devices[] = {
{ "s25fl064",   0x01, 0x0216, 64 * 1024, 128, FL_NONE },
{ "s25fl128",   0x01, 0x2018, 64 * 1024, 256, FL_NONE },
{ "s25fl256s",  0x01, 0x0219, 64 * 1024, 512, FL_NONE },
+   { "SST25VF010A", 0xbf, 0x2549, 4 * 1024, 32, FL_ERASE_4K | FL_ERASE_32K 
},
{ "SST25VF032B", 0xbf, 0x254a, 64 * 1024, 64, FL_ERASE_4K | 
FL_ERASE_32K },
 
/* Winbond -- w25x "blocks" are 64K, "sectors" are 4KiB */
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325108 - head/sys/amd64/vmm/io

2017-10-29 Thread Peter Grehan

Hi Ian,


In fact I did check maintainers, and I just now checked it again, and
seeing nothing on-point, wrote a really snarky reply.

Luckily, before hitting send I realized you wouldn't have said anything
unless there was an entry in there, so I checked like 4 more times
before I noticed the line that begins vmm(4).  I had been looking for a
line that began with sys/amd64.

So... sorry about that.  Should I revert it and open a review?


 No, it's fine. It's a good idea in general for code in that area since 
there are often unintended side-effects with guest behaviour, and 
putting up a review can at least flush out folk who might have more 
insight into that.


 I'll update the maintainer's file to include the directory.


Longer-term, I was hoping to find some time over the next few weeks to
further explore the roundoff errors in the timers and attempt a better
fix, and I was definitely intending to put that up for review
(especially because it involves math, and I'm always better off asking
for help with that).


 I know Rod Grimes is going to be doing some testing this week with 
clock drift in guests, and I'll do some dtrace work on HPET usage with 
non-FreeBSD guests.


 Timer accuracy has long been an issue with bhyve so any help in this 
area is much appreciated.


later,

Peter.

___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Re: svn commit: r325097 - head

2017-10-29 Thread Alexey Dokuchaev
On Sun, Oct 29, 2017 at 05:57:06AM -0600, Warner Losh wrote:
> On Oct 29, 2017 2:25 AM, "Eitan Adler"  wrote:
> 
> New Revision: 325097
> URL: https://svnweb.freebsd.org/changeset/base/325097
> 
> Log:
>   Update UPDATING
> 
>   - Remove FreeBSD 4.x of building the kernel.
> 
> 
> It is not the 4.x way of building the kernel. It's a completely supported
> alte restive for those situations where buildkernel is not a good fit.

+1, it's a lot more straightforward and actually much faster for iterative
kernel builds, allows to inject things into the build process [*], etc.
I can't imagine doing any kernel hacking without the traditional config/
build way.

Would you mind putting the instruction back, perhaps after the "new order"
one, with some accompanying text a-la "mostly for developers/hackers' use"?

./danfe

[*] 20170408171501.ga96...@freebsd.org (-developers@, so no weblink)
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325108 - head/sys/amd64/vmm/io

2017-10-29 Thread Ian Lepore
On Sun, 2017-10-29 at 15:15 -0700, Peter Grehan wrote:
> > 
> > > 
> > >    Improve the performance of the hpet timer in bhyve guests by making the
> > >    timer frequency a power of two.  This changes the frequency from 10 to
> > >    16.7 MHz (2 ^ 24 HZ).  Using a power of two avoids roundoff errors when
> > >    doing arithmetic in sbintime_t units.
> > >    
> > >    Testing shows this can fix erratic ntpd behavior in guests using the
> > >    hpet timer (which is the default for multicore guests).
> > >    
> > >    Reported by:   bsam@
> > > 
> > > Modified:
> > >    head/sys/amd64/vmm/io/vhpet.c
>   In the future please respect MAINTAINERS and file a phab review for 
> code in this area.
> 
> later,
> 
> Peter.
> 
> 

In fact I did check maintainers, and I just now checked it again, and
seeing nothing on-point, wrote a really snarky reply.

Luckily, before hitting send I realized you wouldn't have said anything
unless there was an entry in there, so I checked like 4 more times
before I noticed the line that begins vmm(4).  I had been looking for a
line that began with sys/amd64.

So... sorry about that.  Should I revert it and open a review?

Longer-term, I was hoping to find some time over the next few weeks to
further explore the roundoff errors in the timers and attempt a better
fix, and I was definitely intending to put that up for review
(especially because it involves math, and I'm always better off asking
for help with that).

-- Ian

___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325111 - head/share/examples/printing

2017-10-29 Thread Rodney W. Grimes
[ Charset UTF-8 unsupported, converting... ]
> Author: eadler
> Date: Mon Oct 30 00:36:08 2017
> New Revision: 325111
> URL: https://svnweb.freebsd.org/changeset/base/325111
> 
> Log:
>   Remove now bogus README
>   
>   The SGML referenced was removed in r4719 of the doc repo.
> 
> Deleted:
>   head/share/examples/printing/README

But the src/tools/tools/epfe/epfe.pl reference is still valid


-- 
Rod Grimes rgri...@freebsd.org
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325112 - head/sys/powerpc/include

2017-10-29 Thread Justin Hibbits
Author: jhibbits
Date: Mon Oct 30 01:55:38 2017
New Revision: 325112
URL: https://svnweb.freebsd.org/changeset/base/325112

Log:
  Add P5010/P5010E for completeness

Modified:
  head/sys/powerpc/include/spr.h

Modified: head/sys/powerpc/include/spr.h
==
--- head/sys/powerpc/include/spr.h  Mon Oct 30 00:36:08 2017
(r325111)
+++ head/sys/powerpc/include/spr.h  Mon Oct 30 01:55:38 2017
(r325112)
@@ -736,6 +736,8 @@
 #define  SVR_P4040E  0x8208
 #define  SVR_P4080   0x8201
 #define  SVR_P4080E  0x8209
+#define  SVR_P5010   0x8221
+#define  SVR_P5010E  0x8229
 #define  SVR_P5020   0x8220
 #define  SVR_P5020E  0x8228
 #define  SVR_P5021   0x8205
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325111 - head/share/examples/printing

2017-10-29 Thread Eitan Adler
Author: eadler
Date: Mon Oct 30 00:36:08 2017
New Revision: 325111
URL: https://svnweb.freebsd.org/changeset/base/325111

Log:
  Remove now bogus README
  
  The SGML referenced was removed in r4719 of the doc repo.

Deleted:
  head/share/examples/printing/README
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325108 - head/sys/amd64/vmm/io

2017-10-29 Thread Peter Grehan

   Improve the performance of the hpet timer in bhyve guests by making the
   timer frequency a power of two.  This changes the frequency from 10 to
   16.7 MHz (2 ^ 24 HZ).  Using a power of two avoids roundoff errors when
   doing arithmetic in sbintime_t units.
   
   Testing shows this can fix erratic ntpd behavior in guests using the

   hpet timer (which is the default for multicore guests).
   
   Reported by:	bsam@


Modified:
   head/sys/amd64/vmm/io/vhpet.c


 In the future please respect MAINTAINERS and file a phab review for 
code in this area.


later,

Peter.
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Re: svn commit: r325107 - head

2017-10-29 Thread Eitan Adler
On 29 October 2017 at 14:17, Warner Losh  wrote:
>
>>
>>   Also remove references to 9.x
>
>
> That's wrong. Please put them back. We "support" building from the tip of
> releng/9 still.

[60390 14:25:32.777 eax@FlyingEagle ~/svn/fbsd/head]∴svn ci --
UPDATING
(svn:head)-[head:325108]-[325108]
SendingUPDATING
Transmitting file data .done
Committing transaction...
Committed revision 325110.



-- 
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r325110 - head

2017-10-29 Thread Eitan Adler
Author: eadler
Date: Sun Oct 29 21:25:58 2017
New Revision: 325110
URL: https://svnweb.freebsd.org/changeset/base/325110

Log:
  Revert removal of 9.x references in UPDATING
  
  Requested by: imp

Modified:
  head/UPDATING

Modified: head/UPDATING
==
--- head/UPDATING   Sun Oct 29 21:21:39 2017(r325109)
+++ head/UPDATING   Sun Oct 29 21:25:58 2017(r325110)
@@ -36,7 +36,7 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW:
 
Due to a bug in some versions of clang that's very hard to workaround in
the upgrade process, to upgrade to -current you must first upgrade
-   stable/10 after r286033 (including
+   either stable/9 after r286035 or stable/10 after r286033 (including
10.3-RELEASE) or current after r286007 (including stable/11 and
11.0-RELEASE). These revisions post-date the 10.2 and 9.3 releases, so
you'll need to take the unusual step of upgrading to the tip of the
@@ -45,7 +45,7 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW:
from the historical situation where one could upgrade from anywhere on
the last couple of stable branches, so be careful.
 
-   If you're running a hybrid system on 10.x with an updated clang
+   If you're running a hybrid system on 9.x or 10.x with an updated clang
compiler or are using an supported external toolchain, the build system
will allow the upgrade. Otherwise it will print a reminder.
 
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325109 - head/rescue

2017-10-29 Thread Eitan Adler
Author: eadler
Date: Sun Oct 29 21:21:39 2017
New Revision: 325109
URL: https://svnweb.freebsd.org/changeset/base/325109

Log:
  rescue: say gbye to 'boot floppies' and moderize

Modified:
  head/rescue/README

Modified: head/rescue/README
==
--- head/rescue/README  Sun Oct 29 20:50:03 2017(r325108)
+++ head/rescue/README  Sun Oct 29 21:21:39 2017(r325109)
@@ -16,8 +16,7 @@ normally found in /bin and /sbin.
 
 These Makefiles recompile each of the crunchgen components and include
 support for overriding specific library entries.  Such techniques
-should be useful elsewhere.  For example, boot floppies could use this
-to conditionally compile out features to reduce executable size.
+should be useful elsewhere.
 
 3) Produce a toolkit suitable for small distributions.
 
@@ -27,8 +26,8 @@ system.
 
 These tools have one big disadvantage: being statically linked, they
 cannot use some advanced library functions that rely on dynamic
-linking.  In particular, nsswitch, locales, and pam are likely to all
-rely on dynamic linking in the near future.
+linking.  In particular, nsswitch, locales, and pam all
+rely on dynamic linking.
 
 
 To compile:
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325107 - head

2017-10-29 Thread Warner Losh
On Sun, Oct 29, 2017 at 2:40 PM, Eitan Adler  wrote:

> Author: eadler
> Date: Sun Oct 29 20:40:56 2017
> New Revision: 325107
> URL: https://svnweb.freebsd.org/changeset/base/325107
>
> Log:
>   Update the updating URL in UPDATING
>

That's fine.


>   Also remove references to 9.x
>

That's wrong. Please put them back. We "support" building from the tip of
releng/9 still.

Warner


> Modified:
>   head/UPDATING
>
> Modified: head/UPDATING
> 
> ==
> --- head/UPDATING   Sun Oct 29 20:29:31 2017(r325106)
> +++ head/UPDATING   Sun Oct 29 20:40:56 2017(r325107)
> @@ -6,7 +6,7 @@ COMMON ITEMS: section later in the file.  These instru
>  basically know what you are doing.  If not, then please consult the
> FreeBSD
>  handbook:
>
> -https://www.freebsd.org/doc/en_US.ISO8859-1/books/
> handbook/updating-src.html
> +https://www.freebsd.org/doc/en_US.ISO8859-1/books/
> handbook/current-stable.html
>
>  Items affecting the ports and packages system can be found in
>  /usr/ports/UPDATING.  Please read that file before running portupgrade.
> @@ -36,7 +36,7 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW:
>
> Due to a bug in some versions of clang that's very hard to
> workaround in
> the upgrade process, to upgrade to -current you must first upgrade
> -   either stable/9 after r286035 or stable/10 after r286033 (including
> +   stable/10 after r286033 (including
> 10.3-RELEASE) or current after r286007 (including stable/11 and
> 11.0-RELEASE). These revisions post-date the 10.2 and 9.3
> releases, so
> you'll need to take the unusual step of upgrading to the tip of the
> @@ -45,7 +45,7 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW:
> from the historical situation where one could upgrade from
> anywhere on
> the last couple of stable branches, so be careful.
>
> -   If you're running a hybrid system on 9.x or 10.x with an updated
> clang
> +   If you're running a hybrid system on 10.x with an updated clang
> compiler or are using an supported external toolchain, the build
> system
> will allow the upgrade. Otherwise it will print a reminder.
>
>
>
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325108 - head/sys/amd64/vmm/io

2017-10-29 Thread Ian Lepore
On Sun, 2017-10-29 at 20:50 +, Ian Lepore wrote:
> Author: ian
> Date: Sun Oct 29 20:50:03 2017
> New Revision: 325108
> URL: https://svnweb.freebsd.org/changeset/base/325108
> 
> Log:
>   Improve the performance of the hpet timer in bhyve guests by making the
>   timer frequency a power of two.  This changes the frequency from 10 to
>   16.7 MHz (2 ^ 24 HZ).  Using a power of two avoids roundoff errors when
>   doing arithmetic in sbintime_t units.
>   
>   Testing shows this can fix erratic ntpd behavior in guests using the
>   hpet timer (which is the default for multicore guests).
>   
>   Reported by:bsam@
> 
> Modified:
>   head/sys/amd64/vmm/io/vhpet.c
> 
> Modified: head/sys/amd64/vmm/io/vhpet.c
> ==
> --- head/sys/amd64/vmm/io/vhpet.c Sun Oct 29 20:40:56 2017
> (r325107)
> +++ head/sys/amd64/vmm/io/vhpet.c Sun Oct 29 20:50:03 2017
> (r325108)
> @@ -51,7 +51,7 @@ __FBSDID("$FreeBSD$");
>  
>  static MALLOC_DEFINE(M_VHPET, "vhpet", "bhyve virtual hpet");
>  
> -#define  HPET_FREQ   1000/* 10.0 Mhz */
> +#define  HPET_FREQ   16777216/* 16.7 (2^24) Mhz */
>  #define  FS_PER_S1000ul
>  
>  /* Timer N Configuration and Capabilities Register */
> 

It should be noted that this is really more of a workaround than a fix.
 I think the right fix might be to use bintime rather than sbintime to
avoid the rounding errors.  I also suspect this problem affects other
emulated timers such as atpit/8254 where there is less freedom to wish
away the problem with a power-of-two frequency change.

Still, I committed this as-is because it was shown to fix a real-world
problem and it doesn't prevent doing a better fix later.

-- Ian

___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325092 - head/usr.bin/fortune/datfiles

2017-10-29 Thread Cy Schubert
In message 
, Eitan Adler writes:
> On 29 October 2017 at 12:47, Devin Teske  wrote:
> 
> 
>  I doubt many people use /bin/sh as an interactive shell, but the tip
>  ought not lead those who do astray
> 
> Will fix.
> 
> >>>
> >>> Yes. /bin/sh on FreeBSD doesn't grok it, though bash and some other shell
> s
> >>> available as ports do. I think that the old text was a bit better.
> 
> < snip lots of great advice>
> 
> Lets add new tips to fortune!
> 
> > I’ve still had to use rehash on several occasions for it to detect new 
> > apps,
>  so remove that reference might be a mistake
> 
> After r234823 I expect this to only occur if you install a new binary,
> with the same as an existing hashed binary, earlier in the PATH. Have
> you found this not to be the case?

Tangentially, one of the best sources of this stuff for me was the book 
UNIX Power Tools, which should have had the title Common Sense UNIX. We 
could steal a lot of great tips from it.


-- 
Cheers,
Cy Schubert 
FreeBSD UNIX:     Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

svn commit: r325108 - head/sys/amd64/vmm/io

2017-10-29 Thread Ian Lepore
Author: ian
Date: Sun Oct 29 20:50:03 2017
New Revision: 325108
URL: https://svnweb.freebsd.org/changeset/base/325108

Log:
  Improve the performance of the hpet timer in bhyve guests by making the
  timer frequency a power of two.  This changes the frequency from 10 to
  16.7 MHz (2 ^ 24 HZ).  Using a power of two avoids roundoff errors when
  doing arithmetic in sbintime_t units.
  
  Testing shows this can fix erratic ntpd behavior in guests using the
  hpet timer (which is the default for multicore guests).
  
  Reported by:  bsam@

Modified:
  head/sys/amd64/vmm/io/vhpet.c

Modified: head/sys/amd64/vmm/io/vhpet.c
==
--- head/sys/amd64/vmm/io/vhpet.c   Sun Oct 29 20:40:56 2017
(r325107)
+++ head/sys/amd64/vmm/io/vhpet.c   Sun Oct 29 20:50:03 2017
(r325108)
@@ -51,7 +51,7 @@ __FBSDID("$FreeBSD$");
 
 static MALLOC_DEFINE(M_VHPET, "vhpet", "bhyve virtual hpet");
 
-#defineHPET_FREQ   1000/* 10.0 Mhz */
+#defineHPET_FREQ   16777216/* 16.7 (2^24) Mhz */
 #defineFS_PER_S1000ul
 
 /* Timer N Configuration and Capabilities Register */
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325107 - head

2017-10-29 Thread Eitan Adler
Author: eadler
Date: Sun Oct 29 20:40:56 2017
New Revision: 325107
URL: https://svnweb.freebsd.org/changeset/base/325107

Log:
  Update the updating URL in UPDATING
  
  Also remove references to 9.x

Modified:
  head/UPDATING

Modified: head/UPDATING
==
--- head/UPDATING   Sun Oct 29 20:29:31 2017(r325106)
+++ head/UPDATING   Sun Oct 29 20:40:56 2017(r325107)
@@ -6,7 +6,7 @@ COMMON ITEMS: section later in the file.  These instru
 basically know what you are doing.  If not, then please consult the FreeBSD
 handbook:
 
-
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-src.html
+
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html
 
 Items affecting the ports and packages system can be found in
 /usr/ports/UPDATING.  Please read that file before running portupgrade.
@@ -36,7 +36,7 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW:
 
Due to a bug in some versions of clang that's very hard to workaround in
the upgrade process, to upgrade to -current you must first upgrade
-   either stable/9 after r286035 or stable/10 after r286033 (including
+   stable/10 after r286033 (including
10.3-RELEASE) or current after r286007 (including stable/11 and
11.0-RELEASE). These revisions post-date the 10.2 and 9.3 releases, so
you'll need to take the unusual step of upgrading to the tip of the
@@ -45,7 +45,7 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW:
from the historical situation where one could upgrade from anywhere on
the last couple of stable branches, so be careful.
 
-   If you're running a hybrid system on 9.x or 10.x with an updated clang
+   If you're running a hybrid system on 10.x with an updated clang
compiler or are using an supported external toolchain, the build system
will allow the upgrade. Otherwise it will print a reminder.
 
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325106 - head

2017-10-29 Thread Eitan Adler
Author: eadler
Date: Sun Oct 29 20:29:31 2017
New Revision: 325106
URL: https://svnweb.freebsd.org/changeset/base/325106

Log:
  Correct the URLs for both READMEs for tracking src
  
  Previously there were two different URLs in two
  different READMEs, neither of which went anywhere.

Modified:
  head/README
  head/README.md

Modified: head/README
==
--- head/README Sun Oct 29 20:20:51 2017(r325105)
+++ head/README Sun Oct 29 20:29:31 2017(r325106)
@@ -81,4 +81,4 @@ usr.sbin  System administration commands.
 For information on synchronizing your source tree with one or more of
 the FreeBSD Project's development branches, please see:
 
-  https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-src.html
+  
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html

Modified: head/README.md
==
--- head/README.md  Sun Oct 29 20:20:51 2017(r325105)
+++ head/README.md  Sun Oct 29 20:29:31 2017(r325106)
@@ -83,4 +83,4 @@ usr.sbin  System administration commands.
 For information on synchronizing your source tree with one or more of
 the FreeBSD Project's development branches, please see:
 
-   https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html
+   
https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325105 - head/usr.bin/fortune/datfiles

2017-10-29 Thread Eitan Adler
Author: eadler
Date: Sun Oct 29 20:20:51 2017
New Revision: 325105
URL: https://svnweb.freebsd.org/changeset/base/325105

Log:
  The !! trick does not apply to all shells
  
  Requested by: emaste

Modified:
  head/usr.bin/fortune/datfiles/freebsd-tips

Modified: head/usr.bin/fortune/datfiles/freebsd-tips
==
--- head/usr.bin/fortune/datfiles/freebsd-tips  Sun Oct 29 14:57:58 2017
(r325104)
+++ head/usr.bin/fortune/datfiles/freebsd-tips  Sun Oct 29 20:20:51 2017
(r325105)
@@ -455,7 +455,7 @@ Try "whereis firefox" and "whereis whereis".
-- Konstantinos Konstantinidis 
 %
 Want to run the same command again?
-Type "!!".
+In many shells (e.g., tcsh, zsh, bash) you can type "!!".
 %
 Want to go the directory you were just in?
 Type "cd -"
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325092 - head/usr.bin/fortune/datfiles

2017-10-29 Thread Eitan Adler
On 29 October 2017 at 12:47, Devin Teske  wrote:


 I doubt many people use /bin/sh as an interactive shell, but the tip
 ought not lead those who do astray

Will fix.

>>>
>>> Yes. /bin/sh on FreeBSD doesn't grok it, though bash and some other shells
>>> available as ports do. I think that the old text was a bit better.

< snip lots of great advice>

Lets add new tips to fortune!

> I’ve still had to use rehash on several occasions for it to detect new apps, 
> so remove that reference might be a mistake

After r234823 I expect this to only occur if you install a new binary,
with the same as an existing hashed binary, earlier in the PATH. Have
you found this not to be the case?

-- 
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams

On 29 October 2017 at 12:47, Devin Teske  wrote:
>
>> On Oct 29, 2017, at 11:51 AM, Cy Schubert  wrote:
>>
>> In message > om>
>> , Warner Losh writes:
>>> --94eb2c114c9a7c3c21055cb3566c
>>> Content-Type: text/plain; charset="UTF-8"
>>>
> On Sun, Oct 29, 2017 at 8:26 AM, Ed Maste  wrote:
>
> On 29 October 2017 at 00:53, Eitan Adler  wrote:
> Author: eadler
> Date: Sun Oct 29 04:53:33 2017
> New Revision: 325092
> URL: https://svnweb.freebsd.org/changeset/base/325092
>
> Log:
> Modernize freebsd-tips a bit
 ...
> %
> Want to run the same command again?
> -In tcsh you can type "!!".
> +Type "!!".
> %

 $ !!
 sh: !!: not found

 I doubt many people use /bin/sh as an interactive shell, but the tip
 ought not lead those who do astray
>>>
>>> Yes. /bin/sh on FreeBSD doesn't grok it, though bash and some other shells
>>> available as ports do. I think that the old text was a bit better.
>>
>> Or better yet, ctrl-r in bash and zsh, or up-arrow in tcsh.
>
> Since we are responding to emaste's astute observation with random personal 
> favorites when it comes to history actions in an interactive shell...
>
> How about Esc-P and Esc-N?
>
> Never used it, you say? Few people do.
>
> Try this:
>
> Esc-P
> (a colon appears)
> (type a portion of the event you are looking for and press ENTER)
> Found it? Good.
> Didn't find it? Esc-P then ENTER to repeat search further back.
> Keep typing Esc-P, ENTER until you find it.
> Oh, you went too far? Esc-N, ENTER to search forward from the last matched 
> event.
>
> Sometimes I show this to co-workers and they shake their head and go back to 
> Ctrl-R.
>
> Ctrl-R is ok, but doesn't enable an Esc-N-like functionality by default. But 
> if you execute (or put in your shell profile) "stty -ixon" then you can use 
> Ctrl-S to reverse the search order during a Ctrl-R search.
>
> For example:
>
> Ctrl-r
> (a prompt appears)
> (type some text; don't hit ENTER)
> Ctrl-r until you find the one you want
> Went too far?
> Ctrl-s to switch from reverse-search to forward-search
> Ctrl-s until you find one you want
>
> Just thought I would share this random info.
>
> As for the fortune statement...
>
> I agree with emaste, "Type !!" is misleading. Old statement of "in tcsh you 
> can type !!" was fine because tcsh is the only shell in base that supports 
> that feature. However, possible alternatives to "Type !!" could be:
>
> Try "!!" (works in many shells but not all).
>
> NB: Trying to make a future-proof statement so the fortune datfile doesn't 
> have to be onerously maintained.
> --
> Devin



-- 
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Re: svn commit: r325092 - head/usr.bin/fortune/datfiles

2017-10-29 Thread Devin Teske

> On Oct 29, 2017, at 11:51 AM, Cy Schubert  wrote:
> 
> In message  om>
> , Warner Losh writes:
>> --94eb2c114c9a7c3c21055cb3566c
>> Content-Type: text/plain; charset="UTF-8"
>> 
 On Sun, Oct 29, 2017 at 8:26 AM, Ed Maste  wrote:
 
 On 29 October 2017 at 00:53, Eitan Adler  wrote:
 Author: eadler
 Date: Sun Oct 29 04:53:33 2017
 New Revision: 325092
 URL: https://svnweb.freebsd.org/changeset/base/325092
 
 Log:
 Modernize freebsd-tips a bit
>>> ...
 %
 Want to run the same command again?
 -In tcsh you can type "!!".
 +Type "!!".
 %
>>> 
>>> $ !!
>>> sh: !!: not found
>>> 
>>> I doubt many people use /bin/sh as an interactive shell, but the tip
>>> ought not lead those who do astray
>> 
>> Yes. /bin/sh on FreeBSD doesn't grok it, though bash and some other shells
>> available as ports do. I think that the old text was a bit better.
> 
> Or better yet, ctrl-r in bash and zsh, or up-arrow in tcsh.

Since we are responding to emaste's astute observation with random personal 
favorites when it comes to history actions in an interactive shell...

How about Esc-P and Esc-N?

Never used it, you say? Few people do.

Try this:

Esc-P
(a colon appears)
(type a portion of the event you are looking for and press ENTER)
Found it? Good.
Didn't find it? Esc-P then ENTER to repeat search further back.
Keep typing Esc-P, ENTER until you find it.
Oh, you went too far? Esc-N, ENTER to search forward from the last matched 
event.

Sometimes I show this to co-workers and they shake their head and go back to 
Ctrl-R.

Ctrl-R is ok, but doesn't enable an Esc-N-like functionality by default. But if 
you execute (or put in your shell profile) "stty -ixon" then you can use Ctrl-S 
to reverse the search order during a Ctrl-R search.

For example:

Ctrl-r
(a prompt appears)
(type some text; don't hit ENTER)
Ctrl-r until you find the one you want
Went too far?
Ctrl-s to switch from reverse-search to forward-search
Ctrl-s until you find one you want

Just thought I would share this random info.

As for the fortune statement...

I agree with emaste, "Type !!" is misleading. Old statement of "in tcsh you can 
type !!" was fine because tcsh is the only shell in base that supports that 
feature. However, possible alternatives to "Type !!" could be:

Try "!!" (works in many shells but not all).

NB: Trying to make a future-proof statement so the fortune datfile doesn't have 
to be onerously maintained.
-- 
Devin
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325092 - head/usr.bin/fortune/datfiles

2017-10-29 Thread Ian Lepore
On Sun, 2017-10-29 at 11:51 -0700, Cy Schubert wrote:
> In message  gmail.c
> om>
> , Warner Losh writes:
> > 
> > --94eb2c114c9a7c3c21055cb3566c
> > Content-Type: text/plain; charset="UTF-8"
> > 
> > On Sun, Oct 29, 2017 at 8:26 AM, Ed Maste 
> > wrote:
> > 
> > > 
> > > On 29 October 2017 at 00:53, Eitan Adler 
> > > wrote:
> > > > 
> > > > Author: eadler
> > > > Date: Sun Oct 29 04:53:33 2017
> > > > New Revision: 325092
> > > > URL: https://svnweb.freebsd.org/changeset/base/325092
> > > > 
> > > > Log:
> > > >   Modernize freebsd-tips a bit
> > > ...
> > > > 
> > > >  %
> > > >  Want to run the same command again?
> > > > -In tcsh you can type "!!".
> > > > +Type "!!".
> > > >  %
> > > $ !!
> > > sh: !!: not found
> > > 
> > > I doubt many people use /bin/sh as an interactive shell, but the
> > > tip
> > > ought not lead those who do astray
> > > 
> > Yes. /bin/sh on FreeBSD doesn't grok it, though bash and some other
> > shells
> > available as ports do. I think that the old text was a bit better.
> Or better yet, ctrl-r in bash and zsh, or up-arrow in tcsh.
> 

Up-arrow works in sh and bash too, ^R is for searching history.

-- Ian
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325092 - head/usr.bin/fortune/datfiles

2017-10-29 Thread Steven Hartland
I’ve still had to use rehash on several occasions for it to detect new
apps, so remove that reference might be a mistake

On Sun, 29 Oct 2017 at 18:51, Cy Schubert  wrote:

> In message
>  om>
> , Warner Losh writes:
> > --94eb2c114c9a7c3c21055cb3566c
> > Content-Type: text/plain; charset="UTF-8"
> >
> > On Sun, Oct 29, 2017 at 8:26 AM, Ed Maste  wrote:
> >
> > > On 29 October 2017 at 00:53, Eitan Adler  wrote:
> > > > Author: eadler
> > > > Date: Sun Oct 29 04:53:33 2017
> > > > New Revision: 325092
> > > > URL: https://svnweb.freebsd.org/changeset/base/325092
> > > >
> > > > Log:
> > > >   Modernize freebsd-tips a bit
> > > ...
> > > >  %
> > > >  Want to run the same command again?
> > > > -In tcsh you can type "!!".
> > > > +Type "!!".
> > > >  %
> > >
> > > $ !!
> > > sh: !!: not found
> > >
> > > I doubt many people use /bin/sh as an interactive shell, but the tip
> > > ought not lead those who do astray
> > >
> >
> > Yes. /bin/sh on FreeBSD doesn't grok it, though bash and some other
> shells
> > available as ports do. I think that the old text was a bit better.
>
> Or better yet, ctrl-r in bash and zsh, or up-arrow in tcsh.
>
>
> --
> Cheers,
> Cy Schubert 
> FreeBSD UNIX:     Web:  http://www.FreeBSD.org
>
> The need of the many outweighs the greed of the few.
>
>
>
>
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Re: svn commit: r325092 - head/usr.bin/fortune/datfiles

2017-10-29 Thread Cy Schubert
In message 
, Warner Losh writes:
> --94eb2c114c9a7c3c21055cb3566c
> Content-Type: text/plain; charset="UTF-8"
> 
> On Sun, Oct 29, 2017 at 8:26 AM, Ed Maste  wrote:
> 
> > On 29 October 2017 at 00:53, Eitan Adler  wrote:
> > > Author: eadler
> > > Date: Sun Oct 29 04:53:33 2017
> > > New Revision: 325092
> > > URL: https://svnweb.freebsd.org/changeset/base/325092
> > >
> > > Log:
> > >   Modernize freebsd-tips a bit
> > ...
> > >  %
> > >  Want to run the same command again?
> > > -In tcsh you can type "!!".
> > > +Type "!!".
> > >  %
> >
> > $ !!
> > sh: !!: not found
> >
> > I doubt many people use /bin/sh as an interactive shell, but the tip
> > ought not lead those who do astray
> >
> 
> Yes. /bin/sh on FreeBSD doesn't grok it, though bash and some other shells
> available as ports do. I think that the old text was a bit better.

Or better yet, ctrl-r in bash and zsh, or up-arrow in tcsh.


-- 
Cheers,
Cy Schubert 
FreeBSD UNIX:     Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325092 - head/usr.bin/fortune/datfiles

2017-10-29 Thread Warner Losh
On Sun, Oct 29, 2017 at 8:26 AM, Ed Maste  wrote:

> On 29 October 2017 at 00:53, Eitan Adler  wrote:
> > Author: eadler
> > Date: Sun Oct 29 04:53:33 2017
> > New Revision: 325092
> > URL: https://svnweb.freebsd.org/changeset/base/325092
> >
> > Log:
> >   Modernize freebsd-tips a bit
> ...
> >  %
> >  Want to run the same command again?
> > -In tcsh you can type "!!".
> > +Type "!!".
> >  %
>
> $ !!
> sh: !!: not found
>
> I doubt many people use /bin/sh as an interactive shell, but the tip
> ought not lead those who do astray
>

Yes. /bin/sh on FreeBSD doesn't grok it, though bash and some other shells
available as ports do. I think that the old text was a bit better.

Warner
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325104 - stable/11/sys/fs/pseudofs

2017-10-29 Thread Mark Johnston
Author: markj
Date: Sun Oct 29 14:57:58 2017
New Revision: 325104
URL: https://svnweb.freebsd.org/changeset/base/325104

Log:
  MFC r324868:
  Delete declarations of struct pfs_bitmap, removed in r143841.

Modified:
  stable/11/sys/fs/pseudofs/pseudofs.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/fs/pseudofs/pseudofs.h
==
--- stable/11/sys/fs/pseudofs/pseudofs.hSun Oct 29 14:26:37 2017
(r325103)
+++ stable/11/sys/fs/pseudofs/pseudofs.hSun Oct 29 14:57:58 2017
(r325104)
@@ -81,7 +81,6 @@ typedef enum {
  */
 struct pfs_info;
 struct pfs_node;
-struct pfs_bitmap;
 
 /*
  * Init / uninit callback
@@ -120,8 +119,6 @@ struct vattr;
 #define PFS_ATTR_PROTO(name) \
int name(PFS_ATTR_ARGS);
 typedef int (*pfs_attr_t)(PFS_ATTR_ARGS);
-
-struct pfs_bitmap; /* opaque */
 
 /*
  * Visibility callback
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325103 - head/lib/libthr/arch/arm/include

2017-10-29 Thread Michal Meloun
Author: mmel
Date: Sun Oct 29 14:26:37 2017
New Revision: 325103
URL: https://svnweb.freebsd.org/changeset/base/325103

Log:
  Fix misleading comment.
  Not a functional change.
  
  MFC after:3 days

Modified:
  head/lib/libthr/arch/arm/include/pthread_md.h

Modified: head/lib/libthr/arch/arm/include/pthread_md.h
==
--- head/lib/libthr/arch/arm/include/pthread_md.h   Sun Oct 29 12:07:27 
2017(r325102)
+++ head/lib/libthr/arch/arm/include/pthread_md.h   Sun Oct 29 14:26:37 
2017(r325103)
@@ -40,7 +40,8 @@
 #defineDTV_OFFSET  offsetof(struct tcb, tcb_dtv)
 
 /*
- * Variant II tcb, first two members are required by rtld.
+ * Variant I tcb. The structure layout is fixed, don't blindly
+ * change it.
  */
 struct tcb {
void*tcb_dtv;   /* required by rtld */
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325092 - head/usr.bin/fortune/datfiles

2017-10-29 Thread Ed Maste
On 29 October 2017 at 00:53, Eitan Adler  wrote:
> Author: eadler
> Date: Sun Oct 29 04:53:33 2017
> New Revision: 325092
> URL: https://svnweb.freebsd.org/changeset/base/325092
>
> Log:
>   Modernize freebsd-tips a bit
...
>  %
>  Want to run the same command again?
> -In tcsh you can type "!!".
> +Type "!!".
>  %

$ !!
sh: !!: not found

I doubt many people use /bin/sh as an interactive shell, but the tip
ought not lead those who do astray.
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325102 - head/libexec/rtld-elf

2017-10-29 Thread Edward Tomasz Napierala
Author: trasz
Date: Sun Oct 29 12:07:27 2017
New Revision: 325102
URL: https://svnweb.freebsd.org/changeset/base/325102

Log:
  Plug memory leak on error case.
  
  Reported by:  Coverity
  CID:  1382112
  MFC after:2 weeks

Modified:
  head/libexec/rtld-elf/libmap.c

Modified: head/libexec/rtld-elf/libmap.c
==
--- head/libexec/rtld-elf/libmap.c  Sun Oct 29 12:03:06 2017
(r325101)
+++ head/libexec/rtld-elf/libmap.c  Sun Oct 29 12:07:27 2017
(r325102)
@@ -133,6 +133,7 @@ lmc_parse_file(char *path)
retval = read(fd, lm_map, st.st_size);
if (retval != st.st_size) {
close(fd);
+   free(lm_map);
dbg("lm_parse_file: read(\"%s\") failed, %s", path,
rtld_strerror(errno));
return;
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325101 - head/sys/geom/mountver

2017-10-29 Thread Edward Tomasz Napierala
Author: trasz
Date: Sun Oct 29 12:03:06 2017
New Revision: 325101
URL: https://svnweb.freebsd.org/changeset/base/325101

Log:
  Add back missing MTX_DEF, it still needs to be there.
  
  (Although it's defined to be 0, so there's no functional change.)
  
  Reported by:  glebius
  MFC after:2 weeks

Modified:
  head/sys/geom/mountver/g_mountver.c

Modified: head/sys/geom/mountver/g_mountver.c
==
--- head/sys/geom/mountver/g_mountver.c Sun Oct 29 09:50:20 2017
(r325100)
+++ head/sys/geom/mountver/g_mountver.c Sun Oct 29 12:03:06 2017
(r325101)
@@ -257,7 +257,7 @@ g_mountver_create(struct gctl_req *req, struct g_class
}
gp = g_new_geomf(mp, "%s", name);
sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO);
-   mtx_init(>sc_mtx, "gmountver", NULL, MTX_RECURSE);
+   mtx_init(>sc_mtx, "gmountver", NULL, MTX_DEF | MTX_RECURSE);
TAILQ_INIT(>sc_queue);
sc->sc_provider_name = strdup(pp->name, M_GEOM);
gp->softc = sc;
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325097 - head

2017-10-29 Thread Warner Losh
On Oct 29, 2017 2:25 AM, "Eitan Adler"  wrote:

Author: eadler
Date: Sun Oct 29 08:25:31 2017
New Revision: 325097
URL: https://svnweb.freebsd.org/changeset/base/325097

Log:
  Update UPDATING

  - Remove FreeBSD 4.x of building the kernel.


It is not the 4.x way of building the kernel. It's a completely supported
alte restive for those situations where buildkernel is not a good fit.

  While it might technically work, it is better to
  document the 'correct' way than how to shoot oneself
  in the foot


Neither way is more correct. Both have foot shooting issues in different
ways.

While the removal of the text many be ok for UPDATING, these
characterizations are bogus.

Warner


  - Remove reference to CVS -P for src.

Modified:
  head/UPDATING

Modified: head/UPDATING

==
--- head/UPDATING   Sun Oct 29 08:17:03 2017(r325096)
+++ head/UPDATING   Sun Oct 29 08:25:31 2017(r325097)
@@ -1843,21 +1843,6 @@ COMMON ITEMS:
make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
nextboot -k testkernel

-   To just build a kernel when you know that it won't mess you up
-   --
-   This assumes you are already running a CURRENT system.  Replace
-   ${arch} with the architecture of your machine (e.g. "i386",
-   "arm", "amd64", "ia64", "pc98", "sparc64", "powerpc", "mips", etc).
-
-   cd src/sys/${arch}/conf
-   config KERNEL_NAME_HERE
-   cd ../compile/KERNEL_NAME_HERE
-   make depend
-   make
-   make install
-
-   If this fails, go to the "To build a kernel" section.
-
To rebuild everything and install it on the current system.
---
# Note: sometimes if you are running current you gotta do more than
@@ -1865,7 +1850,8 @@ COMMON ITEMS:


make buildworld
-   make kernel KERNCONF=YOUR_KERNEL_HERE
+   make buildkernel KERNCONF=YOUR_KERNEL_HERE
+   make installkernel KERNCONF=YOUR_KERNEL_HERE
[1]
 [3]
mergemaster -Fp [5]
@@ -1965,10 +1951,7 @@ COMMON ITEMS:
Make sure that you merge any new devices from GENERIC since the
last time you updated your kernel config file.

-   [9] When checking out sources, you must include the -P flag to have
-   cvs prune empty directories.
-
-   If CPUTYPE is defined in your /etc/make.conf, make sure to use the
+   [9] If CPUTYPE is defined in your /etc/make.conf, make sure to use
the
"?=" instead of the "=" assignment operator, so that buildworld can
override the CPUTYPE if it needs to.
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


Re: svn commit: r325097 - head

2017-10-29 Thread Devin Teske
Can you describe said shooting of foot? Because...

+ I still build my kernels that way, because...
+ config can be given -C to retain the *entire* config file in the kernel, 
comments-and-all, because...
+ There has traditionally been no knob that can be set during the kernel 
targets of the top-level Makefile that will enable "config -C" instead of just 
"config".

We use a version-controlled config file and want lines like "# $Smule: ... $" 
retained as well as include lines, etc so we can see hierarchical topology of 
the kernel config from a running system in the field simply by running "config 
-x $( sysctl -n kern.bootfile ) | less"

Thus, I wouldn't even call this a "FreeBSD 4.x [process] of bulding the kernel" 
but instead "an alternate proceaa of building kernel" and the people that use 
it know what they are doing and this there is no foot shooting.

NB: I actually use "config -C -g" for full disclosure.
-- 
Devin

> On Oct 29, 2017, at 1:25 AM, Eitan Adler  wrote:
> 
> Author: eadler
> Date: Sun Oct 29 08:25:31 2017
> New Revision: 325097
> URL: https://svnweb.freebsd.org/changeset/base/325097
> 
> Log:
>  Update UPDATING
> 
>  - Remove FreeBSD 4.x of building the kernel.
>  While it might technically work, it is better to
>  document the 'correct' way than how to shoot oneself
>  in the foot
> 
>  - Remove reference to CVS -P for src.
> 
> Modified:
>  head/UPDATING
> 
> Modified: head/UPDATING
> ==
> --- head/UPDATINGSun Oct 29 08:17:03 2017(r325096)
> +++ head/UPDATINGSun Oct 29 08:25:31 2017(r325097)
> @@ -1843,21 +1843,6 @@ COMMON ITEMS:
>make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
>nextboot -k testkernel
> 
> -To just build a kernel when you know that it won't mess you up
> ---
> -This assumes you are already running a CURRENT system.  Replace
> -${arch} with the architecture of your machine (e.g. "i386",
> -"arm", "amd64", "ia64", "pc98", "sparc64", "powerpc", "mips", etc).
> -
> -cd src/sys/${arch}/conf
> -config KERNEL_NAME_HERE
> -cd ../compile/KERNEL_NAME_HERE
> -make depend
> -make
> -make install
> -
> -If this fails, go to the "To build a kernel" section.
> -
>To rebuild everything and install it on the current system.
>---
># Note: sometimes if you are running current you gotta do more than
> @@ -1865,7 +1850,8 @@ COMMON ITEMS:
> 
>
>make buildworld
> -make kernel KERNCONF=YOUR_KERNEL_HERE
> +make buildkernel KERNCONF=YOUR_KERNEL_HERE
> +make installkernel KERNCONF=YOUR_KERNEL_HERE
>[1]
>[3]
>mergemaster -Fp[5]
> @@ -1965,10 +1951,7 @@ COMMON ITEMS:
>Make sure that you merge any new devices from GENERIC since the
>last time you updated your kernel config file.
> 
> -[9] When checking out sources, you must include the -P flag to have
> -cvs prune empty directories.
> -
> -If CPUTYPE is defined in your /etc/make.conf, make sure to use the
> +[9] If CPUTYPE is defined in your /etc/make.conf, make sure to use the
>"?=" instead of the "=" assignment operator, so that buildworld can
>override the CPUTYPE if it needs to.
> 
> 

___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325100 - head/lib/libcasper/libcasper

2017-10-29 Thread Mariusz Zaborski
Author: oshogbo
Date: Sun Oct 29 09:50:20 2017
New Revision: 325100
URL: https://svnweb.freebsd.org/changeset/base/325100

Log:
  Fix information about nv.h include.
  
  MFC after:1 week

Modified:
  head/lib/libcasper/libcasper/libcasper.3

Modified: head/lib/libcasper/libcasper/libcasper.3
==
--- head/lib/libcasper/libcasper/libcasper.3Sun Oct 29 09:48:28 2017
(r325099)
+++ head/lib/libcasper/libcasper/libcasper.3Sun Oct 29 09:50:20 2017
(r325100)
@@ -27,7 +27,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd October 5, 2016
+.Dd October 29, 2017
 .Dt LIBCASPER 3
 .Os
 .Sh NAME
@@ -47,8 +47,8 @@
 .Sh LIBRARY
 .Lb libcasper
 .Sh SYNOPSIS
+.In sys/nv.h
 .In libcasper.h
-.In nv.h
 .Ft "cap_channel_t *"
 .Fn cap_init "void"
 .Ft "cap_channel_t *"
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325099 - in stable/10/sys: kern sys

2017-10-29 Thread Konstantin Belousov
Author: kib
Date: Sun Oct 29 09:48:28 2017
New Revision: 325099
URL: https://svnweb.freebsd.org/changeset/base/325099

Log:
  MFC r324853:
  Remove the support for mknod(S_IFMT), which created dummy vnodes with
  VBAD type.

Modified:
  stable/10/sys/kern/vfs_syscalls.c
  stable/10/sys/sys/priv.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/vfs_syscalls.c
==
--- stable/10/sys/kern/vfs_syscalls.c   Sun Oct 29 09:38:42 2017
(r325098)
+++ stable/10/sys/kern/vfs_syscalls.c   Sun Oct 29 09:48:28 2017
(r325099)
@@ -1246,9 +1246,6 @@ kern_mknodat(struct thread *td, int fd, char *path, en
if (error == 0 && dev == VNOVAL)
error = EINVAL;
break;
-   case S_IFMT:
-   error = priv_check(td, PRIV_VFS_MKNOD_BAD);
-   break;
case S_IFWHT:
error = priv_check(td, PRIV_VFS_MKNOD_WHT);
break;
@@ -1286,9 +1283,6 @@ restart:
whiteout = 0;
 
switch (mode & S_IFMT) {
-   case S_IFMT:/* used by badsect to flag bad sectors */
-   vattr.va_type = VBAD;
-   break;
case S_IFCHR:
vattr.va_type = VCHR;
break;

Modified: stable/10/sys/sys/priv.h
==
--- stable/10/sys/sys/priv.hSun Oct 29 09:38:42 2017(r325098)
+++ stable/10/sys/sys/priv.hSun Oct 29 09:48:28 2017(r325099)
@@ -265,7 +265,7 @@
 #definePRIV_VFS_GETFH  327 /* Can retrieve file handles. */
 #definePRIV_VFS_GETQUOTA   328 /* getquota(). */
 #definePRIV_VFS_LINK   329 /* bsd.hardlink_check_uid */
-#definePRIV_VFS_MKNOD_BAD  330 /* Can mknod() to mark bad 
inodes. */
+#definePRIV_VFS_MKNOD_BAD  330 /* Was: mknod() can mark bad 
inodes. */
 #definePRIV_VFS_MKNOD_DEV  331 /* Can mknod() to create dev 
nodes. */
 #definePRIV_VFS_MKNOD_WHT  332 /* Can mknod() to create 
whiteout. */
 #definePRIV_VFS_MOUNT  333 /* Can mount(). */
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325098 - in stable/11/sys: kern sys

2017-10-29 Thread Konstantin Belousov
Author: kib
Date: Sun Oct 29 09:38:42 2017
New Revision: 325098
URL: https://svnweb.freebsd.org/changeset/base/325098

Log:
  MFC r324853:
  Remove the support for mknod(S_IFMT), which created dummy vnodes with
  VBAD type.

Modified:
  stable/11/sys/kern/vfs_syscalls.c
  stable/11/sys/sys/priv.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/vfs_syscalls.c
==
--- stable/11/sys/kern/vfs_syscalls.c   Sun Oct 29 08:25:31 2017
(r325097)
+++ stable/11/sys/kern/vfs_syscalls.c   Sun Oct 29 09:38:42 2017
(r325098)
@@ -1187,9 +1187,6 @@ kern_mknodat(struct thread *td, int fd, char *path, en
if (error == 0 && dev == VNOVAL)
error = EINVAL;
break;
-   case S_IFMT:
-   error = priv_check(td, PRIV_VFS_MKNOD_BAD);
-   break;
case S_IFWHT:
error = priv_check(td, PRIV_VFS_MKNOD_WHT);
break;
@@ -1227,9 +1224,6 @@ restart:
whiteout = 0;
 
switch (mode & S_IFMT) {
-   case S_IFMT:/* used by badsect to flag bad sectors */
-   vattr.va_type = VBAD;
-   break;
case S_IFCHR:
vattr.va_type = VCHR;
break;

Modified: stable/11/sys/sys/priv.h
==
--- stable/11/sys/sys/priv.hSun Oct 29 08:25:31 2017(r325097)
+++ stable/11/sys/sys/priv.hSun Oct 29 09:38:42 2017(r325098)
@@ -266,7 +266,7 @@
 #definePRIV_VFS_GETFH  327 /* Can retrieve file handles. */
 #definePRIV_VFS_GETQUOTA   328 /* getquota(). */
 #definePRIV_VFS_LINK   329 /* bsd.hardlink_check_uid */
-#definePRIV_VFS_MKNOD_BAD  330 /* Can mknod() to mark bad 
inodes. */
+#definePRIV_VFS_MKNOD_BAD  330 /* Was: mknod() can mark bad 
inodes. */
 #definePRIV_VFS_MKNOD_DEV  331 /* Can mknod() to create dev 
nodes. */
 #definePRIV_VFS_MKNOD_WHT  332 /* Can mknod() to create 
whiteout. */
 #definePRIV_VFS_MOUNT  333 /* Can mount(). */
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325097 - head

2017-10-29 Thread Eitan Adler
Author: eadler
Date: Sun Oct 29 08:25:31 2017
New Revision: 325097
URL: https://svnweb.freebsd.org/changeset/base/325097

Log:
  Update UPDATING
  
  - Remove FreeBSD 4.x of building the kernel.
  While it might technically work, it is better to
  document the 'correct' way than how to shoot oneself
  in the foot
  
  - Remove reference to CVS -P for src.

Modified:
  head/UPDATING

Modified: head/UPDATING
==
--- head/UPDATING   Sun Oct 29 08:17:03 2017(r325096)
+++ head/UPDATING   Sun Oct 29 08:25:31 2017(r325097)
@@ -1843,21 +1843,6 @@ COMMON ITEMS:
make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
nextboot -k testkernel
 
-   To just build a kernel when you know that it won't mess you up
-   --
-   This assumes you are already running a CURRENT system.  Replace
-   ${arch} with the architecture of your machine (e.g. "i386",
-   "arm", "amd64", "ia64", "pc98", "sparc64", "powerpc", "mips", etc).
-
-   cd src/sys/${arch}/conf
-   config KERNEL_NAME_HERE
-   cd ../compile/KERNEL_NAME_HERE
-   make depend
-   make
-   make install
-
-   If this fails, go to the "To build a kernel" section.
-
To rebuild everything and install it on the current system.
---
# Note: sometimes if you are running current you gotta do more than
@@ -1865,7 +1850,8 @@ COMMON ITEMS:
 

make buildworld
-   make kernel KERNCONF=YOUR_KERNEL_HERE
+   make buildkernel KERNCONF=YOUR_KERNEL_HERE
+   make installkernel KERNCONF=YOUR_KERNEL_HERE
[1]
 [3]
mergemaster -Fp [5]
@@ -1965,10 +1951,7 @@ COMMON ITEMS:
Make sure that you merge any new devices from GENERIC since the
last time you updated your kernel config file.
 
-   [9] When checking out sources, you must include the -P flag to have
-   cvs prune empty directories.
-
-   If CPUTYPE is defined in your /etc/make.conf, make sure to use the
+   [9] If CPUTYPE is defined in your /etc/make.conf, make sure to use the
"?=" instead of the "=" assignment operator, so that buildworld can
override the CPUTYPE if it needs to.
 
___
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"


svn commit: r325096 - in head: . etc lib/csu/arm lib/csu/powerpc lib/csu/powerpc64 lib/libusb release/amd64 release/i386 release/powerpc release/sparc64 share/doc/papers/contents share/examples/BSD...

2017-10-29 Thread Eitan Adler
Author: eadler
Date: Sun Oct 29 08:17:03 2017
New Revision: 325096
URL: https://svnweb.freebsd.org/changeset/base/325096

Log:
  Update several more URLs
  
  - Primarily http -> https
  - Primarily FreeBSD project URLs

Modified:
  head/README
  head/README.md
  head/etc/printcap
  head/lib/csu/arm/crt1.c
  head/lib/csu/powerpc/crt1.c
  head/lib/csu/powerpc64/crt1.c
  head/lib/libusb/libusb10.c
  head/release/amd64/mkisoimages.sh
  head/release/i386/mkisoimages.sh
  head/release/powerpc/mkisoimages.sh
  head/release/sparc64/mkisoimages.sh
  head/share/doc/papers/contents/contents.ms
  head/share/examples/BSD_daemon/poster.sh
  head/share/man/man4/lge.4
  head/share/man/man4/mac.4
  head/share/man/man7/ports.7
  head/share/man/man7/release.7
  head/share/man/man7/tests.7
  head/share/man/man8/crash.8
  head/share/man/man9/mac.9
  head/share/man/man9/own.9
  head/share/man/man9/pci.9
  head/share/misc/bsd-family-tree
  head/share/misc/iso3166
  head/share/misc/organization.dot
  head/sys/amd64/conf/GENERIC
  head/sys/amd64/conf/GENERIC-NODEBUG
  head/sys/amd64/conf/MINIMAL
  head/sys/arm/conf/ALLWINNER_UP
  head/sys/arm/conf/ALPINE
  head/sys/arm/conf/AML8726
  head/sys/arm/conf/APALIS-IMX6
  head/sys/arm/conf/ARMADAXP
  head/sys/arm/conf/ARNDALE
  head/sys/arm/conf/ARNDALE-OCTA
  head/sys/arm/conf/AVILA
  head/sys/arm/conf/BEAGLEBONE
  head/sys/arm/conf/BWCT
  head/sys/arm/conf/CAMBRIA
  head/sys/arm/conf/CHROMEBOOK
  head/sys/arm/conf/CHROMEBOOK-PEACH-PIT
  head/sys/arm/conf/CHROMEBOOK-SNOW
  head/sys/arm/conf/CHROMEBOOK-SPRING
  head/sys/arm/conf/CNS11XXNAS
  head/sys/arm/conf/COLIBRI-VF50
  head/sys/arm/conf/COSMIC
  head/sys/arm/conf/CRB
  head/sys/arm/conf/DOCKSTAR
  head/sys/arm/conf/DREAMPLUG-1001
  head/sys/arm/conf/EB9200
  head/sys/arm/conf/EFIKA_MX
  head/sys/arm/conf/ETHERNUT5
  head/sys/arm/conf/EXYNOS5.common
  head/sys/arm/conf/EXYNOS5250
  head/sys/arm/conf/EXYNOS5420
  head/sys/arm/conf/GENERIC
  head/sys/arm/conf/GENERIC-NODEBUG
  head/sys/arm/conf/GUMSTIX
  head/sys/arm/conf/GUMSTIX-QEMU
  head/sys/arm/conf/HL200
  head/sys/arm/conf/HL201
  head/sys/arm/conf/IMX53
  head/sys/arm/conf/IMX6
  head/sys/arm/conf/JETSON-TK1
  head/sys/arm/conf/KB920X
  head/sys/arm/conf/NSLU
  head/sys/arm/conf/ODROIDC1
  head/sys/arm/conf/PANDABOARD
  head/sys/arm/conf/QILA9G20
  head/sys/arm/conf/QUARTZ
  head/sys/arm/conf/RADXA
  head/sys/arm/conf/RADXA-LITE
  head/sys/arm/conf/RK3188
  head/sys/arm/conf/RPI-B
  head/sys/arm/conf/RPI2
  head/sys/arm/conf/SAM9260EK
  head/sys/arm/conf/SAM9G20EK
  head/sys/arm/conf/SAM9X25EK
  head/sys/arm/conf/SN9G45
  head/sys/arm/conf/SOCDK
  head/sys/arm/conf/SOCFPGA
  head/sys/arm/conf/SOCKIT
  head/sys/arm/conf/SOCKIT-BERI
  head/sys/arm/conf/TEGRA124
  head/sys/arm/conf/VERSATILEPB
  head/sys/arm/conf/VIRT
  head/sys/arm/conf/VSATV102
  head/sys/arm/conf/VYBRID
  head/sys/arm/conf/YYHD18
  head/sys/arm/conf/ZEDBOARD
  head/sys/arm64/conf/GENERIC
  head/sys/arm64/conf/GENERIC-NODEBUG
  head/sys/arm64/conf/GENERIC-UP
  head/sys/dev/isp/DriverManual.txt
  head/sys/dev/sk/if_sk.c
  head/sys/i386/conf/GENERIC
  head/sys/i386/conf/GENERIC-NODEBUG
  head/sys/mips/conf/ADM5120
  head/sys/mips/conf/ALCHEMY
  head/sys/mips/conf/ERL
  head/sys/mips/conf/MT7620
  head/sys/mips/conf/OCTEON1
  head/sys/mips/conf/QEMU
  head/sys/mips/conf/RT305X
  head/sys/mips/conf/RT5350
  head/sys/mips/conf/XLP
  head/sys/mips/conf/XLP64
  head/sys/mips/conf/XLPN32
  head/sys/mips/conf/XLR
  head/sys/mips/conf/XLR64
  head/sys/mips/conf/XLRN32
  head/sys/powerpc/conf/GENERIC
  head/sys/powerpc/conf/GENERIC-NODEBUG
  head/sys/powerpc/conf/GENERIC64
  head/sys/riscv/conf/GENERIC
  head/sys/sparc64/conf/GENERIC
  head/sys/sparc64/conf/GENERIC-NODEBUG
  head/tools/tools/cd2dvd/cd2dvd.sh
  head/tools/tools/portsinfo/portsinfo.sh
  head/usr.sbin/bhyve/xmsr.c
  head/usr.sbin/bsdconfig/networking/share/hostname.subr
  head/usr.sbin/makefs/tests/makefs_cd9660_tests.sh
  head/usr.sbin/mergemaster/mergemaster.8
  head/usr.sbin/ppp/ppp.8

Modified: head/README
==
--- head/README Sun Oct 29 08:03:21 2017(r325095)
+++ head/README Sun Oct 29 08:17:03 2017(r325096)
@@ -9,7 +9,7 @@ more information).
 
 The Makefile in this directory supports a number of targets for
 building components (or all) of the FreeBSD source tree.  See build(7)
-and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
+and https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
 for more information, including setting make(1) variables.
 
 The `buildkernel` and `installkernel` targets build and install
@@ -18,7 +18,7 @@ the Makefile in this directory for more information on
 standard build targets and compile-time flags.
 
 Building a kernel is a somewhat more involved process.  See build(7), 
config(8),
-and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
+and 

svn commit: r325095 - in head/usr.bin: calendar calendar/calendars/pt_BR.UTF-8 fortune/datfiles mkcsmapper unifdef units xohtml

2017-10-29 Thread Eitan Adler
Author: eadler
Date: Sun Oct 29 08:03:21 2017
New Revision: 325095
URL: https://svnweb.freebsd.org/changeset/base/325095

Log:
  Update URLs in usr.bin
  
  - http -> https
  - contents have moved locations
  - removal of URL if I could not find new location

Modified:
  head/usr.bin/calendar/calendars/pt_BR.UTF-8/calendar.commemorative
  head/usr.bin/calendar/sunpos.c
  head/usr.bin/fortune/datfiles/fortunes
  head/usr.bin/mkcsmapper/mkcsmapper.1
  head/usr.bin/unifdef/unifdef.1
  head/usr.bin/unifdef/unifdef.c
  head/usr.bin/units/definitions.units
  head/usr.bin/xohtml/xohtml.sh

Modified: head/usr.bin/calendar/calendars/pt_BR.UTF-8/calendar.commemorative
==
--- head/usr.bin/calendar/calendars/pt_BR.UTF-8/calendar.commemorative  Sun Oct 
29 05:27:22 2017(r325094)
+++ head/usr.bin/calendar/calendars/pt_BR.UTF-8/calendar.commemorative  Sun Oct 
29 08:03:21 2017(r325095)
@@ -4,8 +4,6 @@
  * Originally submitted by Renato Tambellini 
  *
  * Brazilian commemorative days
- *
- * http://www.ibge.gov.br/ibgeteen/datas/home.html
  */
 
 #ifndef _pt_BR_UTF_8_commemorative_

Modified: head/usr.bin/calendar/sunpos.c
==
--- head/usr.bin/calendar/sunpos.c  Sun Oct 29 05:27:22 2017
(r325094)
+++ head/usr.bin/calendar/sunpos.c  Sun Oct 29 08:03:21 2017
(r325095)
@@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$");
 /*
  * This code is created to match the formulas available at:
  * Formula and examples obtained from "How to Calculate alt/az: SAAO" at
- * 
http://www.saao.ac.za/public-info/sun-moon-stars/sun-index/how-to-calculate-altaz/
+ * 
http://old.saao.ac.za/public-info/sun-moon-stars/sun-index/how-to-calculate-altaz/
  */
 
 #include 

Modified: head/usr.bin/fortune/datfiles/fortunes
==
--- head/usr.bin/fortune/datfiles/fortunes  Sun Oct 29 05:27:22 2017
(r325094)
+++ head/usr.bin/fortune/datfiles/fortunes  Sun Oct 29 08:03:21 2017
(r325095)
@@ -46260,7 +46260,7 @@ error:
 The operation completed successfully.
 
 For more information, see Help and Support Center at
-http://go.microsoft.com/fwlink/events.asp.
+https://go.microsoft.com/fwlink/events.asp.
 %
 The minute a man is convinced that he is interesting, he isn't.
 %

Modified: head/usr.bin/mkcsmapper/mkcsmapper.1
==
--- head/usr.bin/mkcsmapper/mkcsmapper.1Sun Oct 29 05:27:22 2017
(r325094)
+++ head/usr.bin/mkcsmapper/mkcsmapper.1Sun Oct 29 08:03:21 2017
(r325095)
@@ -29,8 +29,8 @@
 .\" Electrical and Electronics Engineers, Inc and The Open Group.  In the
 .\" event of any discrepancy between this version and the original IEEE and
 .\" The Open Group Standard, the original IEEE and The Open Group Standard is
-.\" the referee document.  The original Standard can be obtained online at
-.\" http://www.opengroup.org/unix/online.html.
+.\" the referee document.  The original Standard can be obtained at
+.\" http://www.opengroup.org/standards/unix.
 .\"
 .\" $FreeBSD$
 .\"

Modified: head/usr.bin/unifdef/unifdef.1
==
--- head/usr.bin/unifdef/unifdef.1  Sun Oct 29 05:27:22 2017
(r325094)
+++ head/usr.bin/unifdef/unifdef.1  Sun Oct 29 08:03:21 2017
(r325095)
@@ -477,7 +477,7 @@ Unterminated char or string literal
 .Xr diff 1
 .Pp
 The unifdef home page is
-.Pa http://dotat.at/prog/unifdef
+.Pa https://dotat.at/prog/unifdef
 .Sh HISTORY
 The
 .Nm

Modified: head/usr.bin/unifdef/unifdef.c
==
--- head/usr.bin/unifdef/unifdef.c  Sun Oct 29 05:27:22 2017
(r325094)
+++ head/usr.bin/unifdef/unifdef.c  Sun Oct 29 08:03:21 2017
(r325095)
@@ -49,7 +49,7 @@ static const char copyright[] =
 "@(#) $Version: unifdef-2.11 $\n"
 "@(#) $FreeBSD$\n"
 "@(#) $Author: Tony Finch (d...@dotat.at) $\n"
-"@(#) $URL: http://dotat.at/prog/unifdef $\n"
+"@(#) $URL: https://dotat.at/prog/unifdef $\n"
 ;
 
 /* types of input lines: */

Modified: head/usr.bin/units/definitions.units
==
--- head/usr.bin/units/definitions.unitsSun Oct 29 05:27:22 2017
(r325094)
+++ head/usr.bin/units/definitions.unitsSun Oct 29 08:03:21 2017
(r325095)
@@ -332,7 +332,7 @@ lumen   cd sr
 luxcd sr/m2
 
 # EMU currencies have constant exchange rate against Euro since 1.1.1999.
-# See http://en.wikipedia.org/wiki/Euro for details.
+# See https://en.wikipedia.org/wiki/Euro for details.
 austriaschilling   1|13.7603 euro
 belgiumfranc