1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00
nixpkgs/lib
Maximilian Bosch 6d6cbd316d pythonmagick: fix build (#46469)
The original build broke with the following linker issue:

```
  CXXLD    _PythonMagick.la
/nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/ld: cannot find -l-L/nix/store/4gh6ynzsd5ndx37hmkl62xa8z30k43y1-imagemagick-6.9.9-34/lib
collect2: error: ld returned 1 exit status
```

This happens since `BOOST_PYTHON_LIB` wasn't set properly, however
`_PythonMagick.la` was linked with `-l$(BOOST_PYTHON_LIB)
$(MAGICK_LIBS)`. With an empty `BOOST_PYTHON_LIB` the linker got
confused.

To work around this, the `boost` library directory needs to be specified
explicitly. To ensure that the changes take effect, the original
`configure` script shipped with `$src` needs to be removed and recreated
using the `autoreconfHook`.

Additionally the `imagemagick` license (https://spdx.org/licenses/ImageMagick.html)
needs to be added to `lib/licenses.nix` to document the proper license
of `pythonmagick` in the meta section.
2018-09-10 11:59:51 +02:00
..
systems hurd: cleanup unmaintained target 2018-08-28 22:18:02 +01:00
tests Merge branch 'no-toPath' 2018-09-06 08:09:53 -04:00
asserts.nix lib: move assertMsg and assertOneOf to their own library file 2018-09-06 18:14:27 +02:00
attrsets.nix Merge pull request #45038 from symphorien/optopt 2018-08-30 20:08:45 +02:00
composable-derivation.nix [bot] treewide: remove unused 'inherit' in let blocks 2018-07-20 19:38:19 +00:00
customisation.nix lib: Use lib.fixed-points.extends to avoid repetition 2018-08-20 13:09:15 -04:00
debug.nix lib.debug: fix traceValSeqFn 2018-07-15 09:36:08 +09:00
default.nix lib: move assertMsg and assertOneOf to their own library file 2018-09-06 18:14:27 +02:00
deprecated.nix Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
fetchers.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
filesystem.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
fixed-points.nix Revert "Merge branch 'improved-make-overridable' of git://github.com/ElvishJerricco/nixpkgs" 2017-09-29 09:11:26 -04:00
generators.nix [bot]: remove unreferenced code 2018-07-20 18:48:37 +00:00
kernel.nix linux: translate config to structured config 2018-06-30 16:01:41 +03:00
licenses.nix pythonmagick: fix build (#46469) 2018-09-10 11:59:51 +02:00
lists.nix lib: move assertMsg and assertOneOf to their own library file 2018-09-06 18:14:27 +02:00
meta.nix treewide: remove lib.meta.enableIfAvailable 2018-05-09 16:21:22 -05:00
minver.nix Nix minimal version: 1.11 -> 2.0 2018-08-30 08:09:54 -04:00
modules.nix module system: rework module merging 2018-08-27 17:11:58 +02:00
options.nix lib/options: teach showOptions about funny option names 2018-03-05 09:58:06 -05:00
sources.nix callCabal2nix: Fix calling with a path in the store. 2018-01-11 10:17:56 -05:00
strings-with-deps.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
strings.nix lib/trivial: add a few examples of usage of assertMsg/assertOneOf 2018-09-06 18:14:27 +02:00
trivial.nix lib: move assertMsg and assertOneOf to their own library file 2018-09-06 18:14:27 +02:00
types.nix lib: move assertMsg and assertOneOf to their own library file 2018-09-06 18:14:27 +02:00
versions.nix lib: add versions library 2018-03-04 06:28:34 -08:00
zip-int-bits.nix lib/trivial: move zipIntBits to its own file 2018-07-26 20:36:45 +02:00