Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363791 - dev-tcltk/itk - env.d file's LDPATH points to wrong directory
Summary: dev-tcltk/itk - env.d file's LDPATH points to wrong directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TCL/TK Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-16 06:00 UTC by Jan Kohnert
Modified: 2011-04-18 06:10 UTC (History)
1 user (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 Jan Kohnert 2011-04-16 06:00:19 UTC
When merging dev-tcltk/itk-3.3.1_pre20090417, a file in /etc/env.d ist created:

kohni ~ # cat /etc/env.d/34itk 
LDPATH="/usr/lib/itk3.3/"
kohni ~ # 

However, the installed library is located:

kohni ~ # equery b libitk3.4.so
[ Searching for file(s) libitk3.4.so in *... ]
dev-tcltk/itk-3.3.1_pre20090417 (/usr/lib/itk3.4/libitk3.4.so)
kohni ~ # 

So the env-file should be updated.

Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2011-04-17 08:21:35 UTC
 cat >> "${T}"/34${PN} <<- EOF
   LDPATH="${EPREFIX}/usr/$(get_libdir)/${PN}$(get_version_component_range 1-2)/"
   EOF
   doenvd "${T}"/34${PN} || die

You should run etc-update or dispatch-conf.. The current ebuild installs the right path. Probably you ignored the change in the env-file and it isn't updated by etc-update any more. Remove the file and reemerge the package
Comment 2 Jan Kohnert 2011-04-18 03:58:31 UTC
First of all: I always run etc-update after world updates. 

kohni ~ # cat /etc/env.d/34itk 
LDPATH="/usr/lib/itk3.4/"
kohni ~ # emerge -av1 itk
... [output removed] ...
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.
kohni ~ # cat /etc/env.d/34itk 
LDPATH="/usr/lib/itk3.3/"
kohni ~ # etc-update 
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)
kohni ~ # 

The fix is easy, I know how to use Vi, but anyway, that's annoying, but probably a bug in portage, not the ebuild itself. I'm using current x86 stable portage...

kohni ~ # eix ^portage$
[I] sys-apps/portage
     Available versions:  [P]2.1.6.7 2.1.6.13 2.1.8.3 2.1.9.25 2.1.9.42 ~2.1.9.45 ~2.1.9.46 ~*2.2.0_alpha28 ~*2.2.0_alpha29 ~*2.2.0_alpha30 **9999 {build doc epydoc +ipc linguas_pl python2 python3 selinux}                                                                    
     Installed versions:  2.1.9.42(03:50:16 30.03.2011)(ipc -build -doc -epydoc -linguas_pl -python2 -python3 -selinux)
     Homepage:            http://www.gentoo.org/proj/en/portage/index.xml
     Description:         Portage is the package management and distribution system for Gentoo

kohni ~ # 

Regards Jan
Comment 3 Jan Kohnert 2011-04-18 04:06:36 UTC
BTW: If I understand [1] correctly, the code *has* to write 3.3 to the env-file, since get_version_component_range extracts the version from the ebuild file, an that is still called 3.3_$blahblubb...

[1] http://devmanual.gentoo.org/ebuild-writing/variables/index.html
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2011-04-18 06:10:16 UTC
You are absolutely right.


+*itk-3.3.1_pre20090417-r1 (18 Apr 2011)
+
+  18 Apr 2011; Justin Lecher <jlec@gentoo.org> -itk-3.3.1_pre20090417.ebuild,
+  +itk-3.3.1_pre20090417-r1.ebuild:
+  Fix env.d file's LDPATH points to wrong directory, #363791
+