cms-gem-daq-project / reg_utils

0 stars 9 forks source link

pick up version number from tag #19

Closed jsturdy closed 6 years ago

jsturdy commented 6 years ago

Motivation and Context

Makes sure versions come from the tag and number of commits since last tag. Allows uniformly sequential builds to be built.

How Has This Been Tested?

Tested make rpm with a final, preliminary, and untagged commit

mexanick commented 6 years ago

could you please elaborate more on "final", "preliminary" and "untagged" commits? or, maybe we can get some kind of doc extending your manifest?

jsturdy commented 6 years ago

the logic is roughly laid out in tag2rel.sh

jsturdy commented 6 years ago

I haven't fully tested this through all thec++/arm compilation, but if they're getting their version info from the variables, they should be OK Verified

jsturdy commented 6 years ago

Caveat, every subpackage will have the same version, as it will be obtained from the tag (probably fine, just something to be aware of)

mexanick commented 6 years ago

if no outstanding todos, please rebase and merge

jsturdy commented 6 years ago

Now also builds <package>-devel RPMs

[sturdy@gem904daq02 software/reg-utils]% rpm -q --qf "[%-15{=NAME} %-36{FILENAMES} %{FILEMODES:perms}\n]" -p ./rwreg/arm/rpm/rwreg-1.0.0-0.3.1.3.pre1.a8611eagit.centos7.arm_linux_gnueabihf_gcc4_9_2.arm.rpm
rwreg           /opt/rwreg/bin                       drwxr-xr-x
rwreg           /opt/rwreg/lib                       drwxr-xr-x
rwreg           /opt/rwreg/lib/librwreg.so           -rwxr-xr-x
rwreg           /opt/rwreg/scripts                   drwxr-xr-x
[sturdy@gem904daq02 software/reg-utils]% rpm -q --qf "[%-15{=NAME} %-36{FILENAMES} %{FILEMODES:perms}\n]" -p ./rwreg/arm/rpm/rwreg-devel-1.0.0-0.3.1.3.pre1.a8611eagit.centos7.arm_linux_gnueabihf_gcc4_9_2.arm.rpm
rwreg-devel     /opt/rwreg/include                   drwxr-xr-x
rwreg-devel     /opt/rwreg/include/CTP7.hh           -rw-r--r--
rwreg-devel     /opt/rwreg/include/libmemsvc.h       -rw-r--r--
[sturdy@gem904daq02 software/reg-utils]% rpm -q --qf "[%-15{=NAME} %-36{FILENAMES} %{FILEMODES:perms}\n]" -p ./rwreg/x86_64/rpm/rwreg-1.0.0-0.3.1.3.pre1.a8611eagit.centos7.gcc6_3_1.x86_64.rpm
rwreg           /opt/rwreg/bin                       drwxr-xr-x
rwreg           /opt/rwreg/lib                       drwxr-xr-x
rwreg           /opt/rwreg/lib/librwreg.so           -rwxr-xr-x
rwreg           /opt/rwreg/scripts                   drwxr-xr-x
[sturdy@gem904daq02 software/reg-utils]% rpm -q --qf "[%-15{=NAME} %-36{FILENAMES} %{FILEMODES:perms}\n]" -p ./rwreg/x86_64/rpm/rwreg-devel-1.0.0-0.3.1.3.pre1.a8611eagit.centos7.gcc6_3_1.x86_64.rpm
rwreg-devel     /opt/rwreg/include                   drwxr-xr-x
rwreg-devel     /opt/rwreg/include/wiscRPCMsg.h      -rw-r--r--
rwreg-devel     /opt/rwreg/include/wiscrpcsvc.h      -rw-r--r--