all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs 21.3: -h flag to tar not supported on BSD/OS
@ 2003-05-12  1:21 Jeffrey C Honig
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey C Honig @ 2003-05-12  1:21 UTC (permalink / raw)


While importing emacs-21.3 into BSD/OS 4.3/5.0 I found that Makefile.in
and leim/Makefile.in invoke tar with -chf.  The -h flag is not supported
by BSD/OS's tar (which is just a front-end for pax).

I do not see any symlinks in the distribution so I wonder why this flag
is there.

Enclosed is the change I've made.

Thanks.

Jeff

Index: Makefile.in
===================================================================
RCS file: /master/contrib/emacs/Makefile.in,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile.in
--- Makefile.in	2003/04/15 02:56:35	1.2
+++ Makefile.in	2003/05/12 00:58:00
@@ -364,7 +364,7 @@
 	  [ -d $${dir} ] \
 	  && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
 	  && (echo "Copying $${dir} to $${dest}..." ; \
-	      (cd $${dir}; tar -chf - . ) \
+	      (cd $${dir}; tar -cf - . ) \
 		| (cd $${dest}; umask 022; \
                    tar -xvf - && cat > /dev/null) || exit 1; \
 	      for subdir in `find $${dest} -type d ! -name RCS ! -name CVS -print` ; do \
@@ -403,7 +403,7 @@
 	if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \
 	then \
 	   echo "Copying etc/DOC-* to ${docdir} ..." ; \
-	   (cd ./etc; tar -chf - DOC*) \
+	   (cd ./etc; tar -cf - DOC*) \
 	     |(cd ${docdir}; umask 0; tar -xvf - && cat > /dev/null) || exit 1; \
 	   (cd $(docdir); chmod a+r DOC*; \
 	    if test "`echo DOC-*`" != "DOC-*"; then rm DOC; fi); \
@@ -415,7 +415,7 @@
 	   && [ x`(cd ${srcdir}/lisp; /bin/pwd)` != x`(cd ./lisp; /bin/pwd)` ]; \
 	then \
 	   echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \
-	   (cd lisp; tar -chf - *.el *.elc) \
+	   (cd lisp; tar -cf - *.el *.elc) \
 	     |(cd ${lispdir}; umask 0; tar -xvf - && cat > /dev/null) || exit 1; \
 	else true; fi
 	-unset CDPATH; \
Index: leim/Makefile.in
===================================================================
RCS file: /master/contrib/emacs/leim/Makefile.in,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile.in
--- leim/Makefile.in	2003/04/15 02:45:57	1.2
+++ leim/Makefile.in	2003/05/12 00:58:19
@@ -198,13 +198,13 @@
 	  rm -rf ${INSTALLDIR}/quail ${INSTALLDIR}/ja-dic ; \
 	  echo "Copying leim files to ${INSTALLDIR} ..." ; \
 	  if [ x`(cd ${srcdir} && /bin/pwd)` = x`(/bin/pwd)` ] ; then \
-	    tar -chf - leim-list.el quail ja-dic \
+	    tar -cf - leim-list.el quail ja-dic \
 		| (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
 	  else \
-	    tar -chf - leim-list.el quail \
+	    tar -cf - leim-list.el quail \
 		| (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
 	    cd ${srcdir}; \
-	    tar -chf - quail/* ja-dic \
+	    tar -cf - quail/* ja-dic \
 		| (cd ${INSTALLDIR}; umask 0; tar -xvf - && cat > /dev/null) ;\
 	  fi; \
 	else true; fi

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

* Re: emacs 21.3: -h flag to tar not supported on BSD/OS
@ 2003-05-12  1:37 David R. Linn
  0 siblings, 0 replies; 2+ messages in thread
From: David R. Linn @ 2003-05-12  1:37 UTC (permalink / raw)
  Cc: bug-gnu-emacs

>> While importing emacs-21.3 into BSD/OS 4.3/5.0 I found that Makefile.in
>> and leim/Makefile.in invoke tar with -chf.  The -h flag is not supported
>> by BSD/OS's tar (which is just a front-end for pax).
>> 
>> I do not see any symlinks in the distribution so I wonder why this flag
>> is there.

If you build for multiple architectures outside of the source tree,
the area from which you are installing can have symlinks into the
source tree.  Without the -h flag, those symlinks get installed as
symlinks that don't make sense outside the build environment.

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

end of thread, other threads:[~2003-05-12  1:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-12  1:37 emacs 21.3: -h flag to tar not supported on BSD/OS David R. Linn
  -- strict thread matches above, loose matches on Subject: below --
2003-05-12  1:21 Jeffrey C Honig

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.