raymond.meyer%rambler.ru@localhost writes: > Say I built everything with ./build.sh script. Then I want to go to > src/usr.sbin/cron and add some debugging code. I don't want to > rerun ./build.sh again, how can quickly I rebuild and reinstall into > destdir only cron? Invoke the make wrapper from TOOLDIR. This example has my paths as set up via BUILD-NetBSD (which just runs build.sh). It does a clean, a build, installing to DESTDIR, and then onto the running system. I just realized this was on a netbsd-4 box so I have to go do the install again From the netbsd-4 source tree. One nice thing is that you can run the native cpu wrapper, or other cpus (as long as you've done build.sh once), and thereby test changes for being ok on multiple architectures easily. gdt 10 ~/NetBSD-5/src/usr.sbin/cron > /usr/obj/gdt-5/tools/bin/nbmake-i386 clean rm -f cron.o database.o do_command.o entry.o env.o job.o misc.o popen.o user.o cron.ln database.ln do_command.ln entry.ln env.ln job.ln misc.ln popen.ln user.ln rm -f cron rm -f a.out [Ee]rrs mklog core *.core .gdbinit gdt 11 ~/NetBSD-5/src/usr.sbin/cron > /usr/obj/gdt-5/tools/bin/nbmake-i386 rm -f .gdbinit echo "set solib-absolute-prefix /usr/obj/gdt-5/destdir/i386" > .gdbinit # compile cron/cron.o /usr/obj/gdt-5/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Werror -I/n0/gdt/NetBSD-5/src/usr.sbin/cron -DLOGIN_CAP -nostdinc -isystem /usr/obj/gdt-5/destdir/i386/usr/include -c /n0/gdt/NetBSD-5/src/usr.sbin/cron/cron.c # compile cron/database.o /usr/obj/gdt-5/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Werror -I/n0/gdt/NetBSD-5/src/usr.sbin/cron -DLOGIN_CAP -nostdinc -isystem /usr/obj/gdt-5/destdir/i386/usr/include -c /n0/gdt/NetBSD-5/src/usr.sbin/cron/database.c # compile cron/do_command.o /usr/obj/gdt-5/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Werror -I/n0/gdt/NetBSD-5/src/usr.sbin/cron -DLOGIN_CAP -nostdinc -isystem /usr/obj/gdt-5/destdir/i386/usr/include -c /n0/gdt/NetBSD-5/src/usr.sbin/cron/do_command.c # compile cron/entry.o /usr/obj/gdt-5/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Werror -I/n0/gdt/NetBSD-5/src/usr.sbin/cron -DLOGIN_CAP -nostdinc -isystem /usr/obj/gdt-5/destdir/i386/usr/include -c /n0/gdt/NetBSD-5/src/usr.sbin/cron/entry.c # compile cron/env.o /usr/obj/gdt-5/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Werror -I/n0/gdt/NetBSD-5/src/usr.sbin/cron -DLOGIN_CAP -nostdinc -isystem /usr/obj/gdt-5/destdir/i386/usr/include -c /n0/gdt/NetBSD-5/src/usr.sbin/cron/env.c # compile cron/job.o /usr/obj/gdt-5/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Werror -I/n0/gdt/NetBSD-5/src/usr.sbin/cron -DLOGIN_CAP -nostdinc -isystem /usr/obj/gdt-5/destdir/i386/usr/include -c /n0/gdt/NetBSD-5/src/usr.sbin/cron/job.c # compile cron/misc.o /usr/obj/gdt-5/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Werror -I/n0/gdt/NetBSD-5/src/usr.sbin/cron -DLOGIN_CAP -nostdinc -isystem /usr/obj/gdt-5/destdir/i386/usr/include -c -Wno-pointer-sign /n0/gdt/NetBSD-5/src/usr.sbin/cron/misc.c # compile cron/popen.o /usr/obj/gdt-5/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Werror -I/n0/gdt/NetBSD-5/src/usr.sbin/cron -DLOGIN_CAP -nostdinc -isystem /usr/obj/gdt-5/destdir/i386/usr/include -c /n0/gdt/NetBSD-5/src/usr.sbin/cron/popen.c # compile cron/user.o /usr/obj/gdt-5/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Werror -I/n0/gdt/NetBSD-5/src/usr.sbin/cron -DLOGIN_CAP -nostdinc -isystem /usr/obj/gdt-5/destdir/i386/usr/include -c /n0/gdt/NetBSD-5/src/usr.sbin/cron/user.c # link cron/cron /usr/obj/gdt-5/tools/bin/i386--netbsdelf-gcc -B/usr/obj/gdt-5/destdir/i386/usr/lib/ -B/usr/obj/gdt-5/destdir/i386/usr/lib/ -Wl,-nostdlib -Wl,--fatal-warnings -o cron cron.o database.o do_command.o entry.o env.o job.o misc.o popen.o user.o -lutil -L/usr/obj/gdt-5/destdir/i386/usr/lib -Wl,-rpath-link,/usr/obj/gdt-5/destdir/i386/lib -L/usr/obj/gdt-5/destdir/i386/lib -Wl,-rpath-link,/usr/obj/gdt-5/destdir/i386/usr/lib -L/usr/obj/gdt-5/destdir/i386/usr/lib # format cron/cron.cat8 PATH=/usr/obj/gdt-5/tools/lib/groff:${PATH} /usr/obj/gdt-5/tools/bin/nbnroff -mandoc /n0/gdt/NetBSD-5/src/usr.sbin/cron/cron.8 > cron.cat8.tmp && mv cron.cat8.tmp cron.cat8 gdt 12 ~/NetBSD-5/src/usr.sbin/cron > /usr/obj/gdt-5/tools/bin/nbmake-i386 install # install /usr/obj/gdt-5/destdir/i386/usr/sbin/cron /usr/obj/gdt-5/tools/bin/i386--netbsdelf-install -U -M /usr/obj/gdt-5/destdir/i386/METALOG -D /usr/obj/gdt-5/destdir/i386 -h sha1 -N /n0/gdt/NetBSD-5/src/etc -c -p -r -o root -g wheel -m 555 cron /usr/obj/gdt-5/destdir/i386/usr/sbin/cron # install /usr/obj/gdt-5/destdir/i386/usr/share/man/cat8/cron.0 /usr/obj/gdt-5/tools/bin/i386--netbsdelf-install -U -M /usr/obj/gdt-5/destdir/i386/METALOG -D /usr/obj/gdt-5/destdir/i386 -h sha1 -N /n0/gdt/NetBSD-5/src/etc -c -p -r -o root -g wheel -m 444 cron.cat8 /usr/obj/gdt-5/destdir/i386/usr/share/man/cat8/cron.0 gdt 13 ~/NetBSD-5/src/usr.sbin/cron > sudo /usr/obj/gdt-5/tools/bin/nbmake-i386 DESTDIR=/ install Password: # install //usr/sbin/cron /usr/obj/gdt-5/tools/bin/i386--netbsdelf-install -U -M //METALOG -D / -h sha1 -N /n0/gdt/NetBSD-5/src/etc -c -p -r -o root -g wheel -m 555 cron //usr/sbin/cron # install //usr/share/man/cat8/cron.0 /usr/obj/gdt-5/tools/bin/i386--netbsdelf-install -U -M //METALOG -D / -h sha1 -N /n0/gdt/NetBSD-5/src/etc -c -p -r -o root -g wheel -m 444 cron.cat8 //usr/share/man/cat8/cron.0 # install //usr/share/man/html8/cron.html /usr/obj/gdt-5/tools/bin/i386--netbsdelf-install -U -M //METALOG -D / -h sha1 -N /n0/gdt/NetBSD-5/src/etc -c -p -r -o root -g wheel -m 444 cron.html8 //usr/share/man/html8/cron.html # install //usr/share/man/man8/cron.8 /usr/obj/gdt-5/tools/bin/i386--netbsdelf-install -U -M //METALOG -D / -h sha1 -N /n0/gdt/NetBSD-5/src/etc -c -p -r -o root -g wheel -m 444 /n0/gdt/NetBSD-5/src/usr.sbin/cron/cron.8 //usr/share/man/man8/cron.8
Attachment:
pgpgI0co97bXh.pgp
Description: PGP signature