<?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>224715</bug_id>
          
          <creation_ts>2008-06-03 08:01 0000</creation_ts>
          <short_desc>dev-db/firebird cannot find intl charsets</short_desc>
          <delta_ts>2008-06-06 02:44:52 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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>InCVS</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>thor_n@yahoo.com</reporter>
          <assigned_to>wltjr@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>thor_n@yahoo.com</who>
            <bug_when>2008-06-03 08:01:14 0000</bug_when>
            <thetext>Firebird (stable 2.0.3 and unstable 2.1.0) in current ebuilds is failing to use intl charsets even though they are installed in 
/usr/lib/firebird/intl/.

I&apos;ve got database file encoded in win1250 (not in unicode as most of decent databases) and couldn&apos;t use it. :(

Reproducible: Always

Steps to Reproduce:
1. $ fbsql
2. SQL&gt; connect file.fdb user sysdba password pass; -- file.fdb wncoded in win1250
3. SQL&gt; select * from existingtable;


Actual Results:  
1. $ fbsql
Use CONNECT or CREATE DATABASE to specify a database
2. SQL&gt; connect file.fdb user sysdba password pass;
Database:  file.fdb, User: sysdba
3. SQL&gt; select * from existingtable;
Statement failed, SQLCODE = -204
CHARACTER SET WIN1250 is not installed


Expected Results:  
Just select and show rows, eh?

CHARACTER SET WIN1250 is not installed?
But it&apos;s there.

So I made symlink, restarted firebird and things are working.

# cd /usr/share/firebird
# ln -s  /usr/lib/firebird/intl

Put this in your ebuilds, please.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-06-03 08:10:28 0000</bug_when>
            <thetext>Your emerge --info might help here as well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wltjr@gentoo.org</who>
            <bug_when>2008-06-03 16:35:54 0000</bug_when>
            <thetext>Been aware of it for a bit, also know of a fix. Just need to add another line of sed to the ebuild. I will do so ASAP today. I forgot last time a user reported, and no bug was filed at the time. So it slipped my mind :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wltjr@gentoo.org</who>
            <bug_when>2008-06-04 04:19:43 0000</bug_when>
            <thetext>Actually it seems the problem is in the conf.d file. Seems I am still setting the root dir to FIREBIRD=/usr/share/firebird when it should be FIREBIRD=/usr/lib/firebird. So lose that symlink, update the conf.d file and restart Firebird. Please let me know if that resolves the problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jan.slezak@elcomgroup.eu</who>
            <bug_when>2008-06-04 11:17:43 0000</bug_when>
            <thetext>It seems the FIREBIRD modification in conf.d resolves the problem. But I think LD_LIBRARY_PATH in the same file and all settings in /etc/env.d/70firebird are also wrong, maybe unnecessary.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wltjr@gentoo.org</who>
            <bug_when>2008-06-04 13:44:05 0000</bug_when>
            <thetext>Yes they are wrong, and pretty sure unnecessary. Now that things have been moved out of opt. Thanks for confirming the conf.d file problem. I will correct both ASAP today.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>thor_n@yahoo.com</who>
            <bug_when>2008-06-04 13:47:23 0000</bug_when>
            <thetext>Setting FIREBIRD=/usr/lib/firebird in /etc/conf.d/firebird does indeed fix the problem. (Without intl link in /usr/share/firebird, of course.)

And Jan Slezak is right that LD_LIBRARY_PATH=$FIREBIRD/lib seems weird since there is no directory like that.
As well as those two paths in /etc/env.d/70firebird to /opt dir are not used anymore.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wltjr@gentoo.org</who>
            <bug_when>2008-06-06 02:44:52 0000</bug_when>
            <thetext>Ok just committed revisions with updated conf.d file and removed env.d file. Should resolve this bug. Although I will likely move the fbintl.conf file to /etc/ from /usr/lib/firebird/intl. Saving that for another day.

Please reopen if not resolved, and thanks for reporting.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>