DF-5738 / fixbuild.sh
#!/bin/sh # DF-5738/DF-5739 fix validation build: apply fix.diff to the guest's # /usr/src/sys/netbt copy (the read-only host sys/ tree is NEVER # touched; vm.sh reset with-src restores this), rebuild the KLD with # the patched production sources. Run INSIDE the guest. set -e cd /root/hcih echo "== applying fix.diff to /usr/src/sys/netbt ==" cd /usr/src/sys/netbt patch --dry-run -p2 < /root/hcih/fix.diff patch -p2 < /root/hcih/fix.diff echo "== rebuilding KLD against patched sources ==" cd /root/hcih sh build.sh 2>&1 | tail -3 ls -l hci_link_harness.ko echo "== fix build OK ==" |