Bug 81950 - ruby-mysql Makefile broken for mysql dependency
Summary: ruby-mysql Makefile broken for mysql dependency
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-06 12:50 UTC by Phil Pennock
Modified: 2005-06-06 22:36 UTC (History)
0 users

See Also:


Attachments
file.diff (931 bytes, patch)
2005-06-06 12:50 UTC, Phil Pennock
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Pennock 2005-06-06 12:50:01 UTC
The Port databases/ruby-mysql has a Makefile which attempts to depend
upon the correct version of mysqlclient, depending upon which version
exists in the file-system.  It doesn't work, because it uses
${LOCALBASE} but only has a .include for bsd.port.mk at the end, so
${LOCALBASE} isn't defined at the point in parsing where it's required.

Fix: Patch against: ports/databases/ruby-mysql/Makefile,v 1.22

This patch moves to using bsd.port.pre.mk and bsd.port.post.mk; it
collapses a nested .else/.if into an .elif; it moves the USE_RUBY*
variables up, so that they're defined before bsd.port.pre.mk inclusion
so that the correct build methods are defined.
How-To-Repeat: install mysql41-client
attempt to install ruby-mysql
watch as system attempts to install mysql-4.0.x.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2005-06-06 22:33:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Even better would be to replace whole mess with 

USE_MYSQL=yes 

I'll handle this with update in ports/81399
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2005-06-06 22:36:38 UTC
State Changed
From-To: open->closed

Fixed!