Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519464 - app-i18n/nkf-2.1.3 USE=-python - mv: cannot stat '/var/tmp/portage/app-i18n/nkf-2.1.3/work/NKF.python': No such file or directory
Summary: app-i18n/nkf-2.1.3 USE=-python - mv: cannot stat '/var/tmp/portage/app-i18n/n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-08 22:58 UTC by Takurou Kitagawa
Modified: 2014-08-09 08:30 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 Takurou Kitagawa 2014-08-08 22:58:22 UTC
I have tried to upgrade app-i18n/nkf to 2.1.3, but emerge failed.
I guess nkf-2.1.3.ebuild works only when USE flag contains "python".

Steps to Reproduce:
env PORTAGE_TMPDIR=/var/tmp USE=-python ebuild nkf-2.1.3.ebuild compile

Actual Results:
 * nkf-2.1.3.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                 [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking nkf-2.1.3.tar.gz to /var/tmp/portage/app-i18n/nkf-2.1.3/work
>>> Source unpacked in /var/tmp/portage/app-i18n/nkf-2.1.3/work
>>> Preparing source in /var/tmp/portage/app-i18n/nkf-2.1.3/work/nkf-2.1.3 ...
mv: cannot stat '/var/tmp/portage/app-i18n/nkf-2.1.3/work/NKF.python': No such file or directory
 * ERROR: app-i18n/nkf-2.1.3::gentoo failed (prepare phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_prepare
 *   environment, line 3826:  Called die
 * The specific snippet of code:
 *       mv "${WORKDIR}/NKF.python" "${S}" || die;
 *
 * If you need support, post the output of `emerge --info '=app-i18n/nkf-2.1.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-i18n/nkf-2.1.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-i18n/nkf-2.1.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-i18n/nkf-2.1.3/temp/environment'.
 * Working directory: '/var/tmp/portage/app-i18n/nkf-2.1.3/work/nkf-2.1.3'
 * S: '/var/tmp/portage/app-i18n/nkf-2.1.3/work/nkf-2.1.3'

Additional Information:
I fixed nkf-2.1.3.ebuild, and it seems to work well.

--- nkf-2.1.3.ebuild.orig       2014-08-09 07:38:05.000000000 +0900
+++ nkf-2.1.3.ebuild    2014-08-09 07:53:09.000000000 +0900
@@ -22,8 +22,10 @@
                -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
                Makefile || die

-       mv "${WORKDIR}/NKF.python" "${S}" || die
-       epatch "${FILESDIR}"/${P}-strip.patch
+       if use python; then
+               mv "${WORKDIR}/NKF.python" "${S}" || die
+               epatch "${FILESDIR}"/${P}-strip.patch
+       fi
 }

 src_compile() {
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-09 08:30:23 UTC
I think I might have broken.

Fixed again. Thanks for the report!