From xemacs-m  Mon Jul 28 02:17:21 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id CAA10592
	for <xemacs-beta@xemacs.org>; Mon, 28 Jul 1997 02:17:19 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.6/8.8.6) id AAA06368;
	Mon, 28 Jul 1997 00:21:11 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: Success: Linux, pgcc
References: <87vi1vx4tp.fsf@bittersweet.inetarena.com>
X-Face: `'%\i;ySOu]g?NlziJSk_$&@]KP`}~PEQPjZ5;nxSaDW_o$4+4%Ab]%Ifw3ZR;7TIT3,O,'
 @2{L;]ox6kc;$_5kU'n**9vFg-]eV~GbxSVCx|(s%uR[],*:^WKmC`B}(;|k9/m]gwt?&`t;^rfCJg
 khHH>pP1W\)xM0U@!FNDD72{3fDP$PkBhx^7Z?-WxH6DbFN:QOnT`llzW}VGdYv;n9lzljQvKTIBhQ
 YuV
X-Attribution: sb
From: SL Baur <steve@xemacs.org>
In-Reply-To: karlheg+xemacs@inetarena.com's message of "27 Jul 1997 19:56:18 -0700"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 28 Jul 1997 00:21:10 -0700
Message-ID: <m2vi1v63rt.fsf@altair.xemacs.org>
Lines: 42
X-Mailer: Gnus v5.4.64/XEmacs 20.3(beta16) - "Budapest"

Karl M Hegbloom <karlheg+xemacs@inetarena.com> writes:

>  I made a symlink from /usr/local/lib/xemacs/packages to /etc/xemacs
> because it didn't seem to look where I set --pkgdir.

Confirmed.  configure is not setting the appropriate #define in
src/config.h.  It's not immediately obvious to me how to fix it.
Here is the patch that's been applied to beta16 as a workaround:

1997-07-27  SL Baur  <steve@altair.xemacs.org>

	* emacs.c (vars_of_emacs): Main default package directory is now
	${prefix}/lib/xemacs/packages.

Index: src/emacs.c
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/src/emacs.c,v
retrieving revision 1.20
diff -u -r1.20 emacs.c
--- emacs.c	1997/07/26 22:10:14	1.20
+++ emacs.c	1997/07/27 17:40:19
@@ -62,6 +62,9 @@
 #endif
 #endif
 
+/* For PATH_EXEC */
+#include "paths.h"
+
 extern void memory_warnings (void *, void (*warnfun) (CONST char *));
 
 #ifndef SYSTEM_MALLOC
@@ -2360,7 +2363,7 @@
 List of directories configured for package searching.
 */ );
 #ifndef PACKAGE_PATH
-#define PACKAGE_PATH "/etc/xemacs:~/.xemacs"
+#define PACKAGE_PATH PATH_PREFIX ## "/lib/xemacs/packages:~/.xemacs"
 #endif
   Vpackage_path = decode_path(PACKAGE_PATH);
 


