On 11/12/10 00:21, STeve Andre' wrote: > I'm having problems compiling ruby ports--below is an example of ruby- > actionpack, but this affects lots of other ruby ports. > > If I stop a bulk build and clean out /var/db/pkg with pkg_delete, I find > things remaining in /usr/local/lib, like ruby. if I remove that the > restart > the build things work till the next collision happens. > > Clues as to what I've messed up? It's been a while since I've not > been able to figure out what went wrong in a bulk build. Let the > whacks commence...! > > Thanks, > > --STeve Andre' > > /usr/sbin/pkg_add -a ruby-1.8.7.302p0 ruby-activesupport-2.3.4p1 > ruby-gems-1.3.7p1 ruby-rack-1.0.0p1 > Collision in ruby-activesupport-2.3.4p1: the following files already exist > /usr/local/lib/ruby/gems/1.8/cache/activesupport-2.3.4.gem (same > checksum) > Collision in ruby-rack-1.0.0p1: the following files already exist > /usr/local/lib/ruby/gems/1.8/cache/rack-1.0.0.gem (same checksum) > ===> devel/ruby-actionpack, > ===> ruby-actionpack-2.3.4p1 depends on: ruby-activesupport->=2.3.4 - > not found > ===> Verifying install for ruby-activesupport->=2.3.4 in > devel/ruby-activesupport > ===> ruby-activesupport-2.3.4p1 depends on: ruby-iconv->=1.8,<=1.9 - found > ===> ruby-activesupport-2.3.4p1 depends on: ruby->=1.8,<=1.9 - found > ===> ruby-activesupport-2.3.4p1 depends on: ruby-gems->=1.3.7p0 - found > ===> Installing ruby-activesupport-2.3.4p1 from > /usr/ports/packages/i386/all/ > Collision in ruby-activesupport-2.3.4p1: the following files already exist > /usr/local/lib/ruby/gems/1.8/cache/activesupport-2.3.4.gem (same > checksum) > *** Error code 1 > > Stop in /usr/ports/devel/ruby-activesupport (line 1659 of > /usr/ports/infrastructure/mk/bsd.port.mk). > *** Error code 1 > > Stop in /usr/ports/devel/ruby-activesupport (line 2164 of > /usr/ports/infrastructure/mk/bsd.port.mk). > /bin/sh: exit 1: not found > *** Error code 127 > > Stop in /usr/ports/devel/ruby-actionpack (line 1813 of > /usr/ports/infrastructure/mk/bsd.port.mk). > *** Error code 1 > > Stop in /usr/ports/devel/ruby-actionpack (line 2164 of > /usr/ports/infrastructure/mk/bsd.port.mk). > ===> Exiting devel/ruby-actionpack, with an error > /bin/sh: exit 1: not found > *** Error code 127 > > I have seen this, during the make the files are created outside of the build directory. When installing you get the collision. I have seen this with a number of the ruby packages. www/ruby-rack another example
# make ..... Installing gem rack-1.0.0 Using local gem /usr/local/lib/ruby/gems/1.8/cache/rack-1.0.0.gem ..... is the likely problem the make has installed the gem file, outside the ports directory. Either this steps need removing in the make or changed to be under the WRKDIR. Using sudo/systrace will stop this. Regards Nigel Taylor