Skip to content

gdal: disable python support on darwin#19474

Closed
vbgl wants to merge 1 commit intoNixOS:masterfrom
vbgl:gdal-darwin
Closed

gdal: disable python support on darwin#19474
vbgl wants to merge 1 commit intoNixOS:masterfrom
vbgl:gdal-darwin

Conversation

@vbgl
Copy link
Contributor

@vbgl vbgl commented Oct 12, 2016

Motivation for this change

Enabling python support on darwin results in a build failure.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@vbgl vbgl added the 6.topic: darwin Running or building packages on Darwin label Oct 12, 2016
@mention-bot
Copy link

@vbgl, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bzizou, @lethalman and @MarcWeber to be potential reviewers.

, netcdfSupport ? true
}:
, pythonSupport ? !stdenv.isDarwin
}:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change this to true and pass pythonSupport = !stdenv.isDarwin; in all-packages.nix. In python-packages.nix we override gdal to use the version of the Python interpreter that specific set is build for. Those builds should fail and not silently build without Python.

Copy link
Member

@FRidh FRidh Oct 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, that won't make a difference, because we override the call. You can ignore my previous comment. :-)

"--with-mysql=${mysql.lib.dev}/bin/mysql_config"
"--with-geotiff=${libgeotiff}"
"--with-python" # optional
"--with-python${if pythonSupport then "" else "=no"}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps be explicit and add yes ?

@FRidh
Copy link
Member

FRidh commented Oct 14, 2016

reference to issue #18194

@knedlsepp
Copy link
Member

knedlsepp commented Oct 15, 2016

There might be a better way to solve this issue than to disable python altogether.
veprbl provides two patches this thread: #18729 which could also solve the gdal on darwin problem. It compiles fine with these, but on my machine I still get runtime errors of a missing libgeotiff.dylib, because the rpath for it does not get embedded in the binary for some reason. I don't know yet how to solve this, but I suppose that this might be a better option.

Edit:
veprbl solved the remaining issues and we should merge his patches instead of this pull-request!
Once this pull-request gets merged: #19585 we can do the rest of the patches on top.

@vbgl
Copy link
Contributor Author

vbgl commented Oct 28, 2016

This has been fixed in 468a5bc.

@vbgl vbgl closed this Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants