Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319759 - libpng-1.4.2 fails to install (compiles ok)
Summary: libpng-1.4.2 fails to install (compiles ok)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 20:15 UTC by Guilherme Amadio
Modified: 2010-05-15 09:54 UTC (History)
0 users

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 Guilherme Amadio gentoo-dev 2010-05-14 20:15:15 UTC
dosbin failed because file to be installed does not exist:

!!! dosbin: /Library/Gentoo/usr/portage/media-libs/libpng/files/libpng-1.4.x-update.sh does not exist
 * ERROR: media-libs/libpng-1.4.2 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called call-ebuildshell 'src_install'
 *   environment, line 219:  Called src_install
 *   environment, line 1310:  Called die
 * The specific snippet of code:
 *       dosbin "${FILESDIR}"/libpng-1.4.x-update.sh || die
 * 
 * If you need support, post the output of 'emerge --info =media-libs/libpng-1.4.2',
 * the complete build log and the output of 'emerge -pqv =media-libs/libpng-1.4.2'.
 * The complete build log is located at '/Library/Gentoo/var/tmp/portage/media-libs/libpng-1.4.2/temp/build.log'.
 * The ebuild environment file is located at '/Library/Gentoo/var/tmp/portage/media-libs/libpng-1.4.2/temp/environment'.
 * S: '/Library/Gentoo/var/tmp/portage/media-libs/libpng-1.4.2/work/libpng-1.4.2'
 * QA Notice: file does not exist:
 * 
 * 	dosbin: /Library/Gentoo/usr/portage/media-libs/libpng/files/libpng-1.4.x-update.sh does not exist


Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-05-14 20:17:05 UTC
The file is there. You have broken Portage tree (sync).

Proof:

ssuominen@foo ~/gentoo-x86/media-libs/libpng $ cvs up
ssuominen@foo ~/gentoo-x86/media-libs/libpng $ ls files/
CVS  libpng-1.4.x-update.sh
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-05-14 20:20:32 UTC
Sorry. Reopening, it's a missing file in prefix-overlay, not in Portage.
Comment 3 Guilherme Amadio gentoo-dev 2010-05-14 20:23:40 UTC
I commented the line that installed the script and it installed ok, except for some file collisions with
libpng-1.4.1, which I resolved by uninstalling it and installing 1.4.2 later.

src_install() {
    emake DESTDIR="${D}" install || die
    dodoc ANNOUNCE CHANGES README TODO || die
    # dosbin "${FILESDIR}"/libpng-1.4.x-update.sh || die
}

However, since this script is not included anymore, pkg_postinst should also be upgraded or removed:

pkg_postinst() {
    echo
    ewarn "Moving from libpng 1.2.x to 1.4.x will break installed libtool .la"
    ewarn "files."
    echo
    elog "Run /usr/sbin/libpng-1.4.x-update.sh at your own risk only if"
    elog "revdep-rebuild or lafilefixer fails."
    echo
    elog "Don't forget \"man emerge\" and useful parameters like --skip-first,"
    elog "--resume and --keep-going."
    echo
}
Comment 4 Guilherme Amadio gentoo-dev 2010-05-14 20:24:27 UTC
Yes, this is a problem in prefix.

No problem.
Comment 5 Guilherme Amadio gentoo-dev 2010-05-14 20:26:24 UTC
If the file is in portage, copying it over to prefix should be an easy fix to the issue.
Comment 6 Fabian Groffen gentoo-dev 2010-05-15 09:54:16 UTC
ok, added the script and some sed-foo to fix it for Prefix.  Thanks!