unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* various bugs in 21.3.50 found during Cygwin port
@ 2002-12-05 16:12 Joe Buehler
  2002-12-05 18:16 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Joe Buehler @ 2002-12-05 16:12 UTC (permalink / raw)


Here are some things I found while moving the 21.2 Cygwin patches to
21.3.50 (i.e. the CVS version).

1. There are some places in the Makefiles that run emacs during "make bootstrap"
but emacs cannot find the lisp files it needs.  There is already a setting
for $(emacs) that sets EMACSLOADPATH, so I used that and it worked.

2. x-win.el will not byte-compile when making a non-X11 emacs,
because it references functions in fontset.c, which is not compiled
when not making an X11 emacs.  I am ignoring errors in byte-compiles
at the moment (no patch included here).

3. There is an _P macro in pop.c that conflicts with a cygwin header file.

4. LOGNAME is not defined on Cygwin systems.  USERNAME is, so I use that if
LOGNAME is not set.  It is not clear to me why one would want to
do "chown $LOGNAME" in the first place, though.

Joe Buehler

--- lisp/Makefile.in	2002-11-20 02:15:41.000000000 -0500
+++ lisp/Makefile.in	2002-12-04 16:28:45.000000000 -0500
@@ -166,7 +166,7 @@
  autoloads: loaddefs.el doit
  	wd=$(lisp); $(setwins); \
  	echo Directories: $$wins; \
-	$(EMACS) $(EMACSOPT) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins
+	$(emacs) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins

  subdirs.el:
  	$(MAKE) $(MFLAGS) update-subdirs
--- lisp/Makefile.in	2002-11-20 02:15:41.000000000 -0500
+++ lisp/Makefile.in	2002-12-04 16:28:45.000000000 -0500
@@ -146,12 +146,12 @@
  custom-deps: cus-load.el doit
  	wd=$(lisp); $(setwins_almost); \
  	echo Directories: $$wins; \
-	$(EMACS) $(EMACSOPT) -l cus-dep -f custom-make-dependencies $$wins
+	$(emacs) -l cus-dep -f custom-make-dependencies $$wins

  finder-data: doit
  	wd=$(lisp); $(setwins_almost); \
  	echo Directories: $$wins; \
-	$(EMACS) $(EMACSOPT) -l finder -f finder-compile-keywords-make-dist $$wins
+	$(emacs) -l finder -f finder-compile-keywords-make-dist $$wins

  loaddefs.el:
  	echo ";;; loaddefs.el --- automatically extracted autoloads" >> $@
@@ -270,7 +270,7 @@
  # .elc is present.

  recompile: doit
-	$(EMACS) $(EMACSOPT) -f batch-byte-recompile-directory $(lisp)
+	$(emacs) -f batch-byte-recompile-directory $(lisp)

  # Prepare a bootstrap in the lisp subdirectory.  Build loaddefs.el,
  # because it's not sure it's up-to-date, and if it's not, that might
--- lib-src/pop.c	2002-05-17 07:24:02.000000000 -0400
+++ lib-src/pop.c	2002-12-04 20:50:26.000000000 -0500
@@ -119,6 +119,9 @@
  #endif
  #endif

+#ifdef _P
+#undef _P
+#endif
  #ifndef _P
  # ifdef __STDC__
  #  define _P(a) a
--- Makefile.in	2002-11-11 04:03:08.000000000 -0500
+++ Makefile.in	2002-12-05 08:09:24.000000000 -0500
@@ -397,7 +397,7 @@
  	      (cd $${dir}; tar -chf - . ) \
  		| (cd $${dest}; umask 022; \
                     tar -xvf - && cat > /dev/null) || exit 1; \
-	      find $${dest} -exec chown $$LOGNAME {} ';' ;\
+	      find $${dest} -exec chown $${LOGNAME:-$$USERNAME} {} ';' ;\
  	      for subdir in `find $${dest} -type d ! -name RCS ! -name CVS -print` ; do \
  		chmod a+rx $${subdir} ; \
  		rm -rf $${subdir}/RCS ; \
@@ -436,7 +436,7 @@
  	   echo "Copying etc/DOC-* to ${docdir} ..." ; \
  	   (cd ./etc; tar -chf - DOC*) \
  	     |(cd ${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \
-	   (cd $(docdir); chown $${LOGNAME} DOC*; chmod a+r DOC*; \
+	   (cd $(docdir); chown $${LOGNAME:-$$USERNAME} DOC*; chmod a+r DOC*; \
  	    if test "`echo DOC-*`" != "DOC-*"; then rm DOC; fi); \
  	else true; fi
  	-unset CDPATH; \
@@ -447,7 +447,7 @@
  	   echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \
  	   (cd ${srcdir}/lisp; tar -chf - *.el *.elc) \
  	     |(cd ${lispdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \
-	   (cd ${lispdir}; find . -exec chown $${LOGNAME} {} ';') ; \
+	   (cd ${lispdir}; find . -exec chown $${LOGNAME:-$$USERNAME} {} ';') ; \
  	else true; fi
  	-unset CDPATH; \
  	thisdir=`/bin/pwd`; \

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-12-07 19:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-05 16:12 various bugs in 21.3.50 found during Cygwin port Joe Buehler
2002-12-05 18:16 ` Eli Zaretskii
2002-12-05 19:38   ` Joe Buehler
2002-12-06 12:36     ` Andreas Schwab
2002-12-07 19:09     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).