[GRASS-user] Using new git master

I've not needed GRASS for a while, but now I need to model hydrology for a
location.

Here, I removed the source directory ~/gis/grass/grass7_trunk/ which used to
be updated from the svn repository. I tried to replace the source with that
in the github master but failed. Please show me what I missed.

Following this instruction: "The GRASS GIS software lives in the Git source
control system hosted by GitHub. It can be browsed online using
GitHub UI. With the Git client software installed, various versions
can be accessed:
   git clone https://github.com/OSGeo/grass.git"

$ git clone https://github.com/OSGeo/grass.git
Cloning into 'grass'...
remote: Enumerating objects: 120, done.
remote: Counting objects: 100% (120/120), done.
remote: Compressing objects: 100% (110/110), done.
remote: Total 229474 (delta 77), reused 35 (delta 10), pack-reused 229354
Receiving objects: 100% (229474/229474), 237.22 MiB | 1.78 MiB/s, done.
Resolving deltas: 100% (169917/169917), done.
Checking out files: 100% (7360/7360), done.

I see nothing different in ~/gis/grass; there's not a git repo there.
Anyway, I try:

$ git checkout master
fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Should I initialize a local repo (git init) in ~/gis/grass before cloning
and checking out the master?

TIA,

Rich

Rich Shepard <rshepard@appl-ecosys.com> schrieb am Fr., 12. Juli 2019, 01:03:

I’ve not needed GRASS for a while, but now I need to model hydrology for a
location.

Here, I removed the source directory ~/gis/grass/grass7_trunk/ which used to
be updated from the svn repository. I tried to replace the source with that
in the github master but failed. Please show me what I missed.

Following this instruction: “The GRASS GIS software lives in the Git source
control system hosted by GitHub. It can be browsed online using
GitHub UI. With the Git client software installed, various versions
can be accessed:
git clone https://github.com/OSGeo/grass.git

$ git clone https://github.com/OSGeo/grass.git
Cloning into ‘grass’…
remote: Enumerating objects: 120, done.
remote: Counting objects: 100% (120/120), done.
remote: Compressing objects: 100% (110/110), done.
remote: Total 229474 (delta 77), reused 35 (delta 10), pack-reused 229354
Receiving objects: 100% (229474/229474), 237.22 MiB | 1.78 MiB/s, done.
Resolving deltas: 100% (169917/169917), done.
Checking out files: 100% (7360/7360), done.

I see nothing different in ~/gis/grass; there’s not a git repo there.
Anyway, I try:

Did you

cd grass/

?

$ git checkout master

fatal: Not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

To me it looks that you tried this in there parent dir.

Should I initialize a local repo (git init) in ~/gis/grass before cloning
and checking out the master?

No. Just be in the right directory.

HTH
Markus

TIA,

Rich


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On Fri, 12 Jul 2019, Markus Neteler wrote:

Did you
cd grass/
?

$ git checkout master

Markus,

Yes. However, that was the problem because ~/gis/grass/ is not empty.
Creating a new subdirectory, grass-master/, allowed me to clone the
repository.

Now I have a configuration issue:

checking for location of zstd includes... checking for zstd.h... no
configure: error: *** Unable to locate zstd includes.

This was not an issue before. My web search for this header file suggests
that it it specific to facebook, which I do not use, and I have other
compression tools instaled (.Z, .gz, .bj2, .xv).

Please advise,

Rich

On Fri, Jul 12, 2019 at 3:18 PM Rich Shepard <rshepard@appl-ecosys.com> wrote:

On Fri, 12 Jul 2019, Markus Neteler wrote:

> Did you
> cd grass/
> ?
>
> $ git checkout master

Markus,

Yes. However, that was the problem because ~/gis/grass/ is not empty.

ok yeah: it needs to be empty since you got a completely new clone of
the source code repo.

Creating a new subdirectory, grass-master/, allowed me to clone the
repository.

Fine.

Now I have a configuration issue:

checking for location of zstd includes...
checking for zstd.h... no
configure: error: *** Unable to locate zstd includes.

This was not an issue before.

That is a new dependency (optional, you can use --without-zstd):

http://htmlpreview.github.io/?https://github.com/OSGeo/grass/blob/master/REQUIREMENTS.html
ZSTD -> https://facebook.github.io/zstd/

Probably your system:
https://slackbuilds.org/repository/14.2/system/zstd/

HTH
Markus

On Fri, 12 Jul 2019, Markus Neteler wrote:

That is a new dependency (optional, you can use --without-zstd):

Markus,

I tried looking in configure but didn't see that because it's been a very
long time since I last looked at options in a configure file.

Probably your system:
https://slackbuilds.org/repository/14.2/system/zstd/

Was going to see if SBo had it. But, since it's optional I'll build without
it unless that might cause other problems down the road.

Thanks very much.

Best regards,

Rich

On Fri, Jul 12, 2019 at 4:00 PM Rich Shepard <rshepard@appl-ecosys.com> wrote:

On Fri, 12 Jul 2019, Markus Neteler wrote:

> That is a new dependency (optional, you can use --without-zstd):

Markus,

I tried looking in configure but didn't see that because it's been a very
long time since I last looked at options in a configure file.

> Probably your system:
> https://slackbuilds.org/repository/14.2/system/zstd/

Was going to see if SBo had it. But, since it's optional I'll build without
it unless that might cause other problems down the road.

It will not.

Happy compiling,

Markus