[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to properly define version number of a package using git+COMMITID in the version?



FWIW -- you might like my helper
http://git.onerussian.com/?p=etc/bash.git;a=blob;f=.bash/bashrc/30_aliases_sh;h=196f98ab0b87519ab326b26674d8f2c720195ebc;hb=HEAD#l347

so my typical workflow for such usecases

git fetch origin
git checkout debian  # where packaging lives
git merge origin/master
dch_gitrev -i origin/master 

to get something like this in case of datalad:

$> dch_gitrev -i origin/master
new entry
D: mbase is 'c1e438708ad29293eb2853f5e9cd0b7743d362f0'
D: Got new_entry='1', upstream ver of last entry 0.9.1 and
624-gc1e43870.  So should be 0.9.1+git624-gc1e43870-1
diff --git a/debian/changelog b/debian/changelog
index e49a4f7b..fbc3902e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+datalad (0.9.1+git624-gc1e43870-1) UNRELEASED; urgency=medium
+
+  * New upstream snapshot from origin/master at 0.9.1-624-gc1e43870
...

note that the "beauty" is that git still understands that version (strip
debian suffix):

$> git describe 0.9.1+git624-gc1e43870  
0.9.1-624-gc1e43870

Cheers

On Fri, 02 Feb 2018, Christophe Trophime wrote:

>    Hi,
>    I would like to update a package feelpp from its latest release 0.103.2 to
>    a more recent development version.
>    I've tried to define the newest version as: 0.103.3+gitREVNUMBER with
>    REVNUMBER the id of the git commit
>    The trouble is that when trying to update locally my package which are
>    stored in a local repo
>    apt still wants to install 0.103.2 version instead of the
>    newest 0.103.3+gitREVNUMBER
>    What do I miss to get the dev version to be installed?
>    Thanks for your answers
>    Best
>    Christophe TROPHIME
>    Research Engineer
>        CNRS - LNCMI
>    25, rue des Martyrs
>    BP 166
>    38042 GRENOBLE Cedex 9
>    FRANCE    
>    Tel : +33 (0)4 76 88 90 02
>    Fax : +33 (0) 4 76 88 10 01
>    Office U 19
>    M@il : christophe.trophime@lncmi.cnrs.fr

-- 
Yaroslav O. Halchenko
Center for Open Neuroscience     http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        


Reply to: