Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679380 - media-libs/gd-2.2.5-r2 - src_unpack(): cp: cannot stat '/var/tmp/portage/media-libs/gd-2.2.5-r2/distdir/libgd-2.2.5-ossfuzz5700.dat': No such file or directory
Summary: media-libs/gd-2.2.5-r2 - src_unpack(): cp: cannot stat '/var/tmp/portage/medi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-04 05:12 UTC by email200202
Modified: 2019-03-04 12:33 UTC (History)
15 users (show)

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


Attachments
build.log (build.log,1.67 KB, text/plain)
2019-03-04 05:12 UTC, email200202
Details
emerge -pqv '=media-libs/gd-2.2.5-r2::gentoo' (file_679380.txt,199 bytes, text/plain)
2019-03-04 05:15 UTC, email200202
Details
emerge --info '=media-libs/gd-2.2.5-r2::gentoo' (file_679380.txt,7.03 KB, text/plain)
2019-03-04 05:16 UTC, email200202
Details

Note You need to log in before you can comment on or make changes to this bug.
Description email200202 2019-03-04 05:12:59 UTC
Created attachment 567710 [details]
build.log

media-libs/gd-2.2.5-r2 failed with the message:

>>> Emerging (1 of 1) media-libs/gd-2.2.5-r2::gentoo
 * libgd-2.2.5.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking libgd-2.2.5.tar.xz to /var/tmp/portage/media-libs/gd-2.2.5-r2/work
cp: cannot stat '/var/tmp/portage/media-libs/gd-2.2.5-r2/distdir/libgd-2.2.5-ossfuzz5700.dat': No such file or directory
 * ERROR: media-libs/gd-2.2.5-r2::gentoo failed (unpack phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_unpack
 *   environment, line 1946:  Called die
 * The specific snippet of code:
 *       cp "${DISTDIR}"/lib${P}-ossfuzz5700.dat "${S}"/tests/gif/ossfuzz5700.gif || die;
 * 
 * If you need support, post the output of `emerge --info '=media-libs/gd-2.2.5-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/gd-2.2.5-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/gd-2.2.5-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/gd-2.2.5-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/gd-2.2.5-r2/work'
 * S: '/var/tmp/portage/media-libs/gd-2.2.5-r2/work/libgd-2.2.5'
Comment 1 email200202 2019-03-04 05:15:13 UTC
Created attachment 567712 [details]
emerge -pqv '=media-libs/gd-2.2.5-r2::gentoo'
Comment 2 email200202 2019-03-04 05:16:21 UTC
Created attachment 567714 [details]
emerge --info '=media-libs/gd-2.2.5-r2::gentoo'
Comment 3 Juergen Rose 2019-03-04 07:54:33 UTC
I have the same issue.
Comment 4 max 2019-03-04 10:46:34 UTC
This is caused by the addition of the test use flag in gd-2.2.5-r2.

The two files 'ossfuzz5700.dat' and 'php_bug_75571.dat' are only downloaded when the 'test' use flag is enabled on lines 11-14 of the ebuild.

Both of these files are unconditionally used on lines 48/49 of the ebuild:

    cp "${DISTDIR}"/lib${P}-ossfuzz5700.dat "${S}"/tests/gif/ossfuzz5700.gif || die
    cp "${DISTDIR}"/lib${P}-php_bug_75571.dat "${S}"/tests/gif/php_bug_75571.gif || die

This should be done conditional to the use flag:

    if use test; then 
        cp "${DISTDIR}"/lib${P}-ossfuzz5700.dat "${S}"/tests/gif/ossfuzz5700.gif || die
        cp "${DISTDIR}"/lib${P}-php_bug_75571.dat "${S}"/tests/gif/php_bug_75571.gif || die
    fi

Or similar.  In the mean time you can build this package by enabling the test use flag.
Comment 5 Larry the Git Cow gentoo-dev 2019-03-04 12:33:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53839e1b65680123ed8cd5d2c34a8862c59fb58d

commit 53839e1b65680123ed8cd5d2c34a8862c59fb58d
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-03-04 12:32:47 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-03-04 12:33:19 +0000

    media-libs/gd: Fixed build with USE="-test".
    
    Closes: https://bugs.gentoo.org/679380
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 media-libs/gd/gd-2.2.5-r2.ebuild | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)