emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* make install-info fails for 6.08c
@ 2008-10-06 16:33 William Henney
  2008-10-06 21:14 ` Dan Griswold
  0 siblings, 1 reply; 3+ messages in thread
From: William Henney @ 2008-10-06 16:33 UTC (permalink / raw)
  To: Org-mode List

On Sun, Oct 5, 2008 at 1:40 AM, Carsten Dominik <dominik@science.uva.nl> wrote:
> I am releasing Org version 6.08.

Sorry for the bother again, but now that I have managed to download
the right file, it falls over at the install-info stage:

----------------------------------------------------------------------
will@bert:org$ make install-info
install-info --info-file=doc/org --info-dir=~/emacs/info
~/emacs/info/dir: could not read (No such file or directory) and could
not create (No such file or directory)
make: *** [install-info] Error 1
----------------------------------------------------------------------

I have no idea why this doesn't work, except for the fact that I
always seem to have problems with info directories...

The directory does exist, but there is no "dir" file there. There
seems nothing strange about the permissions:

----------------------------------------------------------------------
will@bert:org$ ls -ld ~/emacs/info
drwxrwxr-x  27 will  staff  918  6 Oct 11:18 /Users/will/emacs/info
----------------------------------------------------------------------

It looks like the install-info rule has changed since 6.07. It used to
just use cp to install the files, which worked fine for me, so I have
just reverted the Makefile back to the old method for now.

I am on OS X 10.5.5 in case it matters.

Cheers

Will


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

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

* Re: make install-info fails for 6.08c
  2008-10-06 16:33 make install-info fails for 6.08c William Henney
@ 2008-10-06 21:14 ` Dan Griswold
  2008-10-07  3:05   ` William Henney
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Griswold @ 2008-10-06 21:14 UTC (permalink / raw)
  To: emacs-orgmode

I saw this, too. And I determined two things:

  1. If you use a Debian (or, possibly, a Debian based distro), it
     will fail unless modified;
  2. Extra intervention appears required for the info file to be fully
     accessible.

Details:

  1. The Makefile uses GNU install-info. In Debian, "install-info" is
     part of the dpkg package, and thus different. Setting
     INSTALL_INFO to "ginstall-info" solved this problem for
     me. (ginstall-info is part of the texinfo package, and is
     Debian's name for GNU's install-info.)

  2. However, the [g]install-info command as called by "make
     install-info" was not entirely complete, as it did not copy the
     info file (doc/org) into info_dir directory, but only updated the
     main Info file ("/usr/local/info/dir").

     I got things working by manually copying doc/org to
     /usr/local/info/.

Possible solution:

Use these lines in place of the two beginning on line 55 of the Makefile:

  # Name of the program to install info files
  if [ `which ginstall-info ` ] ;
     then INSTALL_INFO=ginstall-info;
     else INSTALL_INFO=install-info;
  fi

And add this line to the install-info section of the Makefile:

  cp $(INFOFILES) $(infodir)


Of course, I might just be showing my ignorance on some of this
stuff. I'm willing to be corrected.

Thanks,

Dan



-- 
--------------
Dan Griswold
Rochester, NY
--------------

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

* Re: Re: make install-info fails for 6.08c
  2008-10-06 21:14 ` Dan Griswold
@ 2008-10-07  3:05   ` William Henney
  0 siblings, 0 replies; 3+ messages in thread
From: William Henney @ 2008-10-07  3:05 UTC (permalink / raw)
  To: Org-mode List; +Cc: Dan Griswold

Hi list

On Mon, Oct 6, 2008 at 4:14 PM, Dan Griswold <dgriswol@rochester.rr.com> wrote:
> I saw this, too. And I determined two things:
>

Nice to know that I'm not the only one to have problems with this.

I found the culprit non-patch that led to this change in the Makefile:

http://thread.gmane.org/gmane.emacs.orgmode/8247

I can't see how the current version of the install-info Makefile rule
can possibly work. From reading the man page it seems that the
install-info command, which shouldn't be confused with the Makefile
rule, does not actually install the info file. It just updates the dir
file in the info directory (which is not even necessary [1]). If you
do want to use it, then you have to copy the info file first, as Dan
already pointed out. So, I suggest that the Makefile rule might better
be something like this:

install-info: $(INFOFILES)
        if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
        $(CP) $(INFOFILES) $(infodir)
        for f in $(INFOFILES); do $(INSTALL_INFO) $(infodir)/`basename
$f` $(infodir)/dir; done

I am not convinced of the cross-platform wisdom of having the shell
"for" loop and backtick substitution in there, but I don't know how to
do that with pure make syntax. Currently, INFOFILES points to only one
file, but the plural name suggests that there may be more someday....

Cheers

Will

[1] In my emacs (Aquamacs 1.5, emacs 22.2.50.2), a "dir" file is
auto-generated on the fly from all the info files in directories in
Info-directory-list.



-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

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

end of thread, other threads:[~2008-10-07  3:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-06 16:33 make install-info fails for 6.08c William Henney
2008-10-06 21:14 ` Dan Griswold
2008-10-07  3:05   ` William Henney

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.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).