Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33178 - gettext ebuild BUG: /usr/lib/libintl.la & other .la files installed: EASY FIX
Summary: gettext ebuild BUG: /usr/lib/libintl.la & other .la files installed: EASY FIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-10 15:21 UTC by Jean-Michel Smith
Modified: 2004-05-02 12:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Michel Smith 2003-11-10 15:21:06 UTC
The gettext ebuild avoids installing the libraries (which is correct, as glibc
already includes gettext).  However, it installs pointers to the non-existent
libraries in /usr/lib, e.g. /usr/lib/libintl.la.

This breaks compilation of some programs that link against Sybase, as they seek
sybase's libintl.a library and get pointed to /usr/lib/libintl.a, which doesn't
exist.

FIX:  Add .la to the rm command in the ebuild.  Instead of:

rm -rf ${D}/usr/lib/*.{a,so}

do:

rm -rf ${D}/usr/lib/*.{a,la,so}

Leaving the .la files in place appears to have been an oversight in the ebuld

Reproducible: Always
Steps to Reproduce:
1. ls /usr/lib/libintl.la --> shows file exists
2. edit /usr/lib/libintl.la --> shows library strings point to /usr/lib/libintl.a
3. /usr/lib/libintl.a does not exist

Actual Results:  
/usr/lib/libintl.la
/usr/lib/libgettextsrc.la
/usr/lib/libintl.la

All exist, though their corresponding .a libraries do not.

Expected Results:  
none of the above files should exist, as they point to .a libraries that do not
exist.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-11-10 15:40:57 UTC
Az, thoughts?

Jean -- what version of gettext btw?
Comment 2 Jean-Michel Smith 2003-11-11 09:06:58 UTC
The current "stable" release:

*  sys-devel/gettext
      Latest version available: 0.11.5-r1
      Latest version installed: 0.11.5-r1
      Size of downloaded files: 3,636 kB
      Homepage:    http://www.gnu.org/software/gettext/gettext.html
      Description: GNU locale utilities
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-15 07:46:48 UTC
Seemant, this is correct especially if the .la's points to non existant
libs.  I guess an alternative could be to sed the .la's to point to libc,
but I do not know if anything depends on gettext being libtoolized ...

Comment 4 SpanKY gentoo-dev 2004-05-02 12:30:23 UTC
gettext-0.12.1-r1 fixes this