Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347929 - bug on dev-lang/tk-8.5.9 ebuild
Summary: bug on dev-lang/tk-8.5.9 ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 348026 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-06 18:40 UTC by Guilherme Amadio
Modified: 2010-12-07 13:12 UTC (History)
1 user (show)

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


Attachments
tk-8.5.9.ebuild (tk-8.5.9.ebuild,3.09 KB, text/plain)
2010-12-06 18:41 UTC, Guilherme Amadio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guilherme Amadio gentoo-dev 2010-12-06 18:40:05 UTC
There is a line of code that always evaluates to die on Mac OS X in the ebuild.


>>> Install tk-8.5.9 into /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image/Library/Gentoo/ category dev-lang
make -j9 DESTDIR=/Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image/ install 
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/include
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib/tk8.5/demos
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/share/man
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/bin
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib/tk8.5/demos/images
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib/tk8.5/images
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/share/man/man1
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib/tk8.5/msgs
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/share/man/man3
Installing demos to /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib/tk8.5/demos/
Creating package index /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib/tk8.5/pkgIndex.tcl
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib/tk8.5/ttk
Making directory /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/share/man/mann
Installing and cross-linking top-level (.1) docs
Installing libtk8.5.dylib to /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib/
Installing header files
Installing and cross-linking C API (.3) docs
Installing wish as /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/bin/wish8.5
Installing tkConfig.sh to /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib/
Installing libtkstub8.5.a to /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib/
Installing library files to /Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/image//Library/Gentoo/usr/lib/tk8.5
Installing demo images
Installing library ttk directory
Installing library images directory
Installing translation directory
Installing and cross-linking command (.n) docs
 * ERROR: dev-lang/tk-8.5.9 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  62:  Called src_install
 *   environment, line 2930:  Called die
 * The specific snippet of code:
 *       [[ ${CHOST} != *-darwin* ]] && sed -i -e "s,^\(TK_CC_SEARCH_FLAGS='.*\)',\1:${EPREFIX}/usr/${mylibdir}'," -e "s,^\(TK_LD_SEARCH_FLAGS='.*\)',\1:${EPREFIX}/usr/${mylibdir}'," "${ED}"/usr/${mylibdir}/tkConfig.sh || die;
 * 
 * If you need support, post the output of 'emerge --info =dev-lang/tk-8.5.9',
 * the complete build log and the output of 'emerge -pqv =dev-lang/tk-8.5.9'.
 * The complete build log is located at '/Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/temp/build.log'.
 * The ebuild environment file is located at '/Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/temp/environment'.
 * S: '/Library/Gentoo/var/tmp/portage/dev-lang/tk-8.5.9/work/tk8.5.9'

I will attach my fixed ebuild in a comment.



Reproducible: Always
Comment 1 Guilherme Amadio gentoo-dev 2010-12-06 18:41:53 UTC
Created attachment 256514 [details]
tk-8.5.9.ebuild

Fixed ebuild.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2010-12-07 09:10:58 UTC
+  07 Dec 2010; Justin Lecher <jlec@gentoo.org> tk-8.5.8-r1.ebuild,
+  tk-8.5.9.ebuild:
+  Corrected logic on die, thanks Guilherme Amadio for the patch #347929
+
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-12-07 13:12:53 UTC
*** Bug 348026 has been marked as a duplicate of this bug. ***