Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728794 - dev-lang/lua-5.1.5-r5: missing patch
Summary: dev-lang/lua-5.1.5-r5: missing patch
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
Depends on:
Reported: 2020-06-19 17:35 UTC by Michael Mair-Keimberger (iamnr3)
Modified: 2020-06-20 16:01 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (iamnr3) 2020-06-19 17:35:26 UTC

It seems that dev-lang/lua misses a patch in the files directory:

 * lua-5.1.5.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking lua-5.1.5.tar.gz to /var/tmp/portage/dev-lang/lua-5.1.5-r5/work
>>> Source unpacked in /var/tmp/portage/dev-lang/lua-5.1.5-r5/work
>>> Preparing source in /var/tmp/portage/dev-lang/lua-5.1.5-r5/work/lua-5.1.5 ...
 * Applying lua-5.1.5-gentoo-build.patch ...                                                                                                                                                                   [ ok ]

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *   /var/tmp/portage/dev-lang/lua-5.1.5-r5/files/lua-5.1.5-disable-readline.patch
 *   ( lua-5.1.5-disable-readline.patch )

 * ERROR: dev-lang/lua-5.1.5-r5::gentoo failed (prepare phase):
 *   Cannot find $EPATCH_SOURCE!
 * Call stack:
 *, line  125:  Called src_prepare
 *   environment, line 3111:  Called epatch '/var/tmp/portage/dev-lang/lua-5.1.5-r5/files/lua-5.1.5-disable-readline.patch'
 *   environment, line  818:  Called die
 * The specific snippet of code:
 *                   die "Cannot find \$EPATCH_SOURCE!";
 * If you need support, post the output of `emerge --info '=dev-lang/lua-5.1.5-r5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/lua-5.1.5-r5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/lua-5.1.5-r5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/lua-5.1.5-r5/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/lua-5.1.5-r5/work/lua-5.1.5'
 * S: '/var/tmp/portage/dev-lang/lua-5.1.5-r5/work/lua-5.1.5

I think the ebuild uses the wrong file for patching. 
r5 came with 719f9a18c8709bf355d7ea80c09cd4e87f0a11fe which also brought us lua-5.1.5-readline.patch which is actually unused. 
So i guess instead of calling epatch lua-5.1.5-disable-readline.patch it would be correct to call epatch lua-5.1.5-readline.patch ?