[CIG-SHORT] [petsc-maint] Git Version of PETSc does not compile

Matthew Knepley petsc-maint at mcs.anl.gov
Fri Feb 13 14:52:17 PST 2015


On Fri, Feb 13, 2015 at 2:28 PM, Satish Balay <balay at mcs.anl.gov> wrote:

> I pushed the following to next for now [and to master later]
>
>
> https://bitbucket.org/petsc/petsc/commits/20a743a31ac2fe5cea70aa0659ca7d36836997b8


Thanks

   Matt


>
> Satish
>
> On Fri, 13 Feb 2015, Brad Aagaard wrote:
>
> > Satish,
> >
> > I don't recall why I thought git clone --depth 1 was useful. I just did
> a test
> > and it seems to be causing problems. I am updating the PyLith installer
> to
> > drop the --depth 1.
> >
> > Thanks,
> > Brad
> >
> >
> > On 02/13/2015 09:10 AM, Satish Balay wrote:
> > > On Fri, 13 Feb 2015, Satish Balay wrote:
> > >
> > > > So '--depth 1' just preserves only 1 commit - and not anything else
> from
> > > > git history?
> > > >
> > > > For one - perhaps we should use 'git fsck'? to do any checks - and
> not
> > > > rely on 'git describe'?
> > > >
> https://bitbucket.org/petsc/petsc/commits/6e709e5a83e3e6154cead97c7482e3df92822301
> > > >
> > > > And secondly - for VERSION_GIT - if 'git describe' breaks - we should
> > > > just do 'git log -1 --pretty=format:%H' - as we used to do before..
> > >
> > > 'git fsck' is probably overkill. Perhaps the follwing fix will suffice.
> > >
> > > Satish
> > >
> > > ----------
> > > [balay at maverick petsc-pylith]$ git diff |cat
> > > diff --git a/config/PETSc/options/petscclone.py
> > > b/config/PETSc/options/petscclone.py
> > > index ae1fb95..3d9ddd4 100644
> > > --- a/config/PETSc/options/petscclone.py
> > > +++ b/config/PETSc/options/petscclone.py
> > > @@ -21,6 +21,8 @@ class Configure(config.base.Configure):
> > >           if hasattr(self.sourceControl,'git'):
> > >             VERSION_GIT = os.popen("cd "+self.petscdir.dir+" &&
> > >             "+self.sourceControl.git+" describe").read()
> > >             if not VERSION_GIT:
> > > +            VERSION_GIT = os.popen("cd "+self.petscdir.dir+" &&
> > > "+self.sourceControl.git+" log -1 --pretty=format:%H").read()
> > > +          if not VERSION_GIT:
> > >               raise RuntimeError('Your petsc source tree is broken.
> Use "git
> > >             status" to check, or remove the entire directory and start
> all
> > >             over again')
> > >             self.addDefine('VERSION_GIT','"'+VERSION_GIT.strip()+'"')
> > >             self.addDefine('VERSION_DATE_GIT','"'+os.popen("cd
> > >             "+self.petscdir.dir+" && "+self.sourceControl.git+" log -1
> > >             --pretty=format:%ci").read()+'"')
> > > [balay at maverick petsc-pylith]$
> > > _______________________________________________
> > > CIG-SHORT mailing list
> > > CIG-SHORT at geodynamics.org
> > > http://lists.geodynamics.org/cgi-bin/mailman/listinfo/cig-short
> > >
> >
> >
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/cig-short/attachments/20150213/f58aed54/attachment-0001.html>


More information about the CIG-SHORT mailing list