Annotation of pkgsrc/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh, revision 1.20

1.1       gdt         1: #!/bin/sh
                      2: 
1.20    ! wiz         3: # $NetBSD: pkg_rolling-replace.sh,v 1.19 2008/05/02 19:04:03 apb Exp $
1.1       gdt         4: #<license>
                      5: # Copyright (c) 2006 BBN Technologies Corp.  All rights reserved.
                      6: #
                      7: # Redistribution and use in source and binary forms, with or without
                      8: # modification, are permitted provided that the following conditions
                      9: # are met:
                     10: # 1. Redistributions of source code must retain the above copyright
                     11: #    notice, this list of conditions and the following disclaimer.
                     12: # 2. Redistributions in binary form must reproduce the above copyright
                     13: #    notice, this list of conditions and the following disclaimer in the
                     14: #    documentation and/or other materials provided with the distribution.
                     15: # 3. Neither the name of BBN Technologies nor the names of its contributors
                     16: #    may be used to endorse or promote products derived from this software
                     17: #    without specific prior written permission.
                     18: #
                     19: # THIS SOFTWARE IS PROVIDED BY BBN TECHNOLOGIES AND CONTRIBUTORS ``AS IS''
                     20: # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     21: # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     22: # ARE DISCLAIMED.  IN NO EVENT SHALL BBN TECHNOLOGIES OR CONTRIBUTORS BE
                     23: # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
                     24: # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
                     25: # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
                     26: # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
                     27: # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
                     28: # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
                     29: # POSSIBILITY OF SUCH DAMAGE.
                     30: #
                     31: # Effort sponsored in part by the Defense Advanced Research Projects
                     32: # Agency (DARPA) and the Department of the Interior National Business
                     33: # Center under agreement number NBCHC050166.
                     34: #</license>
                     35: 
                     36: # REVIEW NOTATION LEGEND
                     37: #   XXX marks things that are broken/kludgy
                     38: #   TODO marks things that need to be done
                     39: #   FIXED marks items fixed, needs review and deletion of FIXED comment
                     40: 
                     41: # Items to be completed for initial release:
                     42: 
                     43: # TODO: move bulk of help into a real man page.
                     44: 
                     45: # Items for future work (some imply changes in pkgsrc, not necessarily here)
                     46: #
                     47: #   Make a pass over all packages for build depends, and rememeber
                     48: # which packages have been so checked.  Check newly unsafe packages.
                     49: # The current lazy evaluation can perhaps fail to do things in the
                     50: # right order.  Alternatively, explain why the current scheme is safe
                     51: # and preferred.
                     52: #
                     53: #   Consider expansion to update via binary packages.  This raises
                     54: # interesting questions about ABIs and binary builds
                     55: #
                     56: #   Deal with conflicts in a smarter way, perhaps more automatically.
                     57: # This is hard because just removing packages is not ok.
                     58: #
                     59: #   Handle foo being split into foo and foo-share.  Now, make replace
                     60: # of foo pulls in foo-share which conflicts with foo.  This needlessly
                     61: # loses.
                     62: #
                     63: 
1.3       tnn        64: # Substituted by pkgsrc at pre-configure time.
1.4       tnn        65: MAKE="@MAKE@"
1.15      tnn        66: AWK="@AWK@"
1.3       tnn        67: 
1.19      apb        68: if [ -z "$MAKECONF" ] ; then
                     69:     for mkconf in "@MAKECONF@" "@PREFIX@/etc/mk.conf" /etc/mk.conf ; do
                     70:        if [ -f "$mkconf" ] ; then
                     71:            MAKECONF="$mkconf"
                     72:            break
                     73:        fi
                     74:     done
                     75: fi
                     76: if [ -z "$MAKECONF" -o ! -f "$MAKECONF" ] ; then
                     77:     MAKECONF=/dev/null
                     78: fi
1.7       tnn        79: test -f "$MAKECONF" && test -z "$PKGSRCDIR" && PKGSRCDIR="` \
                     80:     printf '.include "%s"\n_print_pkgsrcdir:\n\t@echo "${PKGSRCDIR}"\n' \
1.8       tnn        81:     "$MAKECONF" | "$MAKE" -f - BSD_PKG_MK=1 _print_pkgsrcdir`"
1.19      apb        82: if [ -z "$PKGSRCDIR" ] ; then
                     83:     for dir in . .. ../.. /usr/pkgsrc ; do
                     84:        if [ -f "${dir}/mk/bsd.pkg.mk" ]; then
                     85:            case "${dir}" in
                     86:            /*) PKGSRCDIR="${dir}" ;;
                     87:            *)  PKGSRCDIR="$( cd "${dir}" >/dev/null 2>&1 && pwd )" ;;
                     88:            esac
                     89:            break
                     90:        fi
                     91:     done
                     92: fi
                     93: test -z "$PKGSRCDIR" && echo >&2 "Please set PKGSRCDIR" && exit 1
1.12      tnn        94: test -z "$PKG_CHK" && PKG_CHK="@PKG_CHK@"
                     95: test -z "$PKG_INFO" && PKG_INFO="@PKG_INFO_CMD@"
1.1       gdt        96: 
1.19      apb        97: export PKGSRCDIR
                     98: 
1.1       gdt        99: unset PKG_PATH || true  #or pkgsrc makefiles will complain
                    100: 
                    101: usage()
                    102: {
                    103:     echo "Usage: pkg_rolling-replace [opts]
                    104:         -h         This help
                    105:         -n         Don't actually do make replace
1.13      tnn       106:         -r         Just replace, don't create binary packages
                    107:         -s         Replace even if the ABIs are still compatible ("strict")
1.17      apb       108:         -u         Update outdated packages
1.1       gdt       109:         -v         Verbose
1.20    ! wiz       110:         -X <pkg>   exclude <pkg> from being rebuilt
1.17      apb       111:         -x <pkg>   exclude <pkg> from outdated check
1.1       gdt       112: 
                    113: pkg_rolling-replace does 'make replace' on one package at a time,
                    114: tsorting the packages being replaced according to their
                    115: interdependencies, which avoids most duplicate rebuilds.
                    116: 
                    117: pkg_rolling-replace can be used in one of two ways:
                    118: 
                    119:     - 'make replace' is unsafe in that, if the replaced package's ABI
                    120:       changes, its dependent packages may break.  If this happens, run
                    121:       'pkg_rolling-replace' (no arguments) to rebuild them against the
                    122:       new version.
                    123: 
                    124:     - 'pkg_chk -u' will delete all your mismatched (outdated)
                    125:       packages, then reinstall them one at a time, leaving you without
                    126:       those packages in the meantime.  'pkg_rolling-replace -u' will
                    127:       instead upgrade them in place, allowing you to keep using your
                    128:       system in the meantime (maybe...if you're lucky...because
                    129:       pkg_rolling-replace replaces the \"deepest\" dependency first,
                    130:       things could still break if that happens to be a fundamental
                    131:       library whose ABI has changed).
                    132: "
                    133:     exit 1
                    134: }
                    135: 
                    136: # pkg_rolling-replace's output is intermingled with pkgsrc make
                    137: # output.  Thus, we use a different prefix.  pkgsrc uses '===>' for
                    138: # major steps, and '=>' for minor ones.  Thus, we use 'RR>'.
                    139: 
                    140: OPI='RR>'
                    141: OPC='rr>' # continuation
                    142: 
                    143: 
                    144: # Echo the names of packages needing updates, versions stripped.  This
                    145: # has been tested with pkg_chk 1.76.  Older versions are not
                    146: # supported.  Newer versions may or may not work (patches welcome).
                    147: check_packages_mismatched()
                    148: {
1.12      tnn       149:     ${PKG_CHK} -u -q | while read line; do
1.1       gdt       150:         # duplicate output of pkg_chk to stderr (bypass $(...) or `...`)
1.11      tnn       151:         echo "${OPC} $line" 1>&2
1.1       gdt       152:        # Look for the first thing that looks like pkg-version rather
                    153:        # than category/pkg and remove the version.
                    154:         for word in $line; do
1.5       tnn       155:             if [ "$(echo $word | egrep '^[^/]+-[0-9][^-/]*$')" ]; then
                    156:                 echo $word | sed 's/-[0-9][^-]*$//'
1.1       gdt       157:                 break  #done with this line
                    158:             fi
                    159:         done
                    160:     done
                    161: }
                    162: 
                    163: # usage: check_packages_w_flag flag
                    164: # echo packages with flag=YES
                    165: check_packages_w_flag()
                    166: {
                    167:     _flag=$1; shift
1.12      tnn       168:     for pkgver in $(${PKG_INFO} -e '*'); do
                    169:         if ${PKG_INFO} -Bq $pkgver \
1.1       gdt       170:                 | egrep "^$_flag=[Yy][Ee][Ss]" > /dev/null; then
1.5       tnn       171:             echo $pkgver | sed 's/-[0-9][^-]*$//'
1.1       gdt       172:         fi
                    173:     done
                    174: }
                    175: 
                    176: # echo dep->pkg edges for all installed packages
                    177: depgraph_installed()
                    178: {
1.15      tnn       179:        ${PKG_INFO} -N '*' | ${AWK} '                                   \
                    180:                /^Information for/ {                                    \
                    181:                        pkg=$3; sub("-[0-9][^-]*:$", "", pkg);          \
                    182:                        print pkg" "pkg;                                \
                    183:                        state=1;                                        \
                    184:                }                                                       \
1.16      gdt       185:                /^\** PACKAGE MAY NOT BE DELETED \**$/ { state=3; }     \
1.15      tnn       186:                /^./ {                                                  \
                    187:                        if (state == 2) {                               \
                    188:                                dep=$1; sub("-[0-9][^-]*$", "", dep);   \
                    189:                                print dep" "pkg;                        \
                    190:                        }                                               \
                    191:                }                                                       \
                    192:                /^Built using/ {                                        \
                    193:                        state=2                                         \
                    194:                }                                                       \
                    195:        '
1.1       gdt       196: }
                    197: 
                    198: # usage: who_requires pkg --in-graph DEPGRAPH
                    199: who_requires()
                    200: {
                    201:     _target=$1; shift
                    202:     test "$1" = '--in-graph' && shift || return $((false))
                    203: 
                    204:     while [ $# -gt 0 ]; do
                    205:         _dep=$1; _pkg=$2; shift 2;
                    206:         if [ $_dep = $_target -a $_dep != $_pkg ]; then
                    207:             echo $_pkg
                    208:         fi
                    209:     done
                    210: }
                    211: 
                    212: # usage: is_member x list
                    213: # return true (0) if x appears in list, false (1) otherwise
                    214: is_member()
                    215: {
                    216:     _x="$1"; shift;
                    217:     while [ $# -gt 0 -a "$1" != "$_x" ]; do
                    218:         shift
                    219:     done
                    220: 
                    221:     test $# -gt 0
                    222: }
                    223: 
                    224: # usage: exclude list1 --from list2
                    225: # echo list2 with items from list1 excluded
                    226: exclude()
                    227: {
                    228:     _excl=
                    229:     while [ $# -gt 0 -a $1 != "--from" ]; do
                    230:         _excl="$_excl $1"
                    231:         shift
                    232:     done
                    233:     if [ $# -gt 0 ]; then
                    234:         shift  #discard '--from'
                    235:     fi
                    236:     while [ $# -gt 0 ]; do
                    237:         is_member $1 $_excl || echo $1
                    238:         shift
                    239:     done
                    240: }
                    241: 
                    242: # usage: uniquify list
                    243: # just does sort -u on list (equiv. to sort | uniq)
                    244: # CAUTION: reorders list
                    245: uniqify()
                    246: {
                    247:     for _x in $*; do echo $_x; done | sort -u
                    248: }
                    249: 
                    250: verbose()
                    251: {
                    252:     if [ -n "$opt_v" ]; then
                    253:         echo "$@"
                    254:     fi
                    255: }
                    256: 
                    257: vsleep()
                    258: {
                    259:     if [ -n "$opt_v" ]; then
                    260:         sleep $1
                    261:     fi
                    262: }
                    263: 
1.13      tnn       264: abort()
                    265: {
                    266:        echo "*** $1"
                    267:        echo "*** Please read the errors listed above, fix the problem,"
                    268:        echo "*** then re-run pkg_rolling-replace to continue."
                    269:        exit 1
                    270: }
                    271: 
1.1       gdt       272: ######################################################################
                    273: ##
                    274: ## main()
                    275: ##
                    276: 
                    277: EXCLUDE=
                    278: 
1.17      apb       279: args=$(getopt hnursvx:X: $*)
1.1       gdt       280: if [ $? -ne 0 ]; then
                    281:     opt_h=1
                    282: fi
                    283: set -- $args
                    284: while [ $# -gt 0 ]; do
                    285:     case "$1" in
                    286:         -h) opt_h=1 ;;
                    287:         -n) opt_n=1 ;;
1.13      tnn       288:         -r) opt_r=1 ;;
                    289:         -s) opt_s=1 ;;
1.1       gdt       290:         -u) opt_u=1 ;;
                    291:         -v) opt_v=1 ;;
                    292:         -x) EXCLUDE="$EXCLUDE $(echo $2 | sed 's/,/ /g')" ; shift ;;
1.17      apb       293:         -X) REALLYEXCLUDE="$REALLYEXCLUDE $(echo $2 | sed 's/,/ /g')" ; shift ;;
1.1       gdt       294:         --) shift; break ;;
                    295:     esac
                    296:     shift
                    297: done
                    298: 
                    299: if [ -n "$opt_h" ]; then
                    300:     usage
                    301: fi
                    302: 
1.13      tnn       303: if [ -n "$opt_s" ]; then
                    304:     UNSAFE_VAR=unsafe_depends_strict
                    305: else
                    306:     UNSAFE_VAR=unsafe_depends
                    307: fi
                    308: 
1.1       gdt       309: MISMATCH_TODO=
                    310: if [ -n "$opt_u" ]; then
                    311:     echo "${OPI} Checking for mismatched installed packages using pkg_chk"
                    312:     MISMATCH_TODO=$(check_packages_mismatched)
                    313:     echo "${OPI} Excluding the following mismatched packages:"
                    314:     echo "${OPC} EXCLUDE=[$EXCLUDE]"
                    315:     MISMATCH_TODO=$(exclude $EXCLUDE --from $MISMATCH_TODO)
                    316: fi
                    317: 
                    318: echo "${OPI} Checking for rebuild-requested installed packages (rebuild=YES)"
                    319: REBUILD_TODO=$(check_packages_w_flag 'rebuild')
                    320: 
1.13      tnn       321: echo "${OPI} Checking for unsafe installed packages (${UNSAFE_VAR}=YES)"
                    322: UNSAFE_TODO=$(check_packages_w_flag ${UNSAFE_VAR})
1.1       gdt       323: 
                    324: # DEPGRAPH_INSTALLED is rebuilt each round.  DEPGRAPH_SRC will collect
                    325: # edges that we discover using 'make show-depends', but that weren't
                    326: # listed as depends by the installed version of a package, and
                    327: # DEPENDS_CHECKED lists packages for which we've already done that
                    328: # check.
                    329: DEPGRAPH_INSTALLED=
                    330: DEPGRAPH_SRC=
                    331: DEPENDS_CHECKED=
                    332: 
                    333: verbose "${OPI} Packages to rebuild:"
                    334: verbose "${OPC} MISMATCH_TODO=[$(echo $MISMATCH_TODO)]"  #strip newlines
                    335: verbose "${OPC} REBUILD_TODO=[$(echo $REBUILD_TODO)]"
                    336: verbose "${OPC} UNSAFE_TODO=[$(echo $UNSAFE_TODO)]"
                    337: vsleep 2
                    338: 
                    339: REPLACE_TODO=$(uniqify $MISMATCH_TODO $REBUILD_TODO $UNSAFE_TODO)
1.17      apb       340: REPLACE_TODO=$(exclude $REALLYEXCLUDE --from $REPLACE_TODO)
1.1       gdt       341: depgraph_built=0
                    342: 
                    343: while [ -n "$REPLACE_TODO" ]; do
                    344:     # don't rebuild depgraph if we continued from new-depends step below
                    345:     if [ "$depgraph_built" -eq 0 ]; then
                    346:         echo "${OPI} Building dependency graph for installed packages"
                    347:         DEPGRAPH_INSTALLED=$(depgraph_installed)
                    348:         depgraph_built=1
                    349:     fi
                    350: 
                    351:     echo "${OPI} Tsorting dependency graph"
                    352:     TSORTED=$(echo $DEPGRAPH_INSTALLED $DEPGRAPH_SRC | tsort)
                    353:     for pkg in $TSORTED; do
                    354:         if is_member $pkg $REPLACE_TODO; then
                    355:             break;
                    356:         fi
                    357:     done
1.15      tnn       358:     pkgdir=$(${PKG_INFO} -Bq $pkg | ${AWK} -F= '/PKGPATH=/{print $2}' | sed -e 's/^ //')
1.1       gdt       359:     echo "${OPI} Selecting $pkg ($pkgdir) as next package to replace"
                    360:     sleep 1
                    361: 
                    362:     # Newer versions in pkgsrc sometimes have more depends than are
                    363:     # recorded for the installed version (this is entirely to be
                    364:     # expected as packages are split, renamed, and add new features).
                    365:     # When this happens, add the new edges to the graph and re-tsort.
                    366:     # Don't re-tsort if the new edges were already installed once
                    367:     # (otherwise we'll go into a loop).
                    368: 
                    369:     # XXX I'm not sure that DEPENDS_CHECKED is necessary, or whether
                    370:     # simply ignoring new deps that aren't in $REPLACE_TODO would have
                    371:     # been sufficient.  The DEPENDS_CHECKED approach causes one extra
                    372:     # tsort in some cases, which isn't overly expensive.
                    373: 
                    374:     # XXX After tsorting and choosing what to 'make replace', we
                    375:     # filter out packages that aren't already installed and marked for
                    376:     # replacement.  This is safe, since uninstalled depends will be
                    377:     # pulled in automatically by 'make replace'; but in rare cases it
                    378:     # might be non-optimal, leading to a duplicate rebuild that we
                    379:     # would have avoided had we selected the uninstalled package in
                    380:     # tsorted order and run 'make install' on it.  This seems like
                    381:     # such a rare case that the added complexity isn't worth it.
                    382: 
                    383:     if ! is_member $pkg $DEPENDS_CHECKED; then
                    384:        echo "${OPI} Checking if $pkg has new depends..."
1.12      tnn       385:        OLD_DEPENDS=$(${PKG_INFO} -Nq $pkg | sed 's/-[0-9][^-]*$//')
1.1       gdt       386:        NEW_DEPENDS=
                    387:        cd "$PKGSRCDIR/$pkgdir"
                    388:        bdeps=$(${MAKE} show-depends VARNAME=BUILD_DEPENDS)
                    389:        rdeps=$(${MAKE} show-depends)
                    390:        for depver in $bdeps $rdeps; do
1.10      tnn       391:            dep=$(echo $depver | sed -e 's/[:[].*$/0/' -e 's/[<>]=/-/' \
                    392:                -e 's/-[0-9][^-]*$//')
1.1       gdt       393:            if ! is_member $dep $OLD_DEPENDS $NEW_DEPENDS; then
                    394:                NEW_DEPENDS="$NEW_DEPENDS $dep"
                    395:                DEPGRAPH_SRC="$DEPGRAPH_SRC $dep $pkg"
                    396:            fi
                    397:        done
                    398:        DEPENDS_CHECKED="$DEPENDS_CHECKED $pkg"
                    399:        if [ -n "$NEW_DEPENDS" ]; then
                    400:            echo "${OPI} $pkg has the following new depends (need to re-tsort):"
                    401:            echo "${OPC} [$(echo $NEW_DEPENDS)]"
                    402:            sleep 2
                    403:            continue
                    404:        fi
                    405:     fi
                    406: 
                    407:     # Do make replace, with clean before, and package and clean afterwards.
1.12      tnn       408:     echo "${OPI} Replacing $(${PKG_INFO} -e $pkg)"
1.13      tnn       409:     fail=
                    410:     cmd="cd \"$PKGSRCDIR/$pkgdir\" && ${MAKE} clean && ${MAKE} replace || fail=1"
                    411:     if [ -n "$opt_n" ]; then
                    412:        echo "${OPI} Would run: $cmd"
                    413:     else
                    414:        eval "$cmd"
                    415:        [ -z "$fail" ] || abort "'make replace' failed for package $pkg."
                    416:     fi
1.1       gdt       417:     if [ -z "$opt_n" ]; then
1.13      tnn       418:        [ -z "$(${PKG_INFO} -Q unsafe_depends_strict $pkg)" ] || \
                    419:            abort "package $pkg still has unsafe_depends_strict."
                    420:        [ -z "$(${PKG_INFO} -Q unsafe_depends $pkg)" ] || \
                    421:            abort "package $pkg still has unsafe_depends."
                    422:        [ -z "$(${PKG_INFO} -Q rebuild $pkg)" ] || \
                    423:            abort "package $pkg is still requested to be rebuilt."
1.1       gdt       424:     fi
1.18      gdt       425:     # If -r not given, make a binary package.
1.13      tnn       426:     if [ -z "$opt_r" ]; then
                    427:        echo "${OPI} Packaging $(${PKG_INFO} -e $pkg)"
1.18      gdt       428:            cmd="${MAKE} package || fail=1"
1.13      tnn       429:        if [ -n "$opt_n" ]; then
                    430:            echo "${OPI} Would run: $cmd"
                    431:        else
                    432:            eval "$cmd"
                    433:            [ -z "$fail" ] || abort "'make package' failed for package $pkg."
                    434:        fi
1.1       gdt       435:     fi
1.18      gdt       436:     # Clean
                    437:     if [ -z "$opt_n" ]; then
                    438:        ${MAKE} clean || abort "'make clean' failed for package $pkg."
                    439:     fi
                    440: 
1.1       gdt       441:     sleep 1
                    442: 
                    443:     # remove just-replaced package from all *_TODO lists
                    444:     MISMATCH_TODO=$(exclude $pkg --from $MISMATCH_TODO)
                    445:     REBUILD_TODO=$(exclude $pkg --from $REBUILD_TODO)
                    446:     UNSAFE_TODO=$(exclude $pkg --from $UNSAFE_TODO)
                    447: 
1.13      tnn       448:     echo "${OPI} Re-checking for unsafe installed packages (${UNSAFE_VAR}=YES)"
1.1       gdt       449:     if [ -n "$opt_n" ]; then
                    450:        # With -n, the replace didn't happen, and thus the packages that would
                    451:        # have been marked unsafe_depends=YES were not.  Add the set that
                    452:        # would have been marked so we can watch what pkg_rolling-replace
                    453:        # would have done (approximately).
                    454:         UNSAFE_TODO=$(uniqify $UNSAFE_TODO \
                    455:             $(who_requires $pkg --in-graph $DEPGRAPH_INSTALLED))
                    456:         sleep 1
                    457:     else
1.13      tnn       458:         UNSAFE_TODO=$(check_packages_w_flag ${UNSAFE_VAR})
1.1       gdt       459:     fi
                    460: 
                    461:     verbose "${OPI} Packages to rebuild:"
                    462:     verbose "${OPC} MISMATCH_TODO=[$(echo $MISMATCH_TODO)]"  #strips newlines
                    463:     verbose "${OPC} REBUILD_TODO=[$(echo $REBUILD_TODO)]"
                    464:     verbose "${OPC} UNSAFE_TODO=[$(echo $UNSAFE_TODO)]"
                    465:     vsleep 4
                    466: 
                    467:     REPLACE_TODO=$(uniqify $MISMATCH_TODO $REBUILD_TODO $UNSAFE_TODO)
1.17      apb       468:     REPLACE_TODO=$(exclude $REALLYEXCLUDE --from $REPLACE_TODO)
1.1       gdt       469:     depgraph_built=0
                    470: done
                    471: 
                    472: echo "${OPI} No more packages to replace; done."

CVSweb <webmaster@jp.NetBSD.org>