Git submodules

Alin Marin Elena alinm.elena at gmail.com
Mon Oct 10 10:26:50 UTC 2011


I have spoken with the boys... and I packaged it. no real issues.
the workaround was too get add two git sources... 
https://build.opensuse.org/package/files?package=telepathy-contact-
list&project=home%3Aealin%3Akde-telepathy

from my point of view there is not too much trouble...

Alin

On Monday 10 October 2011 00:42:02 David Edmundson wrote:
> On Sun, Oct 9, 2011 at 9:14 PM, David Edmundson
> 
> <david at davidedmundson.co.uk> wrote:
> > I tried updating the contact list to use the git submodule
> > telepathy-common-internals
> > 
> > It mostly went smoothly but I have two issues:
> > 
> > If I ship as-is people need to run "git submodule init" "git submodule
> > update" before their code will compile.
> > 
> > I tried adding it into CMakeFiles.txt as
> > execute_process(COMMAND git update blah blah blah WORKING_DIRECTORY
> > ${CMAKE_SRC_DIR} )
> > 
> > This works, but only when they run cmake twice, the first time it
> > errors that the cpp files (from the submodule) aren't there before
> > running my execute line. The second time it's fine.
> > No idea why.
> > 
> > Also - it's going to completely break making tarballs.
> > I assume it makes sense for the tarballs to have the code for the git
> > sub-repo in part of the tarball. This means my cmake line to run "git
> > submodule init" etc. will break everything.
> > 
> > I'm not sure how to do this in a way that's nice for normal users, and
> > isn't going to make every packager want to murder me.
> > 
> > Dave
> 
> Update:
> 
> Spoke to George K and came up with a plan between us. The
> CMakeLists.txt file only updates git submodules if the file
> ".gitmodules" is present. When building tarballs the submodule
> contents will be fetched, and this .gitmodules file should be removed
> as it makes no sense when not in git mode.
> 
> Could someone review my moving changes in my scratch repo at. It's not
> really a sensible patch for RB as it's a lot of moving about.
> git://anongit.kde.org/scratch/davidedmundson/telepathy-contact-list
> master branch
> 
> I'd be interested to hear from alin (or another packager) to know that
> everything still behaves correctly.
> 
> Dave
> _______________________________________________
> KDE-Telepathy mailing list
> KDE-Telepathy at kde.org
> https://mail.kde.org/mailman/listinfo/kde-telepathy
-- 
 Without Questions there are no Answers!
 ______________________________________________________________________
  Alin Marin ELENA
  Advanced Molecular Simulation Research Laboratory
  School of Physics, University College Dublin
  ----
  Ardionsamblú Móilíneach Saotharlann Taighde
  Scoil na Fisice, An Coláiste Ollscoile, Baile Átha Cliath

  -----------------------------------------------------------------------------------
  http://alin.elenaworld.net
  ______________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20111010/6cbf2f0f/attachment.sig>


More information about the KDE-Telepathy mailing list