No package installation method works
Dylan Reinhold
dylan at ocnetworking.com
Thu Oct 21 01:01:28 PDT 2010
On 10/20/2010 11:30 PM, Torbjorn Granlund wrote:
Someone replied privately:
The problem here is that you are using make instead of bmake (which
needs to be used for pkgsrc things).
Ah, this indeed work. I'll try to remember this when I, in some months,
need to install some additional pacage.
Thanks to all who replied!
What if make gave a 'hint' when run in /usr/pkgsrc.
Something like
# make
make called in /usr/pkgsrc/www/zope, did you mean bmake?
make: no target to make.
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index 5294f03..2f744a9 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -887,6 +887,7 @@ main(int argc, char **argv)
char curdir[MAXPATHLEN]; /* startup directory */
char objdir[MAXPATHLEN]; /* where we chdir'ed to */
const char *make_flags;
+ const char *bmake_hint_path = "/usr/pkgsrc";
/*------------------------------------------------------------*
* This section initializes stuff that require no input.
@@ -953,6 +954,8 @@ main(int argc, char **argv)
Var_SetGlobal(".CURDIR", curdir);
Var_SetGlobal(".OBJDIR", objdir);
+ if(strspn(bmake_hint_path,curdir) == strlen(bmake_hint_path))
+ fprintf(stderr,"make called in %s, did you mean
bmake?\n",curdir);
/*
* Set up the .TARGETS variable to contain the list of targets
to be
* created. If none specified, make the variable empty -- the
parser
More information about the Users
mailing list