Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 297649 - net-im/naim bundles a copy of libltdl
Summary: net-im/naim bundles a copy of libltdl
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: bundled-libs
  Show dependency tree
 
Reported: 2009-12-20 13:57 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-04-19 11:50 UTC (History)
2 users (show)

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


Attachments
Use system libltdl (naim-0.11.8.3.2-system_libltdl.patch,2.10 KB, patch)
2010-03-03 10:38 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-20 13:57:59 UTC
Given that libltdl has been found vulnerable, this should be checked thoroughly.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-03-03 10:38:04 UTC
Created attachment 221915 [details, diff]
Use system libltdl

Here is a patch to use system libtool instead of bundled copy, but I'm having a bit trouble:

--- naim-0.11.8.3.2.ebuild      2009-09-23 12:43:57.000000000 +0300                                  
+++ naim-0.11.8.3.2-r1.ebuild   2010-03-03 12:43:19.000000000 +0200
@@ -3,6 +3,7 @@
 # $Header: /var/cvsroot/gentoo-x86/net-im/naim/naim-0.11.8.3.2.ebuild,v 1.1 2009/09/23 09:43:57 ssuominen Exp $

 EAPI=2
+inherit autotools eutils

 DESCRIPTION="An ncurses based AOL Instant Messenger"
 HOMEPAGE="http://naim.n.ml.org"
@@ -13,12 +14,18 @@
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
 IUSE="debug screen"

-RDEPEND="sys-libs/ncurses
+DEPEND=">=sys-devel/libtool-2.2.6b
+       sys-libs/ncurses
        screen? ( app-misc/screen )"
-DEPEND="${RDEPEND}"

 MAKEOPTS="${MAKEOPTS} -j1"

+src_prepare() {
+       epatch "${FILESDIR}"/${P}-system_libltdl.patch
+       rm -rf libltdl
+       AT_M4DIR="libfiretalk src" eautoreconf
+}
+
 src_configure() {
        local myconf="--disable-dnsupdate"

Will result in:

./configure: line 4426: ac_fn_c_check_type: command not found        
./configure: line 4505: syntax error near unexpected token `fi'      
./configure: line 4505: `fi'
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-03-03 11:05:56 UTC
# Samuli Suominen <ssuominen@gentoo.org> (03 Mar 2010)
# Masked for QA, security
#
# Internal copy of vuln. libltdl, CVE-2009-3736
#
# Bugs 252402, 296953, 296954, 215252, 297649
#
# Masked for removal in 60 days
net-libs/libnetdude
net-analyzer/netdude
net-im/naim
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-04-06 17:31:45 UTC
Removed from tree.
Comment 4 thewetzel 2010-04-19 11:50:42 UTC
(In reply to comment #3)
> Removed from tree.
> 

I opened a bug in the naim issue tracker. I borrowed your patch and added two of my own to get naim to compile. I'm not sure if what I did to update lt_dlhandle_next and lt_dlforeach to the modern libltdl API is correct.

http://code.google.com/p/naim/issues/detail?id=32