git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: sparse job, was Re: [PATCH] test-xml-encode: fix sparse NULL pointer warnings

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Jan 29, 2019, 00:02 UTC
Message-ID
<ef5a8623-e5e6-5cc8-5178-0afce7b5499e@ramsayjones.plus.com>
In-Reply-To
<nycvar.QRO.7.76.6.1901282333350.41@tvgsbejvaqbjf.bet>
On 28/01/2019 22:34, Johannes Schindelin wrote:
Show 9 quoted lines
> Hi Ramsay,
> 
> On Mon, 28 Jan 2019, Ramsay Jones wrote:
> 
>> 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?
> 
> I would have gone for `checkinstall`... That still works, right?

Ah, I never think about using checkinstall - I haven't really used it in anger. For some reason, I thought you needed to structure your Makefile a certain way (using $DESTDIR or somesuch), but I seem to be confusing it with something else. Apparently, no change to the Makefile is required - it uses some kind of filesystem watcher to note which files are copied into place by 'make install'. heh, go figure! :-D

So, I think you only need to set the PREFIX when building (the default installation PREFIX is $HOME), or create a local.mk file to configure the build (I don't do that). The 'sparse' build does not make use of any 'auto-tools', so no configure script.

Ah, I think you will need to have pkg-config installed. I have never built sparse from a tar-ball - I assume it works! ;-)

So (just typing into my email client - not tested):
  $ wget http://www.kernel.org/pub/software/devel/sparse/dist/sparse-0.6.0.tar.gz
  $ tar xvf sparse-0.6.0.tar.gz
  $ cd sparse-0.6.0
  $ make PREFIX=/usr/local
  $ sudo checkinstall make PREFIX=/usr/local install
... should do it. (famous last words).

ATB, Ramsay Jones

Previous: Johannes SchindelinNext: Jonathan Nieder
Message 5 of 8 in “test-xml-encode: fix sparse NULL pointer warnings”
  1. test-xml-encode: fix sparse NULL pointer warningsRamsay Jones, Jan 26, 2019
  2. sparse job, was Re: [PATCH] test-xml-encode: fix sparse NULL pointer warningsJohannes Schindelin, Jan 28, 2019
  3. Ramsay JonesJan 28, 2019
  4. Johannes SchindelinJan 28, 2019
  5. Ramsay JonesJan 29, 2019
  6. Jonathan NiederJan 29, 2019
  7. Luc Van OostenryckJan 29, 2019
  8. Ramsay JonesJan 29, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.