#15921 closed update (fixed)
UPDATE: redland-bindings-1.0.8.1
Reported by: | CaptSolo | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | lyle@…, arto.bendiken@…, CaptSolo | |
Port: |
Description
Please find attached a diff to bring redland-bindings portfile to version 1.0.8.1.
This version solves some problems when compiling Redland bindings for Python (related to http://trac.macports.org/ticket/13838). Requires latest versions of redland 1.0.8 (http://trac.macports.org/ticket/15918) which depends on rasqal 0.9.16 (http://trac.macports.org/ticket/15917).
Please note that 1.0.8.1 only builds with Python 2.4 or higher which is why the patch also changes dependency from python23 to python25.
Attachments (2)
Change History (10)
comment:1 Changed 16 years ago by CaptSolo
Cc: | captsolo@… added |
---|
comment:2 Changed 16 years ago by raimue (Rainer Müller)
comment:3 Changed 16 years ago by CaptSolo
There is a bug that Redland.so gets linked to the system Python instead of MarPorts one. This is not specific to just this version of the port but needs to be fixed anyway.
Can be fixed by changing configure args for the Python variant (thanks to William Waites for suggesting how to fix it):
configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle /opt/local/Library/Frameworks/Python.framework/Versions/2.5/Python"
I will attach an updated Portfile and its diff shortly.
One quick question before doing this: currently this line uses an absolute path which is not very good. How can this line be rewritten in a more generic way so that it points to the correct framework even if MacPorts is installed elsewhere or if used together with other version of Python (e.g., 2.4)?
comment:4 Changed 16 years ago by mf2k (Frank Schima)
You can at least change it as follows:
configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/Python"
Also you should make variants for different versions of python. So this variant should be called "python25". The current "python" variant should work with Python 2.4 and the line can look like this:
configure.args-append --with-python --with-python-ldflags="-Wl,-F. -Wl,-F. -bundle ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/Python"
The same variant names should be applied to the php and perl ones too. I.e "perl5.8" instead of "perl" and "php5" instead of "php".
HTH!
Changed 16 years ago by CaptSolo
Attachment: | patch-Portfile.diff added |
---|
Update from 1.0.6.1 to 1.0.8.1 + Added a fix to a problem with linker picking the system python instead of MacPorts one..
Changed 16 years ago by CaptSolo
comment:5 Changed 16 years ago by CaptSolo
Thanks, macsforever2000. Added these changes to the portfile, the port should compile ok now.
comment:6 Changed 16 years ago by mf2k (Frank Schima)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Committed revision r38602. I also changed the variant names for php and perl to match the port names - i.e. 'php5' and 'perl5.8'.
Thanks!
comment:7 Changed 16 years ago by jmroot (Joshua Root)
Type: | enhancement → update |
---|
Cc Me!