New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #17976 (assigned enhancement)

Opened 3 years ago

Last modified 2 years ago

php5-dba: add a new variant for db4 support

Reported by: tinhkyaw@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: db4 Cc: jwa@…
Port: php5-dba

Description

I added a new variant to my local php5 Portfile for db4 support so that I could use db4 via dba extension in php. I would like to contribute my changes back to macports. Can someone please review my changes and let me know if you find any issues?

Thanks very much,

Tin

Attachments

Portfile Download (15.3 KB) - added by tinhkyaw@… 3 years ago.
Portfile for php5 with a new variant db4
Portfile.diff Download (469 bytes) - added by ryandesign@… 3 years ago.
Here it is expressed as a diff

Change History

Changed 3 years ago by tinhkyaw@…

Portfile for php5 with a new variant db4

Changed 3 years ago by blb@…

  • cc jwa@… added
  • owner changed from macports-tickets@… to ryandesign@…
  • summary changed from add a new variant for db4 support to php5: add a new variant for db4 support

Changed 3 years ago by ryandesign@…

Here it is expressed as a diff

Changed 3 years ago by anonymous

  • milestone Port Enhancements deleted

Milestone Port Enhancements deleted

Changed 3 years ago by ryandesign@…

  • port changed from php5 to php5, php5-dba

This will be solved by the new php5-dba port; see #20056.

Changed 2 years ago by ryandesign@…

  • status changed from new to assigned
  • port changed from php5, php5-dba to php5-dba
  • summary changed from php5: add a new variant for db4 support to php5-dba: add a new variant for db4 support

php5-dba was created in r58585, but I was thus far unable to figure out how to inform it where MacPorts installs db4 (I keep getting "checking for db4 major version... configure: error: Header contains different version"), so that variant is still missing for now.

Changed 2 years ago by tinhkyaw@…

Hi Ryan,

Thanks for looking into the issue.

Now I remember running into similar issues before. I think php5 compilation script ignores the prefix argument passed in --with-db4= and just looks for everything under /usr/local. Hence, my hacky solution was to make the following 2 symlinks in order for things to work:

  1. ln -s /opt/local/include/db46 /usr/local/include/db4.6

  1. ln -s /opt/local/lib/db46/* /usr/local/lib/

I think the right thing to do is probably to track down fix the issue in the src for php5..

Note: See TracTickets for help on using tickets.