Opened 16 years ago

Last modified 10 years ago

#17976 assigned enhancement

php53-dba: add a new variant for db4 support

Reported by: tinhkyaw@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: db4 Cc: jyrkiwahlstedt, robert@…
Port: php53-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 (2)

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

Download all attachments as: .zip

Change History (10)

Changed 16 years ago by tinhkyaw@…

Attachment: Portfile added

Portfile for php5 with a new variant db4

comment:1 Changed 16 years ago by blb@…

Cc: jwa@… added
Owner: changed from macports-tickets@… to ryandesign@…
Summary: add a new variant for db4 supportphp5: add a new variant for db4 support

Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile.diff added

Here it is expressed as a diff

comment:2 Changed 16 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Port: php5-dba added

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

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Port: php5 removed
Status: newassigned
Summary: php5: add a new variant for db4 supportphp5-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.

comment:5 Changed 15 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..

comment:6 Changed 13 years ago by robert@…

Cc: robert@… added

Cc Me!

comment:7 Changed 13 years ago by robert@…

FYI, I added the db4 variant patch above to my local php5-dba Portfile but was getting the same error: "checking for db4 major version... configure: error: Header contains different version".

After adding @tinhkyaw's suggested symbolic links, I was able to install and test it successfully.

comment:8 Changed 10 years ago by jmroot (Joshua Root)

Port: php53-dba added; php5-dba removed
Summary: php5-dba: add a new variant for db4 supportphp53-dba: add a new variant for db4 support

php5-dba replaced by php53-dba

Note: See TracTickets for help on using tickets.