First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 128557
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Samuli Suominen <ssuominen@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
bmpx-9999.ebuild Testcase ebuild of BMPx SVN HEAD, with USE="nls" text/plain Samuli Suominen 2006-04-02 13:10 0000 2.53 KB Details
gettext-0.14.5-fix-for-expat.patch Make gettext look just .so instead of .so.0 as both versions of expat provides it. patch Samuli Suominen 2006-04-02 13:59 0000 628 bytes Details | Diff
gettext-expat-2.patch gettext-expat-2.patch patch SpanKY 2006-04-04 19:49 0000 6.84 KB Details | Diff
5454-gettext-0.14.5-r1.log 5454-gettext-0.14.5-r1.log, building with new patch. OK. text/plain Samuli Suominen 2006-04-05 07:02 0000 526.14 KB Details
gettext-0.14.5-r1.ebuild Ebuild I used for testing. text/plain Samuli Suominen 2006-04-05 12:06 0000 3.81 KB Details
gettext-expat-2.patch Patch I used for testing. patch Samuli Suominen 2006-04-05 12:07 0000 3.36 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 128557 depends on: Show dependency tree
Bug 128557 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-04-02 12:58 0000
dev-libs/expat-2.0.0 provides /usr/lib/libexpat.so.1 but gettext doesn't find
it.

unaffiliated portage # strings $(which xgettext) | grep expat
libexpat.so.0
Language "glade" is not supported. %s relies on expat.
This version was built without expat.

resulting this..

sed -e '/^#/d' remove-potcdate.sin > t-remove-potcdate.sed
mv t-remove-potcdate.sed remove-potcdate.sed
/usr/bin/xgettext --default-domain=program --directory=.. \
  --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ \
  --files-from=./POTFILES.in \
  --copyright-holder='Free Software Foundation, Inc.' \
  --msgid-bugs-address=''
/usr/bin/xgettext: warning: The option --msgid-bugs-address was not specified.
                            If you are using a `Makevars' file, please specify
                            the MSGID_BUGS_ADDRESS variable there; otherwise
please
                            specify an --msgid-bugs-address command line
option.
/usr/bin/xgettext: Language "glade" is not supported. xgettext relies on expat.
                   This version was built without expat.

------- Comment #1 From Samuli Suominen 2006-04-02 13:10:41 0000 -------
Created an attachment (id=83750) [edit]
Testcase ebuild of BMPx SVN HEAD, with USE="nls"

------- Comment #2 From Samuli Suominen 2006-04-02 13:11:11 0000 -------
Problem goes away, when libexpat.so.1.5.0 is symlinked to libexpat.so.0

------- Comment #3 From Samuli Suominen 2006-04-02 13:36:04 0000 -------
in gettext-0.14.5/gettext-tools/src/x-glade.c

load_libexpat ()
{
  if (libexpat_loaded == 0)
    {
      void *handle = dlopen ("libexpat.so.0", RTLD_LAZY);
      if (handle != NULL
          && (p_XML_ParserCreate = dlsym (handle, "XML_ParserCreate")) != NULL
          && (p_XML_SetElementHandler = dlsym (handle,
"XML_SetElementHandler")) != NULL
          && (p_XML_SetCharacterDataHandler = dlsym (handle,
"XML_SetCharacterDataHandler")) != NULL
          && (p_XML_SetCommentHandler = dlsym (handle,
"XML_SetCommentHandler")) != NULL
          && (p_XML_Parse = dlsym (handle, "XML_Parse")) != NULL
          && (p_XML_GetErrorCode = dlsym (handle, "XML_GetErrorCode")) != NULL
          && (p_XML_GetCurrentLineNumber = dlsym (handle,
"XML_GetCurrentLineNumber")) != NULL
          && (p_XML_GetCurrentColumnNumber = dlsym (handle,
"XML_GetCurrentColumnNumber")) != NULL
          && (p_XML_ParserFree = dlsym (handle, "XML_ParserFree")) != NULL
          && (p_XML_ErrorString = dlsym (handle, "XML_ErrorString")) != NULL)
        libexpat_loaded = 1;
      else
        libexpat_loaded = -1;
    }
  return libexpat_loaded >= 0;
}

------- Comment #4 From Samuli Suominen 2006-04-02 13:59:19 0000 -------
Created an attachment (id=83758) [edit]
Make gettext look just .so instead of .so.0 as both versions of expat provides
it.

------- Comment #5 From SpanKY 2006-04-02 14:36:17 0000 -------
should maybe be:
void *handle = dlopen ("libexpat.so.0", RTLD_LAZY);
if (handle == NULL)
    void *handle = dlopen ("libexpat.so.1", RTLD_LAZY);

i'll bug upstream

------- Comment #6 From SpanKY 2006-04-04 19:49:21 0000 -------
Created an attachment (id=83943) [edit]
gettext-expat-2.patch

please give this patch a test from upstream

------- Comment #7 From Samuli Suominen 2006-04-05 07:02:47 0000 -------
Created an attachment (id=83977) [edit]
5454-gettext-0.14.5-r1.log, building with new patch. OK.

Moment, building the program that uses gettext I encountered this problem in
first place..

------- Comment #8 From Samuli Suominen 2006-04-05 07:38:06 0000 -------
Seems to be working.

------- Comment #9 From Samuli Suominen 2006-04-05 12:04:58 0000 -------
Damn, it didn't work afterall! Sorry about the previous post, builded wrong
version by an accident.

make[4]: Leaving directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999/src'
make[3]: Leaving directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999/src'
make[2]: Leaving directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999/src'
Making all in data
make[2]: Entering directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999/data'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999/data'
Making all in docs
make[2]: Entering directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999/docs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999/docs'
Making all in po
make[2]: Entering directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999/po'
make bmpx.pot-update
make[3]: Entering directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999/po'
sed -e '/^#/d' remove-potcdate.sin > t-remove-potcdate.sed
mv t-remove-potcdate.sed remove-potcdate.sed
/usr/bin/xgettext --default-domain=bmpx --directory=.. \
  --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ \
  --files-from=./POTFILES.in \
  --copyright-holder='Free Software Foundation, Inc.' \
  --msgid-bugs-address=''
/usr/bin/xgettext: warning: The option --msgid-bugs-address was not specified.
                            If you are using a `Makevars' file, please specify
                            the MSGID_BUGS_ADDRESS variable there; otherwise
please
                            specify an --msgid-bugs-address command line
option./usr/bin/xgettext: Language "glade" is not supported. xgettext relies on
expat.
                   This version was built without expat.
make[3]: *** [bmpx.pot-update] Error 1
make[3]: Leaving directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999/po'
make[2]: *** [bmpx.pot] Error 2
make[2]: Leaving directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/bmpx-9999/work/bmpx-9999'
make: *** [all] Error 2

------- Comment #10 From Samuli Suominen 2006-04-05 12:06:14 0000 -------
Created an attachment (id=84007) [edit]
Ebuild I used for testing.

------- Comment #11 From Samuli Suominen 2006-04-05 12:07:18 0000 -------
Created an attachment (id=84008) [edit]
Patch I used for testing.

------- Comment #12 From Samuli Suominen 2006-04-05 12:30:14 0000 -------
drac@unaffiliated ~ $ grep MAJOR /usr/include/expat.h
#define XML_MAJOR_VERSION 2

It's there.. but still it doesn't pick it up. This is also strange:

drac@unaffiliated ~ $ strings `which xgettext` | grep -i expat
libexpat.so.0
Language "glade" is not supported. %s relies on expat.
This version was built without expat.

no strings of libexpat.so.1..

------- Comment #13 From Samuli Suominen 2006-06-19 13:24:09 0000 -------
BMPx now compiles, but still.. problem is still there. gettext doesn't use
expat 2.x at all, because of hardcoding. See comment 3.

------- Comment #14 From Samuli Suominen 2006-07-22 09:28:26 0000 -------
spanky, can you version bump gettext to 0.15, it was relesed yesterday and has
code for expat 2.0.

and close this bug.

------- Comment #15 From SpanKY 2006-07-30 18:56:10 0000 -------
0.15 now in cvs

First Last Prev Next    No search results available      Search page      Enter new bug