[GRASS-dev] [GRASS GIS] #916: GRASS 7: make install fails with --prefix

#916: GRASS 7: make install fails with --prefix
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Keywords: | Platform: Linux
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
When using
{{{
./configure --prefix=/some/path
}}}

compiling and then running
{{{
make install
}}}

a series of bugs appear which indicate that the --prefix path
was not properly propagated. The problem might be that the
Makefile no longer has an "install" target (guessing).

Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/916&gt;
GRASS GIS <http://grass.osgeo.org>

#916: GRASS 7: make install fails with --prefix
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: Unspecified
----------------------+-----------------------------------------------------
Comment (by hamish):

can you post the errors? I recently added pathname variable quoting to ./
install-sh and may have got over zealous with it.

Does it happen with 6.5 or 6.4? (changes were backported)

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/916#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#916: GRASS 7: make install fails with --prefix
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: Unspecified
----------------------+-----------------------------------------------------
Comment (by hamish):

ah,

Casey Vandenberg wrote:
{{{
I was trying to install grass7.0 through svn so I could do some testing
and see some of the future development. I had no errors after typing in
make, but when I make install I get the following:

root@silver:/usr/local/src/grass_trunk# make install
echo /usr/local/src/grass_trunk/bin.x86_64-unknown-linux-gnu/grass70
/usr/local/src/grass_trunk/bin.x86_64-unknown-linux-gnu/grass70
make[1]: Entering directory `/usr/local/src/grass_trunk' test -d
/usr/local/grass-7.0.svn || mkdir -p -m 755 /usr/local/grass-7.0.svn
test -d || mkdir -p -m 755
sed -e "s#^GISBASE.*#GISBASE=/usr/local/grass-7.0.svn#"
/usr/local/src/grass_trunk/bin.x86_64-unknown-linux-gnu/grass70.sh >
/grass70.sh
sed -e 's#^gisbase = ".*"#gisbase = "/usr/local/grass-7.0.svn"#'
/usr/local/src/grass_trunk/bin.x86_64-unknown-linux-gnu/grass70 > /grass70
chmod a+x /grass70
tar cBCf /usr/local/src/grass_trunk/dist.x86_64-unknown-linux-gnu - . |
tar xBCf /usr/local/grass-7.0.svn - 2>/dev/null sed
's#'/usr/local/src/grass_trunk/dist.x86_64-unknown-linux-
gnu'#'/usr/local/grass-7.0.svn'#g' /usr/local/src/grass_trunk/dist.x86_64-
unknown-linux-gnu/etc/fontcap > /usr/local/grass-7.0.svn/etc/fontcap
/usr/bin/install -c config.status /usr/local/grass-7.0.svn/config.status
chmod -R a+rX /usr/local/grass-7.0.svn 2>/dev/null
tar cBf - gem/skeleton | tar xBCf /usr/local/grass-7.0.svn/etc -
2>/dev/null
/usr/bin/install -c gem/gem70 2>/dev/null
make[1]: [real-install] Error 1 (ignored)
make[1]: Leaving directory `/usr/local/src/grass_trunk'
}}}

so is that in GEM or, ... ?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/916#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#916: GRASS 7: make install fails with --prefix
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: Unspecified
----------------------+-----------------------------------------------------
Comment (by glynn):

Replying to [ticket:916 neteler]:

> a series of bugs appear which indicate that the --prefix path
> was not properly propagated. The problem might be that the
> Makefile no longer has an "install" target (guessing).

The "install" target is in Install.make, which is "include"d from the top-
level Makefile.

The problem is that r40491 removed the "BINDIR=${UNIX_BIN}" with the
intention of just using $(UNIX_BIN) instead, but didn't follow through.

Fixed in r40882.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/916#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#916: GRASS 7: make install fails with --prefix
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: Unspecified
----------------------+-----------------------------------------------------
Changes (by martin):

* cc: martin (added)

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/916#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#916: GRASS 7: make install fails with --prefix
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords:
  Platform: Linux | Cpu: Unspecified
----------------------+-----------------------------------------------------
Comment (by neteler):

Thanks, the "make install fails with --prefix" problem appears to be
solved.

Not sure about Casey's problem (maybe the same).

Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/916#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#916: GRASS 7: make install fails with --prefix
----------------------+-----------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: fixed | Keywords:
  Platform: Linux | Cpu: Unspecified
----------------------+-----------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/916#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>