Bug 214667 - databases/rubygem-activerecord fix dependecy for rubygem-mysql
Summary: databases/rubygem-activerecord fix dependecy for rubygem-mysql
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Torsten Zuehlsdorff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-19 13:26 UTC by Gerrit Beine
Modified: 2016-12-23 10:58 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (ruby)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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! :)