diff options
author | joerg <joerg@pkgsrc.org> | 2014-12-01 11:54:48 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2014-12-01 11:54:48 +0000 |
commit | 7bc3976e1d97056441a4d7ea8be6dd0c3425ecc7 (patch) | |
tree | b302feb54078a64dfaafb9f41d51cb464eb39063 /textproc/py-yaml | |
parent | 236cf31f9d91cc21091cbebb32dc9bd106bf6837 (diff) | |
download | pkgsrc-7bc3976e1d97056441a4d7ea8be6dd0c3425ecc7.tar.gz |
Add explicit rpath for finding libyaml.
Diffstat (limited to 'textproc/py-yaml')
-rw-r--r-- | textproc/py-yaml/distinfo | 3 | ||||
-rw-r--r-- | textproc/py-yaml/patches/patch-setup.py | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/textproc/py-yaml/distinfo b/textproc/py-yaml/distinfo index 6b186051db5..cece3650509 100644 --- a/textproc/py-yaml/distinfo +++ b/textproc/py-yaml/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.5 2014/05/04 17:13:31 wiz Exp $ +$NetBSD: distinfo,v 1.6 2014/12/01 11:54:48 joerg Exp $ SHA1 (PyYAML-3.11.tar.gz) = 1a2d5df8b31124573efb9598ec6d54767f3c4cd4 RMD160 (PyYAML-3.11.tar.gz) = 9515e7573c7e021190198b242a415f2b55d50938 Size (PyYAML-3.11.tar.gz) = 248685 bytes +SHA1 (patch-setup.py) = 8718125829210a220c8eaf2d87744cc05f024b38 diff --git a/textproc/py-yaml/patches/patch-setup.py b/textproc/py-yaml/patches/patch-setup.py new file mode 100644 index 00000000000..b010e23cf68 --- /dev/null +++ b/textproc/py-yaml/patches/patch-setup.py @@ -0,0 +1,19 @@ +$NetBSD: patch-setup.py,v 1.1 2014/12/01 11:54:48 joerg Exp $ + +--- setup.py.orig 2014-11-28 20:58:54.000000000 +0000 ++++ setup.py +@@ -248,12 +248,13 @@ class build_ext(_build_ext): + prog = 'check_%s' % ext.feature_name + log.info("checking if %s is linkable" % ext.feature_name) + try: ++ linker_flags = ["%s%s/lib" % (os.environ['COMPILER_RPATH_FLAG'], os.environ['PREFIX']), "-L%s/lib" % os.environ['PREFIX']] + self.compiler.link_executable([obj], prog, + output_dir=self.build_temp, + libraries=ext.libraries, + library_dirs=ext.library_dirs, + runtime_library_dirs=ext.runtime_library_dirs, +- extra_postargs=(ext.extra_link_args or [])) ++ extra_postargs=(ext.extra_link_args or [])+linker_flags) + except LinkError: + log.warn("") + log.warn("%s is not found or a linker error: forcing --%s" |