git: Makefile.inc1: Remove the obsolete crunch from bootstrap tools

2018-07-01 Thread Aaron LI


commit d3cfb461e4516e842e463c68b46ecf19bcb483a1
Author: Aaron LI 
Date:   Fri Jun 15 12:41:43 2018 +0800

Makefile.inc1: Remove the obsolete crunch from bootstrap tools

Since rescue build is now detached from buildworld, so crunchgen(1)
and crunchide(1) are no longer needed by the buildworld.

Summary of changes:
 Makefile.inc1 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d3cfb461e4516e842e463c68b46ecf19bcb483a1


-- 
DragonFly BSD source repository


git: vi(1): Do not build iconv(3) support for the rescue version

2018-07-01 Thread Aaron LI


commit c4d5b74b53b49427ec4ed19ed3abd071bedff5c6
Author: Aaron LI 
Date:   Mon Jun 11 12:35:33 2018 +0800

vi(1): Do not build iconv(3) support for the rescue version

The iconv(3) support requires dynamic library access, which is impossible 
for
the statically liked rescue version, so disable it.

Taken-from: FreeBSD

Summary of changes:
 usr.bin/vi/Makefile | 8 ++--
 usr.bin/vi/config.h | 4 ++--
 2 files changed, 8 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c4d5b74b53b49427ec4ed19ed3abd071bedff5c6


-- 
DragonFly BSD source repository


git: mk/crunchgen: Remove the unimplemented ${_+_}

2018-07-01 Thread Aaron LI


commit b316b9ce72d3ca0de07b830c2d2f3bbd235aa959
Author: Aaron LI 
Date:   Mon Jul 2 09:27:29 2018 +0800

mk/crunchgen: Remove the unimplemented ${_+_}

The ${_+_} make variable is introduced by FreeBSD in revision 133369,
but we don't implement it, so remove it.

Summary of changes:
 share/mk/bsd.crunchgen.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b316b9ce72d3ca0de07b830c2d2f3bbd235aa959


-- 
DragonFly BSD source repository


git: initrd: Add -lpthread for hammer2

2018-07-01 Thread Aaron LI


commit fdfef0004ea9721dabcef8655608993b3dada3e9
Author: Aaron LI 
Date:   Mon Jul 2 10:01:19 2018 +0800

initrd: Add -lpthread for hammer2

The 'pthread' library was lost from commit
8692d13918892c3f474fc05d37f17fe125bb61bd when rebasing.

Summary of changes:
 initrd/sbin.libcrypto/Makefile | 1 +
 1 file changed, 1 insertion(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fdfef0004ea9721dabcef8655608993b3dada3e9


-- 
DragonFly BSD source repository


git: initrd: Fix parallel build

2018-07-01 Thread Aaron LI


commit 7279052efaf1dc2bca86b53993d0d71ed106b308
Author: Aaron LI 
Date:   Mon Jul 2 09:30:20 2018 +0800

initrd: Fix parallel build

Add explicit target orders to oinit/Makefile, because such orders are
set in  but not in .

Since the make targets (e.g., depend, all, install, clean) are now
ordered, so remove 'clean cleandepend' from the same command as
'depend all install'.

Also allow defining the 'NO_CLEAN" variable to not clean previous builds.

Summary of changes:
 initrd/Makefile   | 9 +
 initrd/oinit/Makefile | 2 ++
 2 files changed, 7 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7279052efaf1dc2bca86b53993d0d71ed106b308


-- 
DragonFly BSD source repository


git: mk/crunchgen: Fix parallel builds by ordering targets

2018-07-01 Thread Aaron LI


commit f5d8234e8535a5fbbccf83bdb9a832e1d5f36088
Author: Aaron LI 
Date:   Mon Jul 2 09:06:31 2018 +0800

mk/crunchgen: Fix parallel builds by ordering targets

Order the build targets (clean, cleandepend, cleandir, obj, objlink,
depend, all, install) to avoid the race in parallel building.  This
change is based on .  Meanwhile, add minor comments to
make the hierarchy clearer in .

Add the 'depend' target for the crunchdir's.

Summary of changes:
 share/mk/bsd.crunchgen.mk | 9 ++---
 share/mk/bsd.subdir.mk| 6 +++---
 2 files changed, 9 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f5d8234e8535a5fbbccf83bdb9a832e1d5f36088


-- 
DragonFly BSD source repository


git: install(1): Add a -N option, improving NetBSD and FreeBSD compatibility

2018-07-01 Thread Francois Tigeot


commit 4f9e410836f2d666040f815d7ab405320c05f647
Author: François Tigeot 
Date:   Sun Jul 1 22:52:31 2018 +0200

install(1): Add a -N option, improving NetBSD and FreeBSD compatibility

* -N is the standard NetBSD and FreeBSD install(1) option to use
  alternative user and group databases

* DragonFly previously used -L to do the same thing. Keep this option
  but warn to use -N instead.

Summary of changes:
 usr.bin/xinstall/install.1  | 27 ++-
 usr.bin/xinstall/xinstall.c | 18 +++---
 2 files changed, 29 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4f9e410836f2d666040f815d7ab405320c05f647


-- 
DragonFly BSD source repository


git: initrd: Crunch lvm(8) with sbin.libcrypto

2018-07-01 Thread Aaron LI


commit 8692d13918892c3f474fc05d37f17fe125bb61bd
Author: Aaron LI 
Date:   Sat Jun 9 23:39:49 2018 +0800

initrd: Crunch lvm(8) with sbin.libcrypto

Do not build lvm(8) alone since it can be crunched together with
sbin.libcrypto which contains cryptsetup(8).  This also saves about
400KB space.

Tidy up the sbin.libcrypto Makefile in the meantime.

Summary of changes:
 initrd/Makefile|  4 +-
 initrd/sbin.libcrypto/Makefile | 48 ---
 initrd/sbin.lvm/Makefile   | 89 --
 3 files changed, 35 insertions(+), 106 deletions(-)
 delete mode 100644 initrd/sbin.lvm/Makefile

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8692d13918892c3f474fc05d37f17fe125bb61bd


-- 
DragonFly BSD source repository


git: initrd: Better check the created initrd before installing

2018-07-01 Thread Aaron LI


commit f170ef5974344c8139485bbe2a8a2cd83c9e5ea5
Author: Aaron LI 
Date:   Sat Jun 9 23:47:31 2018 +0800

initrd: Better check the created initrd before installing

Improve mkinitrd.sh to check /sbin/oinit, /bin/sh and /etc/rc on the
created initrd image to avoid installing a broken one.

Update to use "install" to install the created initrd image to ensure
user/group of root/wheel and mode of 444.

(The command to remove the temporary initrd image was committed in a
previous patch due to squashing.)

Summary of changes:
 initrd/mkinitrd.sh | 11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f170ef5974344c8139485bbe2a8a2cd83c9e5ea5


-- 
DragonFly BSD source repository


git: cryptsetup(8): Tidy up Makefile

2018-07-01 Thread Aaron LI


commit 6695d7e4812c9cd0e564ac95224b3cbfe4b5a060
Author: Aaron LI 
Date:   Sat Jun 9 23:35:32 2018 +0800

cryptsetup(8): Tidy up Makefile

Summary of changes:
 gnu/sbin/cryptsetup/Makefile | 30 +-
 1 file changed, 13 insertions(+), 17 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6695d7e4812c9cd0e564ac95224b3cbfe4b5a060


-- 
DragonFly BSD source repository


git: mk/crunchgen: Remove the unused CRUNCH_BUILDTOOLS support/hack

2018-07-01 Thread Aaron LI


commit eba33b2efa3616876d9268b0da3012077131c8da
Author: Aaron LI 
Date:   Sat Jun 9 13:31:22 2018 +0800

mk/crunchgen: Remove the unused CRUNCH_BUILDTOOLS support/hack

The CRUNCH_BUILDTOOLS is commented out in initrd/bin/Makefile.
And we already use pregenerated headers for bin/sh in commit
cbb07feb2f78629297b21609f526fcec6e4ad8ee .

Summary of changes:
 initrd/bin/Makefile   |  2 --
 share/mk/bsd.crunchgen.mk | 12 
 2 files changed, 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/eba33b2efa3616876d9268b0da3012077131c8da


-- 
DragonFly BSD source repository


git: lvm(8): Do not build readline support for the rescue version

2018-07-01 Thread Aaron LI


commit 8f0a90f5d4e9471043d01f7ebda91226c63f6786
Author: Aaron LI 
Date:   Sat Jun 9 23:36:43 2018 +0800

lvm(8): Do not build readline support for the rescue version

Make use of the RESCUE make variable to not build the readline support
for its rescue version (to be installed at /rescue).

Clean up the Makefile.

Summary of changes:
 gnu/sbin/lvm/Makefile | 39 ---
 1 file changed, 20 insertions(+), 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8f0a90f5d4e9471043d01f7ebda91226c63f6786


-- 
DragonFly BSD source repository


git: mk/prog: Support CRUNCH_CFLAGS for crunchgen's buildopts

2018-07-01 Thread Aaron LI


commit af6593369b649c4cbafba7e13d587c9fb8857ace
Author: Aaron LI 
Date:   Sat Jun 9 19:22:14 2018 +0800

mk/prog: Support CRUNCH_CFLAGS for crunchgen's buildopts

Taken-from: FreeBSD

Summary of changes:
 share/mk/bsd.prog.mk | 4 
 1 file changed, 4 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/af6593369b649c4cbafba7e13d587c9fb8857ace


-- 
DragonFly BSD source repository


git: mk/crunchgen: Allow to use symlinks for crunched programs

2018-07-01 Thread Aaron LI


commit a4e18c0f6d890e6df865a8832a5dc07dfffe7c02
Author: Aaron LI 
Date:   Sat Jun 9 13:42:51 2018 +0800

mk/crunchgen: Allow to use symlinks for crunched programs

Add support to create symlinks (i.e., soft links) instead of hard links
for the crunched programs.

If the variable CRUNCH_USE_SYMLINKS is set (default: not set), then use
symlinks instead of hard links.

Summary of changes:
 initrd/Makefile.inc|  3 +++
 initrd/bin/Makefile|  3 +++
 initrd/sbin.libcrypto/Makefile |  3 +++
 initrd/sbin/Makefile   |  3 +++
 share/mk/bsd.crunchgen.mk  | 30 ++
 5 files changed, 34 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a4e18c0f6d890e6df865a8832a5dc07dfffe7c02


-- 
DragonFly BSD source repository


git: mk/crunchgen: Do not hard code the path to the source directories

2018-07-01 Thread Aaron LI


commit 8d50421afe51abbc28166f78d133b69d49ffd5ba
Author: Aaron LI 
Date:   Sat Jun 9 13:39:18 2018 +0800

mk/crunchgen: Do not hard code the path to the source directories

Introduce the variable CRUNCH_PATH_${D} to specify the path to the
base source directory ${D}.

Update the description and initrd makefiles accordingly.

Summary of changes:
 initrd/bin/Makefile| 2 ++
 initrd/sbin.libcrypto/Makefile | 3 +++
 initrd/sbin/Makefile   | 2 ++
 share/mk/bsd.crunchgen.mk  | 5 +++--
 4 files changed, 10 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8d50421afe51abbc28166f78d133b69d49ffd5ba


-- 
DragonFly BSD source repository