Skip to content
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

pythonPackages.mapnik: Fix build #46441

Closed
wants to merge 1 commit into from

Conversation

knedlsepp
Copy link
Member

Motivation for this change

This fixes the mapnik build.
Please backport to 18.09 (ZHF-18.09 #45961)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • 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/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@xeji
Copy link
Contributor

xeji commented Sep 9, 2018

@GrahamcOfBorg build python27Packages.python-mapnik python36Packages.python-mapnik

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: python27Packages.python-mapnik, python36Packages.python-mapnik

Partial log (click to expand)

  File "setup.py", line 121, in <module>
    ] + ['-l%s' % i for i in get_boost_library_names()])
  File "setup.py", line 67, in get_boost_library_names
    raise EnvironmentError(msg)
OSError:
Missing boost_python boost library, try to add its name with BOOST_PYTHON_LIB environment var.
Missing boost_thread boost library, try to add its name with BOOST_THREAD_LIB environment var.
Missing boost_system boost library, try to add its name with BOOST_SYSTEM_LIB environment var.
builder for '/nix/store/xlryi5fcy3zigcirky7rk16qf6xgycmk-python3.6-python-mapnik-3.0.13.drv' failed with exit code 1
error: build of '/nix/store/q92n8kakmlh9hfnbdvyfp4ih7mahh21b-python2.7-python-mapnik-3.0.13.drv', '/nix/store/xlryi5fcy3zigcirky7rk16qf6xgycmk-python3.6-python-mapnik-3.0.13.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: python27Packages.python-mapnik, python36Packages.python-mapnik

Partial log (click to expand)

  File "nix_run_setup", line 8, in <module>
    exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
  File "setup.py", line 121, in <module>
    ] + ['-l%s' % i for i in get_boost_library_names()])
  File "setup.py", line 67, in get_boost_library_names
    raise EnvironmentError(msg)
OSError:
Missing boost_python boost library, try to add its name with BOOST_PYTHON_LIB environment var.
builder for '/nix/store/d0f5s9z6gyfga4xy2rxqz1pdxvgi9wz3-python3.6-python-mapnik-3.0.13.drv' failed with exit code 1
error: build of '/nix/store/d0f5s9z6gyfga4xy2rxqz1pdxvgi9wz3-python3.6-python-mapnik-3.0.13.drv', '/nix/store/gsf8cl6flia0qp0x5482s6qvhri7xhmb-python2.7-python-mapnik-3.0.13.drv' failed

@xeji
Copy link
Contributor

xeji commented Sep 9, 2018

well, this doesn't fix the build yet.

@knedlsepp
Copy link
Member Author

knedlsepp commented Sep 9, 2018

Whoops. Sorry, that one is clearly off. Built mapnik instead of pythonPackages.mapnik by accident.

@knedlsepp knedlsepp closed this Sep 9, 2018
@GrahamcOfBorg
Copy link

Timed out, unknown build status on aarch64-linux (full log)

Attempted: python27Packages.python-mapnik, python36Packages.python-mapnik

Partial log (click to expand)

/build/hdf-4.2.14/hdf/src/hfile.h:274:7: error: unknown type name 'uint16'
       uint16      maxref;       /* highest ref in this file */
       ^~~~~~
/build/hdf-4.2.14/hdf/src/vgint.h:86:7: error: unknown type name 'int16'
building of '/nix/store/k2n0n7sfk1cz5qjj80adqx82sr67frm3-hdf-4.2.14.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/6crj09pvjs4qlmaki552jwq2xb86z5jh-gdal-2.3.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6q9wwnw2qnpky33qflcmah7kr37dw0ix-mapnik-3.0.13.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/g4r4jg4vd813cl06an13wrysdnwbv9li-python2.7-python-mapnik-3.0.13.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/7i74c1rzmkh4a3wirkw9nlavnm76lbcy-python3.6-python-mapnik-3.0.13.drv': 1 dependencies couldn't be built
error: build of '/nix/store/7i74c1rzmkh4a3wirkw9nlavnm76lbcy-python3.6-python-mapnik-3.0.13.drv', '/nix/store/g4r4jg4vd813cl06an13wrysdnwbv9li-python2.7-python-mapnik-3.0.13.drv' failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants