[haikuports] Re: Download an archive or use an additional-file

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haikuports@xxxxxxxxxxxxx
  • Date: Mon, 17 Oct 2016 14:05:14 +0000

17 octobre 2016 14:16 "Humdinger" <dmarc-noreply@xxxxxxxxxxxxx> a écrit:

Hi there,

I'm looking at the tinyxml recipe.
Besides the main code, it also grabbed a CMakeLists.txt file. This
download doesn't work anymore, because googlecode moved things around
again. Now you can only get the file by downloading the whole archive
of libtinyxml.

My question: Is it OK to just grab the CMakeLists.txt and put it under
additional-files alongside the recipe?
That would save downloading and unpacking another archive, which URL
might change again in the future. Currently you also have to patch
that CMakeLists.txt, which wouldn't be needed either anymore.

First I see there are 2 recipes in different directories:
https://github.com/haikuports/haikuports/blob/master/dev-libs/tinyxml2/tinyxml2-2.2.0.recipe
https://github.com/haikuports/haikuports/blob/master/dev-libs/tinyxml/tinyxml-2.6.2.recipe

The respective homepages are:
https://sourceforge.net/projects/tinyxml/files/?source=navbar ;(for tinyxml, 
currently at version 2.6.2)
https://github.com/leethomason/tinyxml2 ;(for tinyxml, currently at version 
2.2.0)

TinyXML1 is the one downloading a CMakeLists. I don't see it in the current 
trunk at sourceforge (https://sourceforge.net/p/tinyxml/git/ci/master/tree/), 
but there are other build files (a makefile and an SCons one).

So, I don't know what we are building, but it does not look to be the original 
tinyxml sources. I would switch to the official sourceforge and see which 
buildsystem that uses.

-- 
Adrien.

Other related posts: