Re: sparse job, was Re: [PATCH] test-xml-encode: fix sparse NULL pointer warnings
- Date: Mon, 28 Jan 2019 20:13:03 +0000
- From: Ramsay Jones <ramsay@xxxxxxxxxxxxxxxxxxxx>
- Subject: Re: sparse job, was Re: [PATCH] test-xml-encode: fix sparse NULL pointer warnings
On 28/01/2019 16:10, Johannes Schindelin wrote:
> Hi Ramsay,
> On Sat, 26 Jan 2019, Ramsay Jones wrote:
>> Signed-off-by: Ramsay Jones <ramsay@xxxxxxxxxxxxxxxxxxxx>
>> Hi Johannes,
>> If you need to re-roll your 'js/vsts-ci' branch, could you please
>> squash this into the relevant patch (commit af7747e7c7 ("tests: optionally
>> write results as JUnit-style .xml", 2019-01-23)).
> BTW would you be interested in working with me on an Azure Pipeline that
> runs `sparse` on all of Junio's branches? (I am now pretty proficient with
> building a software package in one Azure Pipeline, publishing it as a
> build artifact, then consuming it from another Azure Pipeline, so I would
> build the `sparse` package as an Ubuntu package and offer it as a build
Happy to help, if I can.
Looking at the sparse wiki  we can see that the most recent
release of sparse is v0.6.0, released on December 26th 2018
(just too late for crimble!). This is the release you will
need to use for more recent Linux distros (eg. fedora 27+,
Ubuntu 18.04, 18.10, etc).
The releases are available from  as a compressed tar-ball
using '.gz' or .'xz' compression. eg. sparse-0.6.0.tar.gz
(there is also a sparse-0.6.0.tar.sign).
[The git repo is at , BTW].
[I was a little surprised that Linux Mint 19.1 (based on Ubuntu
18.04) has v0.5.1 - Debian unstable has v0.5.2, but both of those
are just a little too old for use with git on recent Linux.]
It seems Ubuntu has split sparse into two packages, the main
'sparse' package, which contains the command-line programs and
a 'sparse-test-inspect' package, which contains the 'test-inspect'
GUI program (and so depends on GTK).
The dependencies for the 'sparse' package includes: libc6 (>= 2.14),
libllvm4.0 (>= 1:4.0~), libxml2 (>= 2.7.4), perl:any
However, for git, we only need to build 'cgcc' and 'sparse', which
means we can forget about libxml (only used for c2xml), and libllvm
(only used for sparse-llvm/sparsec/sparsei). Also, I'm not sure what
perl is doing there ...
Note that these dependencies (along with the dependent programs) are
optional and I can happily build sparse without them:
$ make clean
Makefile:124: Your system does not have libxml, disabling c2xml
Makefile:146: Your system does not have gtk3/gtk2, disabling test-inspect
Makefile:179: Your system does not have llvm, disabling sparse-llvm
Hmm, I've never built an Ubuntu package before, so I don't know
exactly what would be required (spec file etc.) to create a PPA.
But I suspect you are not talking about doing that, right?