From owner-freebsd-ports Sat Jan 17 02:50:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA19558 for freebsd-ports-outgoing; Sat, 17 Jan 1998 02:50:47 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from kiri.toba-cmt.ac.jp (kiri.toba-cmt.ac.jp [202.26.248.91]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA19554 for ; Sat, 17 Jan 1998 02:50:42 -0800 (PST) (envelope-from kiri@kiri.toba-cmt.ac.jp) Received: from localhost (localhost [127.0.0.1]) by kiri.toba-cmt.ac.jp (8.8.8/8.8.7) with ESMTP id TAA22402 for ; Sat, 17 Jan 1998 19:45:16 +0900 (JST) To: freebsd-ports@FreeBSD.ORG Subject: Re: Can't pkg_add due to INSTALL not found. In-Reply-To: Your message of "Thu, 15 Jan 1998 21:46:15 +0900" <19980115214615D.kiri@kiri.toba-cmt.ac.jp> References: <19980115214615D.kiri@kiri.toba-cmt.ac.jp> X-Mailer: Mew version 1.92.4 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19980117194505T.kiri@kiri.toba-cmt.ac.jp> Date: Sat, 17 Jan 1998 19:45:05 +0900 From: Kazuhiko Kiriyama(System administrator) X-Dispatcher: imput version 971024 Lines: 49 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In Message-ID: <19980115214615D.kiri@kiri.toba-cmt.ac.jp> Kazuhiko Kiriyama(System administrator) wrote : > Running install with PRE-INSTALL for ja-mew-1.92.4.. > +INSTALL: not found > pkg_add: install script returned error status > pkg_add: 1 package addition(s) failed > % This comes from pkg_add's perform.c code. Patch to "/perform.c/1.37.2.3/Sun Jun 29 10:42:14 1997//TRELENG_2_2" shows bellow. --- perform.c~ Sun Jan 11 02:16:49 1998 +++ perform.c Sat Jan 17 19:28:47 1998 @@ -297,7 +297,7 @@ vsystem("chmod +x %s", REQUIRE_FNAME); /* be sure */ if (Verbose) printf("Running requirements file first for %s..\n", PkgName); - if (!Fake && vsystem("sh -c %s %s INSTALL", REQUIRE_FNAME, PkgName)) { + if (!Fake && vsystem("sh -c \"./%s %s INSTALL\"", REQUIRE_FNAME, PkgName)) { warnx("package %s fails requirements %s", pkg_fullname, Force ? "installing anyway" : "- not installed"); if (!Force) { @@ -312,7 +312,7 @@ vsystem("chmod +x %s", INSTALL_FNAME); /* make sure */ if (Verbose) printf("Running install with PRE-INSTALL for %s..\n", PkgName); - if (!Fake && vsystem("sh -c %s %s PRE-INSTALL", INSTALL_FNAME, PkgName)) { + if (!Fake && vsystem("sh -c \"./%s %s PRE-INSTALL\"", INSTALL_FNAME, PkgName)) { warnx("install script returned error status"); unlink(INSTALL_FNAME); code = 1; @@ -341,7 +341,7 @@ if (!NoInstall && fexists(INSTALL_FNAME)) { if (Verbose) printf("Running install with POST-INSTALL for %s..\n", PkgName); - if (!Fake && vsystem("sh -c %s %s POST-INSTALL", INSTALL_FNAME, PkgName)) { + if (!Fake && vsystem("sh -c \"./%s %s POST-INSTALL\"", INSTALL_FNAME, PkgName)) { warnx("install script returned error status"); unlink(INSTALL_FNAME); code = 1; I hope to test pkg_add in RELENG_2_2 by othes. ________________________________________________________________________ KIRIYAMA Kazuhiko Toba National College of Maritime Technology Department of Electronic Mechanical Engineering