Ticket #34855

When "autoreconf; ./configure; "DESTDIR=$HOME make install", the installation directory changes to $HOME/emacs/site-lisp/egg/ from $HOME/usr/local/share/emacs/site-lisp/egg/.

Date d'ouverture: 2015-01-31 10:07 Dernière mise à jour: 2015-02-01 09:40

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Priorité:
8
Sévérité:
8
Résolution:
Fixed
Fichier:
Aucun

Détails

autoreconfでconfigureを作り直したとき、DESTDIR=$HOME make installのinstall先が変わってしまう。

$./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... yes
checking jisx0213... yes
updating cache ./config.cache
creating ./config.status
creating Makefile

$DESTDIR=$HOME make install
-> installed $HOME/usr/local/share/emacs/site-lisp/egg/

$cp -pi Makefile ../Makefile

$autoreconf

$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking jisx0213... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: Makefile contains a reference to the variable `datarootdir'
which seems to be undefined.  Please make sure it is defined

$DESTDIR=$HOME make install
-> installed $HOME/emacs/site-lisp/egg/

$diff -u ../Makefile  Makefile
--- ../Makefile 2015-01-31 09:21:18.697513686 +0900
+++ Makefile    2015-01-31 09:29:23.105514357 +0900
@@ -1,4 +1,3 @@
-# Generated automatically from Makefile.in by configure.
 # Makefile --- Makefile of Tamago-tsunagi

 # Copyright (C) 1999, 2000, 2015 Free Software Foundation, Inc
@@ -8,24 +7,25 @@
 #         TOMURA Satoru <tomura@etl.go.jp>

 .SUFFIXES:
-SHELL  = /bin/sh
+SHELL  = /bin/bash

 srcdir = .
 top_srcdir = .

+
 #------------------------------------------------
 #  Configuration parameters
 #------------------------------------------------
 # emacs you use
 EMACS  = emacs
 # emacs lisp installation directory
-lispdir        = ${prefix}/share/emacs/site-lisp
+lispdir        = ${datarootdir}/emacs/site-lisp
 #------------------------------------------------

 prefix = /usr/local
 INSTALL = /usr/bin/install -c
 INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL_PROGRAM}
+INSTALL_SCRIPT = ${INSTALL}
 INSTALL_DATA = ${INSTALL} -m 644
 INSTALL_INFO = install-info

The datarootdir is undefined. I think that we shoud define in Makefile.in

datarootdir= @datarootdir@

.

* Environment:
OS: Debian unstable(sid)
autoconf-2.69-8

Ticket History (3/3 Histories)

2015-01-31 10:07 Updated by: itisango
  • New Ticket "When "autoreconf; ./configure; "DESTDIR=$HOME make install", the installation directory changes to $HOME/emacs/site-lisp/egg/ from $HOME/usr/local/share/emacs/site-lisp/egg/." created
2015-01-31 11:00 Updated by: itisango
  • Résolution Update from Aucun to Accepted
Commentaire

I pre released the fix in prerel branch.

修正版をprerel branchに入れました。 ご確認願います。

2015-02-01 09:40 Updated by: itisango
  • Résolution Update from Accepted to Fixed
  • État Update from Ouvert to Atteints
  • Ticket Close date is changed to 2015-02-01 09:40
Commentaire

fiexed. closed.

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion