New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #15921 (closed update: fixed)

Opened 4 years ago

Last modified 3 years ago

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

patch-Portfile.diff Download (1.5 KB) - added by captsolo@… 4 years ago.
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..
Portfile Download (1.6 KB) - added by captsolo@… 4 years ago.

Change History

Changed 4 years ago by captsolo@…

  • cc captsolo@… added

Cc Me!

Changed 4 years ago by raimue@…

#15918 and #15917 are committed now.

Hint: Use wiki syntax to link to tickets instead of links, this way they get marked as closed automatically.

Changed 4 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)?

Changed 4 years ago by macsforever2000@…

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 4 years ago by captsolo@…

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 4 years ago by captsolo@…

Changed 4 years ago by captsolo@…

Thanks, macsforever2000. Added these changes to the portfile, the port should compile ok now.

Changed 4 years ago by macsforever2000@…

  • status changed from new to closed
  • resolution set to fixed

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!

Changed 3 years ago by jmr@…

  • type changed from enhancement to update

Changed 3 years ago by anonymous

  • milestone Port Updates deleted

Milestone Port Updates deleted

Note: See TracTickets for help on using tickets.