Bug 107660 - rubygem-rails: wrong RUN_DEPENDS if WITH_MEMCACHE_CLIENT enabled
Summary: rubygem-rails: wrong RUN_DEPENDS if WITH_MEMCACHE_CLIENT enabled
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: Gabor Kovesdan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-07 19:10 UTC by Robert Gogolok
Modified: 2007-01-12 12:51 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Gogolok 2007-01-07 19:10:13 UTC
When WITH_MEMCACHE_CLIENT is enabled and databases/rubygem-memcache-client already installed, the port www/rubygem-rails will fail to recognize that databases/rubygem-memcache-client is already installed.

/usr/ports/www/rubygem-rails/ > sudo make install                                                              
===>  Installing for rubygem-rails-1.1.6_1
===>   rubygem-rails-1.1.6_1 depends on executable in : rake - found
===>   rubygem-rails-1.1.6_1 depends on file: /usr/local/lib/ruby/gems/1.8/specifications/activesupport-1.3.1.gemspec - found
===>   rubygem-rails-1.1.6_1 depends on file: /usr/local/lib/ruby/gems/1.8/specifications/activerecord-1.14.4.gemspec - found
===>   rubygem-rails-1.1.6_1 depends on file: /usr/local/lib/ruby/gems/1.8/specifications/actionpack-1.12.5.gemspec - found
===>   rubygem-rails-1.1.6_1 depends on file: /usr/local/lib/ruby/gems/1.8/specifications/actionmailer-1.2.5.gemspec - found
===>   rubygem-rails-1.1.6_1 depends on file: /usr/local/lib/ruby/gems/1.8/specifications/actionwebservice-1.1.6.gemspec - found
===>   rubygem-rails-1.1.6_1 depends on file: /usr/local/bin/ruby18 - found
===>   rubygem-rails-1.1.6_1 depends on file: /usr/local/bin/gem - found
===>   rubygem-rails-1.1.6_1 depends on file: /usr/local/bin/ruby18 - found
===>   rubygem-rails-1.1.6_1 depends on file: /usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/fcgi.so - found
===>   rubygem-rails-1.1.6_1 depends on file: /usr/local/lib/ruby/gems/1.8/specifications/memcache-client-1.0.3.gemspec - not found
===>    Verifying install for /usr/local/lib/ruby/gems/1.8/specifications/memcache-client-1.0.3.gemspec in /usr/ports/databases/rubygem-memcache-client
===>  Installing for rubygem-memcache-client-1.2.0
===>   rubygem-memcache-client-1.2.0 depends on executable in : rake - found
===>   rubygem-memcache-client-1.2.0 depends on executable in : sow - found
===>   rubygem-memcache-client-1.2.0 depends on file: /usr/local/bin/gem - found
===>   rubygem-memcache-client-1.2.0 depends on executable in : rake - found
===>   rubygem-memcache-client-1.2.0 depends on executable in : sow - found
===>   rubygem-memcache-client-1.2.0 depends on file: /usr/local/bin/gem - found
===>   Generating temporary packing list
===>  Checking if databases/rubygem-memcache-client already installed
===>   rubygem-memcache-client-1.2.0 is already installed
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of databases/rubygem-memcache-client
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/databases/rubygem-memcache-client.
*** Error code 1

Stop in /usr/ports/www/rubygem-rails.

Fix: 

.if defined(WITH_MEMCACHE_CLIENT)
-RUN_DEPENDS+=»·${LOCALBASE}/${SPEC_DIR}/memcache-client-1.0.3.gemspec:${PORTSDIR}/databases/rubygem-memcache-client
+RUN_DEPENDS+=»·${LOCALBASE}/${SPEC_DIR}/memcache-client-1.2.0.gemspec:${PORTSDIR}/databases/rubygem-memcache-client
 .endif

 .include "${PORTSDIR}/devel/ruby-gems/Makefile.common"--3LxKGX7yd06GdI8CG3ANyuSKZYsfcX4yg74zohnMMLUTfU2o
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/rubygem-rails/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile»·3 Dec 2006 01:36:02 -0000»1.11
+++ Makefile»·7 Jan 2007 18:56:36 -0000
@@ -49,7 +49,7 @@
 .endif
How-To-Repeat: set WITH_MEMCACHE_CLIENT=yes

$ cd /usr/ports/www/rubygem-rails
$ sudo make install
$ sudo make deinstall
$ sudo make install # will fail
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-01-07 21:29:59 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Jonathan Weiss 2007-01-09 10:11:31 UTC
Edwin Groothuis wrote:
> Maintainer of www/rubygem-rails,
> 
> Please note that PR ports/107660 has just been submitted.
> 
> If it contains a patch for an upgrade, an enhancement or a bug fix
> you agree on, reply to this email stating that you approve the patch
> and a committer will take care of it.
> 
> The full text of the PR can be found at:
>     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/107660
> 

The patch is fine with me.


Jonathan

-- 
Jonathan Weiss
http://blog.innerewut.de
Comment 3 Gabor Kovesdan freebsd_committer freebsd_triage 2007-01-09 13:17:06 UTC
State Changed
From-To: feedback->open

Maintainer approved. 


Comment 4 Gabor Kovesdan freebsd_committer freebsd_triage 2007-01-09 13:17:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gabor

Take.
Comment 5 dfilter service freebsd_committer freebsd_triage 2007-01-12 12:48:56 UTC
gabor       2007-01-12 12:48:51 UTC

  FreeBSD ports repository

  Modified files:
    www/rubygem-rails    Makefile 
  Log:
  - Fix RUN_DEPENDS
  - Bump PORTREVISION
  
  PR:             ports/107660
  Submitted by:   Robert Gogolok <gogo@cs.uni-sb.de>
  Approved by:    erwin (mentor),
                  Jonathan Weiss <jw@innerewut.de> (maintainer)
  
  Revision  Changes    Path
  1.12      +2 -2      ports/www/rubygem-rails/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Gabor Kovesdan freebsd_committer freebsd_triage 2007-01-12 12:51:08 UTC
State Changed
From-To: open->closed

Committed with a PORTREVISION bump, thanks!