From owner-FreeBSD-users-jp@jp.freebsd.org  Fri May  2 21:31:23 1997
Received: by jaz.jp.freebsd.org (8.8.5+2.7Wbeta5/8.7.3) id VAA24084
	Fri, 2 May 1997 21:31:23 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.5+2.7Wbeta5/8.7.3) with SMTP id VAA24079
	for <freebsd-users-jp@jp.freebsd.org>; Fri, 2 May 1997 21:31:22 +0900 (JST)
Received: from sranhc.sra.co.jp by sraigw.sra.co.jp (8.6.13/3.4W-sraigw)
	id VAA24338; Fri, 2 May 1997 21:31:06 +0900
Received: from sras63.sra.co.jp (root@sras63 [133.137.20.191]) by sranhc.sra.co.jp (8.6.13/3.4W-srambox) with ESMTP id VAA09429 for <freebsd-users-jp@jp.freebsd.org>; Fri, 2 May 1997 21:31:19 +0900
Received: from sras63.sra.co.jp (furuta@localhost [127.0.0.1]) by sras63.sra.co.jp (8.6.12+2.4W3/3.4W-sras63) with ESMTP id VAA09616 for freebsd-users-jp@jp.freebsd.org; Fri, 2 May 1997 21:31:17 +0900
Message-Id: <199705021231.VAA09616@sras63.sra.co.jp>
To: FreeBSD-users-jp@jp.freebsd.org
In-Reply-To: Your message of "Fri, 02 May 1997 19:23:57 +0900"
References: <9705021023.AA05543@janus.phys.s.u-tokyo.ac.jp>
X-Mailer: Mew version 1.69 on Emacs 19.28.7 / Mule 2.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Date: Fri, 02 May 1997 21:31:16 +0900
From: Atsushi Furuta <furuta@sra.co.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19]
X-Sequence: FreeBSD-users-jp 12347
Subject: [FreeBSD-users-jp 12347] Re: dependensy of packages ?
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

  $B$3$s$K$A$O!"(BSRA $B$N8EED$G$9!#(B

>> In article <9705021023.AA05543@janus.phys.s.u-tokyo.ac.jp>,
	Ginga Kawaguti <ginga@miranda.phys.s.u-tokyo.ac.jp> writes:

> From: "Kenichi Nishino" <nishino@tky0.attnet.or.jp>
> Subject: [FreeBSD-users-jp 12322] dependensy of packages ?
> Date: Fri, 2 May 1997 00:32:05 +0900
>> package$B$C$F$3$N0MB84X78$rH=CG$7$F!"F~$C$F$$$J$$$b$N$O!J<+F0E*$K!K(B
>> $BF~$l$F$/$l$k$N$G$O$J$$$N$G$7$?$C$1!);d$O$:$C$H$=$&G'<1$7$F$$$?$N(B
>> $B$G$9$,!#!J(Bfvwm95$BJU$j$b$3$NNc$G$O!)!K$b$A$m$s!"(Bpackage$B$r$=$N$h$&$K(B
>> $B$D$/$C$F$$$J$1$l$P$J$j$^$;$s$,!#4V0c$C$F$^$9$+!)(B

> $B$A$g$C$H!":G6a<+J,$GKA81$J$3$H$r$7$F$$$J$$$b$N$G(B...
> $B$$$,$$$H$=$&$@$C$?$N$+$bCN$l$^$;$s!#(B

  $B$3$&$$$&;~$K$O!"$A$c$s$HD4$Y$^$7$g$&$h!#(B2.2.1 $B$GD4$Y$F$_$^$7$?!#(B
$B$^$:!"(Bpkg_add(1) $B$N%^%K%e%"%k$G$9$,!"(B

  TECHNICAL DETAILS

     2.   Scan all the package dependencies (from @pkgdep directives, see
          pkg_create(1))  and make sure each one is met. If not, print the
          missing dependencies and terminate the installation.

$B$H$"$j$^$9$N$G!"(Binstall $B$rCf;_$7$=$&$G$9!#$7$+$7!"(Bpkg_add $B$N%=!<%9%3!<(B
$B%I$N$&$A!"(B

	/usr/src/usr.sbin/pkg_install/add/perform.c

$B$N4X?t(B pkg_do() $B$rFI$`$H!"$?$@C1$K(B @pkgdep $B$r3NG'$9$k$@$1$8$c$J$/$F!"(B
$B0MB885$,(B pkg_add $B$5$l$F$$$J$$$H$-$K$O!"$=$l$r(B pkg_add $B$7$F$$$k$3$H$,$o(B
$B$+$j$^$9!#(Bpath search $B$^$o$j$H$+$O$-$A$s$H$OFI$s$G$$$^$;$s$,!"$H$j$"$((B
$B$:E,Ev$J(B path $B$+$i(B package $B$r8!:w$9$k$0$i$$$O$7$F$$$k$h$&$G$9$M!#(B

# $B$H$3$m$G!"$3$N1QJ8$r=$@5$9$k$H$7$?$i!"$I$&=q$-D>$;$P$h$$$G$7$g$&$+(B?
# If not, recursively invoke pkg_add dependencies if possible, or print
# the missing dependencies and tereminate the installation.
# $B$GDL$8$k$G$7$g$&$+$M(B? 

>> > $B<B$O(B installer $B$N$H$3$m$G(B package $B$N@bL@$/$i$$$O8+$l$k$b$N$J$N$G$7$g$&$+(B?
>> $B$3$l$O(Bpkg_info$B%3%^%s%I$G@bL@$O8+$l$?5$$,$7$^$9!#(B

> pkg_info $B$C$F%$%s%9%H!<%k$7$?8e$+$i;H$&$b$N$G$9$h$M(B...?

  $B$3$l$@$C$F%^%K%e%"%k$K$A$c$s$H:\$C$F$^$9$h!#(Bman $B$r$R$-$^$7$g$&!#(B

     pkg-name ...
             The named packages are described.  A package name may either be
             the name of an installed package, the pathname to a package dis-
             tribution file or a URL to an ftp available package.

$B%$%s%9%H!<%k$9$kA0$N(B package $B$K$@$C$F;H$($^$9!#(B
--
$B8EED(B $BFX(B
furuta@sra.co.jp
