<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>143974</bug_id>
          
          <creation_ts>2006-08-15 00:06 0000</creation_ts>
          <short_desc>dev-ruby/ruby-postgres-0.7.1.20051221 doesn&apos;t work with rails-1.1.6</short_desc>
          <delta_ts>2006-11-01 10:00:40 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>maxposedon@gmail.com</reporter>
          <assigned_to>ruby@gentoo.org</assigned_to>
          <cc>covracer@gmail.com</cc>
    
    <cc>lisa@gentoo.org</cc>
    
    <cc>wishdev@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>maxposedon@gmail.com</who>
            <bug_when>2006-08-15 00:06:04 0000</bug_when>
            <thetext>dev-ruby/ruby-postgres-0.7.1.20051221 doesn&apos;t work with rails-1.1.6 but
dev-ruby/ruby-postgres-0.7.1 work

==============ruby-postgres-0.7.1.20051221=============================
localhost 0.1 # irb
irb(main):001:0&gt; require &apos;postgres&apos;
LoadError: no such file to load -- postgres
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require&apos;
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require&apos;
        from (irb):1



==============dev-ruby/ruby-postgres-0.7.1==============================
localhost 0.1 # irb
irb(main):001:0&gt; require &apos;postgres&apos;
=&gt; true</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lisa@gentoo.org</who>
            <bug_when>2006-08-18 10:13:04 0000</bug_when>
            <thetext>I can confirm this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>covracer@gmail.com</who>
            <bug_when>2006-08-30 06:37:14 0000</bug_when>
            <thetext>$ ruby /usr/lib/ruby/gems/1.8/gems/ruby-postgres-0.7.1.2005.12.21/tests/tc_postgres.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require&apos;: no such file to load -- postgres (LoadError)
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require&apos;
        from /usr/lib/ruby/gems/1.8/gems/ruby-postgres-0.7.1.2005.12.21/tests/tc_postgres.rb:1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wishdev@gmail.com</who>
            <bug_when>2006-09-17 22:51:26 0000</bug_when>
            <thetext>This is not a bug in this package - unfortunately a really stupid patch got applied to rubygems upstream for 0.9.0 which totally screws up extensions that are built in the installation process. The shortest option to fix this at the moment would be to change the following lines within /usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb (or your local equivalent)

Approximately lines 588 and 605 will look like

[&apos;&apos;, &apos;install&apos;, &apos;clean&apos;].each do |target|

change both to read

[&apos;&apos;].each do |target|


This will undo the patch nonsense and get this ebuild working again. Hopefully someone upstream will smarten up and remove this garbage from rubygems. The 0.7.1 version isn&apos;t affected because it&apos;s a source build as opposed to rubygems based</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-11-01 09:52:37 0000</bug_when>
            <thetext>Will patch rubygems-0.9.0-r1 with the same patch applied upstream.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-11-01 10:00:40 0000</bug_when>
            <thetext>And finally, fixed.
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>