-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add proj/6.3.0 #751
Add proj/6.3.0 #751
Conversation
Some configurations of 'proj/6.3.0' failed in build 2 (
|
All green in build 1 (
|
Some configurations of 'proj/6.3.0' failed in build 3 (
|
We don't build the sqlite3 binary as part of the sqlite3 package in CCI, so instead I added a python script to build the database which I think will make this build. This seems really hacky, but I'm not sure what a better solution would be. |
Some configurations of 'proj/6.3.0' failed in build 4 (
|
Some configurations of 'proj/6.3.0' failed in build 5 (
|
Some configurations of 'proj/6.3.0' failed in build 6 (
|
Some configurations of 'proj/6.3.0' failed in build 7 (
|
Some configurations of 'proj/6.3.0' failed in build 8 (
|
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
Some configurations of 'proj/6.3.0' failed in build 9 (
|
All green in build 10 (
|
import os | ||
|
||
|
||
class LibaecConan(ConanFile): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ProjConan instead of LibaecConan ;)
All green in build 11 (
|
libtiff and curl are optional in this project and can be added as optional dependencies: https://github.com/OSGeo/PROJ/blob/master/CMakeLists.txt#L147 |
@uilianries Not in 6.x.x. |
My mistake! I didn't check that version! |
I'll wait for a new PR for 7.0 😉 |
@@ -0,0 +1,7 @@ | |||
import sqlite3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is quite a hack as well, but I see we don't have the executable in the sqlite3 packages so it is the only way to go for now.
On the other hand, this might fail for Conan users that are using the installers (no Python installed).
My question is the following: If the sqlite3 library is expected to have the executable, why don't we package it? Any ideas @madebr @SSE4 @uilianries ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at #1004, sqlite3 will fail when using as a build requirement and cross building (e.g. building an arm application on x86).
This is only a build time dependency on the executable since it is creating a database that it uses at runtime. In the past it looked like the sqlite utility was packaged up on its own to avoid this problem. I also think I'm not storing the database in the standard place for the Conan package so I should also address that as well. |
Then you should add it to the re: #751 (comment) |
@madebr AFAIK, sqlite3 is both a |
Exactly. This is also why I think my hack might be ok for now if we don't have a good solution. If they are building with Conan they have the python with sqlite and we don't have to deal with the cross build issue. |
Well, reading this again I understand that the cross-building case is not well covered with now with Conan. However, now that we have the sqlite3 executable packaged by the recipe, we should use it in this recipe to avoid the python hack. Some people might use Conan from the stand-alone installers and could not have python available. Morever, I think that doing this hack is worse for the future fix of the cross-building case than having a clean recipe without misleading python hacks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the changes regarding the squlite3 executable usage
@btashton I'm close to provide a working PROJ recipe using sqlite3 executable (without python). I'll submit a PR to your branch. I've also made several modifications:
(I'm waiting for this recipe for libgeotiff and maybe for a first attempt to package gdal) |
Great I'll set aside some time to take a look. Thanks for helping push it over the finish line I have had a bunch of other things on my plate. |
Done: btashton#1 ;) |
For the sake of memory:
|
@btashton @danimtb Would you mind if I submit a new PR for proj/6.3.0 based on https://github.com/SpaceIm/conan-center-index/tree/proj/fix-and-improvements (it includes btashton commits), so we can move forward easily? |
I'll let @btashton answer this. For me it ok whatever you both agree 😄 |
@SpaceIm If you want to take this across the finish line that would be great. Sorry I lost track of this in all my github notifications. If you ping me in your PR I would be happy to try and help with the review. |
Specify library name and version: proj/6.3.0
conan-center hook activated.