auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] problems with 'make install' in 11.81


From: Michal Jaegermann
Subject: [AUCTeX] problems with 'make install' in 11.81
Date: Sat, 22 Oct 2005 14:21:49 -0600
User-agent: Mutt/1.4.1i

There is a problem with Makefiles in auctex-11.81.  Namely an attempt
to install to subdirectories of some target directory, and when doing
that as non-root or when /usr/share is mounter read-only, ends up with
a series messages like that:

/usr/bin/install -c -m 644 preview.sty /usr/share/texmf/tex/latex/preview
/usr/bin/install: cannot remove 
`/usr/share/texmf/tex/latex/preview/preview.sty': Permission denied

which show that we are trying to do that in really wrong places.
Of course the whole installation fails.

Changing DESTDIR on the top level is not an answer as then in other
places DESTDIR gets prepended twice and results are messed up again.
This clearly gets into a way also when you are trying to build an rpm
package out of the whole thing.

I am not really sure where the problem really lies.  After some
investigation I opted for a simple way out and used the following
patch:

--- auctex-11.81/preview/Makefile.in~   2005-06-24 02:14:05.000000000 -0600
+++ auctex-11.81/preview/Makefile.in    2005-10-21 23:54:51.000000000 -0600
@@ -114,7 +114,7 @@
        done
 
 install-texmf:
-       (cd latex ; $(MAKE) DESTDIR=$(DESTDIR) install)
+       (cd latex ; $(MAKE) DESTDIR=$(INSTDIR) install)
 
 install-startup:
        test $(packagedir) != no || $(MAKE) preview-latex.el

'make' converts environment variables into its own variables, unless
not assigned in some other way, so it is enough to set properly
INSTDIR before doing 'make install' and then everything works.

A spec file using that approach, and modified from the one for 11.55-1,
is attached.  A patch listed there refers to the one above.  In the
contex of an rpm building I could have clearly use RPM_BUILD_ROOT,
which is defined there anyway, instead of INSTDIR but that would make
change somewhat rpm specific.

This spec file obviously now obsoletes 'preview' packages as this is
currently a part of auctex.

  Michal

Attachment: auctex.spec
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]