[Top][All Lists]

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

Re: a2ps 4.13: bash'ism shell expansions (APOLOGIES)

From: Mike Harding
Subject: Re: a2ps 4.13: bash'ism shell expansions (APOLOGIES)
Date: 06 Mar 2003 09:44:33 -0800

I was the one who made this statement - but alas it is not true... the
problem has nothing to do with linux.

It looks like the contrib/emacs/Makefile.in will install the .el files
in 'lispdir' even if $(EMACS) is not set, and if $(lispdir) is not set.
This will cause the .el files to be installed in / as the following in
contrib/emacs/Makefile will always be run...

install-dist_lispLISP: $(dist_lisp_LISP) $(ELCFILES)
        $(mkinstalldirs) $(DESTDIR)$(lispdir)
        @list='$(dist_lisp_LISP)'; for p in $$list; do \
          if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
          f="`echo $$p | sed -e 's|^.*/||'`"; \
          echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(lispdir)/$$f"; \
          $(INSTALL_DATA) $$d$$p $(DESTDIR)$(lispdir)/$$f; \
          if test -f $${p}c; then \
            echo " $(INSTALL_DATA) $${p}c $(DESTDIR)$(lispdir)/$${f}c"; \
            $(INSTALL_DATA) $${p}c $(DESTDIR)$(lispdir)/$${f}c; \
          else : ; fi; \

this gets executed as
if test no != no; then  EMACS=no /bin/sh ./elisp-comp a2ps.el;  fi
/bin/sh ../../auxdir/mkinstalldirs 
 install -c -o root -g wheel -m 444 a2ps.el /a2ps.el
 install -c -o root -g wheel -m 444 a2ps-print.el /a2ps-print.el

if emacs is not installed in the system.  Note that the .elc files are
not compiled if emacs is not present as the compilation -does- have
a check for emacs...

        @echo 'WARNING: Warnings can be ignored. :-)'
        if test $(EMACS) != no; then \
          EMACS=$(EMACS) $(SHELL) $(srcdir)/elisp-comp $<; \

I am afraid this is beyond my ability to configure/patch today as I am
not a ports maven.  :(

Hopefully this information will be useful...

- Mike H.

On Thu, 2003-03-06 at 00:34, Jan Stocker wrote:
> Hi,
> some tests in the configure script wents wrong on a non-Linux system
> because you are using some bash specific stuff. This leads p.e. to an
> installation of the two elisp files in the "/" root directory if no
> emacs is installed rather than not copying 'em. The bashism mechanism
> i'm talking about is a very small one and fast to replace:
> $(INCORRECT_EXPANSION) using parenthesis, instead of
> ${CORRECT_EXPANSION} using curly brace.
> Maybe this also is the problem descriped in your FAQ "configure fails
> under BSD". It would be nice to get this fixed in your original
> distribution, so all non-Linux systems (where bash isn't the default
> shell) can use it simple and the ports can be small. Else all port
> maintainers need to get this fixed.
> Best regards,
>       Jan Stocker

reply via email to

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