libxml2 w/o python --with-python=no on all systems
When building libxml2 without python enabled, pass "--with-python=no" to configure on all systems, not only on FreeBSD. Omitting mentioned configure option results in building libxml2 WITH python enabled. In this case, configure is looking for python by itself in system paths. With a rootless configuration, python includes from the host are accessed. If those files (Python.h) are not available, building libxml2 fails.
This commit is contained in:
parent
f0ebdd4296
commit
42560c78bb
@ -41,7 +41,7 @@ stdenv.mkDerivation (rec {
|
||||
preInstall = ''substituteInPlace python/libxml2mod.la --replace "${python}" "$out"'';
|
||||
installFlags = ''pythondir="$(out)/lib/${python.libPrefix}/site-packages"'';
|
||||
|
||||
} // stdenv.lib.optionalAttrs (!pythonSupport && stdenv.isFreeBSD) {
|
||||
} // stdenv.lib.optionalAttrs (!pythonSupport) {
|
||||
configureFlags = "--with-python=no"; # otherwise build impurity bites us
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user