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/.

Eröffnet am: 2015-01-31 10:07 Letztes Update: 2015-02-01 09:40

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Priorität:
8
Schweregrad:
8
Lösung:
Gefixt
Datei:
Keine

Details

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-Verlauf (3/3 Historien)

2015-01-31 10:07 Aktualisiert von: 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 Aktualisiert von: itisango
  • Lösung Update from Keine to Accepted
Kommentar

I pre released the fix in prerel branch.

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

2015-02-01 09:40 Aktualisiert von: itisango
  • Lösung Update from Accepted to Gefixt
  • Status Update from Offen to Geschlossen
  • Ticket Close date is changed to 2015-02-01 09:40
Kommentar

fiexed. closed.

Dateianhangliste

Keine Anhänge

Bearbeiten

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