Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jan 1998 19:45:05 +0900
From:      Kazuhiko Kiriyama(System administrator) <kiri@kiri.toba-cmt.ac.jp>
To:        freebsd-ports@FreeBSD.ORG
Subject:   Re: Can't pkg_add due to INSTALL not found.
Message-ID:  <19980117194505T.kiri@kiri.toba-cmt.ac.jp>
In-Reply-To: Your message of "Thu, 15 Jan 1998 21:46:15 %2B0900" <19980115214615D.kiri@kiri.toba-cmt.ac.jp>
References:  <19980115214615D.kiri@kiri.toba-cmt.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
In Message-ID: <19980115214615D.kiri@kiri.toba-cmt.ac.jp>
Kazuhiko Kiriyama(System administrator) <kiri@kiri.toba-cmt.ac.jp> 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 <kiri@kiri.toba-cmt.ac.jp>    Toba National College of 
                                                     Maritime Technology
                         Department of Electronic Mechanical Engineering



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980117194505T.kiri>