Bug 214667

Summary: databases/rubygem-activerecord fix dependecy for rubygem-mysql
Product: Ports & Packages Reporter: Gerrit Beine <mail+freebsd>
Component: Individual Port(s)Assignee: Torsten Zuehlsdorff <tz>
Status: Closed FIXED    
Severity: Affects Some People CC: tz
Priority: --- Flags: bugzilla: maintainer-feedback? (ruby)
Version: Latest   
Hardware: Any   
OS: Any   

Description Gerrit Beine 2016-11-19 13:26:54 UTC
rubygem-activerecord won't build if dependency is ruby-mysql.
This can be fixed by changing the dependency to databases/rubygem-mysql2.


diff -Nur /usr/ports/databases/rubygem-activerecord/Makefile databases/rubygem-activerecord/Makefile
--- /usr/ports/databases/rubygem-activerecord/Makefile  2016-04-27 23:57:31.000000000 +0200
+++ databases/rubygem-activerecord/Makefile     2016-05-16 12:19:45.000000000 +0200
@@ -28,7 +28,7 @@

 GEM_ENV+=      LANG=en_US.UTF-8

-MYSQL_RUN_DEPENDS=     ${RUBY_PKGNAMEPREFIX}mysql>=0:databases/ruby-mysql
+MYSQL_RUN_DEPENDS=     rubygem-mysql2>=0:databases/rubygem-mysql2
 PGSQL_RUN_DEPENDS=     rubygem-pg>=0:databases/rubygem-pg
 SQLITE3_RUN_DEPENDS=   rubygem-sqlite3>=1.2.1:databases/rubygem-sqlite3
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-12-23 10:58:10 UTC
A commit references this bug:

Author: tz
Date: Fri Dec 23 10:57:39 UTC 2016
New revision: 429247
URL: https://svnweb.freebsd.org/changeset/ports/429247

Log:
  databases/rubygem-activerecord: Fix optional RUN_DEPENDS for MYSQL option

  Fix a build problem when MYSQL option is used. Since the option is
  not default there is no PORTREVISION bump.

  PR:           214667
  Submitted by: Gerrit Beine <mail+freebsd@gerritbeine.de>
  Approved by:  mentors (implicit)

Changes:
  head/databases/rubygem-activerecord/Makefile
Comment 2 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2016-12-23 10:58:39 UTC
Committed, thanks! :)