Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264472 - dev-lang/lua-5.1.4 fails to build with static
Summary: dev-lang/lua-5.1.4 fails to build with static
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Matti Bickel (RETIRED)
URL:
Whiteboard:
Keywords:
: 265060 265070 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-01 07:14 UTC by Icebird
Modified: 2009-04-13 08:59 UTC (History)
3 users (show)

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


Attachments
working patch (lua-5.1.4-r1-static.patch,728 bytes, patch)
2009-04-09 07:49 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Icebird 2009-04-01 07:14:08 UTC
* Failed Patch: lua-5.1-make_static.patch !
 *  ( /usr/portage/dev-lang/lua/files/lua-5.1-make_static.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/dev-lang/lua-5.1.4/temp/lua-5.1-make_static.patch-22617.out

 *
 * ERROR: dev-lang/lua-5.1.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2408:  Called epatch '/usr/portage/dev-lang/lua/files/lua-5.1-make_static.patch'
 *             environment, line 1255:  Called die
 * The specific snippet of code:
 *                   die "Failed Patch: ${patchname}!";
 *  The die message:
 *   Failed Patch: lua-5.1-make_static.patch!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-lang/lua-5.1.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/lua-5.1.4/temp/environment'.
 *


Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge dev-lang/lua





***** lua-5.1-make_static.patch *****

=====================================

PATCH COMMAND:   patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-lang/lua/files/lua-5.1-make_static.patch

=====================================
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru lua-5.1.1.orig/src/Makefile lua-5.1.1/src/Makefile
|--- lua-5.1.1.orig/src/Makefile        2006-11-21 07:19:31 +0000
|+++ lua-5.1.1/src/Makefile     2006-11-21 07:19:52 +0000
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=====================================

PATCH COMMAND:   patch -p1 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-lang/lua/files/lua-5.1-make_static.patch

=====================================
patching file src/Makefile
Hunk #1 FAILED at 196.
1 out of 1 hunk FAILED -- saving rejects to file src/Makefile.rej
=====================================

PATCH COMMAND:   patch -p2 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-lang/lua/files/lua-5.1-make_static.patch

=====================================
patching file Makefile
Hunk #1 FAILED at 196.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
=====================================

PATCH COMMAND:   patch -p3 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-lang/lua/files/lua-5.1-make_static.patch

=====================================
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru lua-5.1.1.orig/src/Makefile lua-5.1.1/src/Makefile
|--- lua-5.1.1.orig/src/Makefile        2006-11-21 07:19:31 +0000
|+++ lua-5.1.1/src/Makefile     2006-11-21 07:19:52 +0000
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=====================================

PATCH COMMAND:   patch -p4 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-lang/lua/files/lua-5.1-make_static.patch

=====================================
missing header for unified diff at line 4 of patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ru lua-5.1.1.orig/src/Makefile lua-5.1.1/src/Makefile
|--- lua-5.1.1.orig/src/Makefile        2006-11-21 07:19:31 +0000
|+++ lua-5.1.1/src/Makefile     2006-11-21 07:19:52 +0000
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
Comment 1 Matti Bickel (RETIRED) gentoo-dev 2009-04-04 09:01:44 UTC
sorry, this was a change introduced with bug #253594 which i applied to make.patch, but not to make_static.patch.

My bad, i just comitted the fix. Thanks for noting this!
Comment 2 Dennis Schridde 2009-04-05 10:16:06 UTC
I am still getting this issue:
Failed Patch: lua-5.1-make_static-r1.patch !

[ebuild     U ] dev-lang/lua-5.1.4-r1 [5.1.4] USE="readline static -deprecated" 0 kB

PATCH COMMAND:   patch -p1 -g0 -E --no-backup-if-mismatch < /var/cache/portage/gentoo/dev-lang/lua/files/lua-5.1-make_static-r1.patch

========================================
patching file src/Makefile              
Hunk #1 FAILED at 196.                  
1 out of 1 hunk FAILED -- saving rejects to file src/Makefile.rej
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2009-04-05 23:21:23 UTC
Yes, this report was about 5.1.4 and i fixed that. It additionally reared up in -r1 and i fixed it with the latest commit. It should work now. Sorry for the inconvinience. I promise to test builds with USE="static" in the future, too.
Comment 4 Icebird 2009-04-06 07:09:58 UTC
The manifest contains lua-5.1-make_static-r1.patch.orig and lua-5.1-make_static-r1.patch.rej but this files was't commited.

>>> Verifying ebuild manifests

!!! A file listed in the Manifest could not be found: /usr/portage/dev-lang/lua/files/lua-5.1-make_static-r1.patch.rej
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-06 07:24:06 UTC
*** Bug 265060 has been marked as a duplicate of this bug. ***
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-06 08:35:33 UTC
*** Bug 265070 has been marked as a duplicate of this bug. ***
Comment 7 Matti Bickel (RETIRED) gentoo-dev 2009-04-06 19:32:09 UTC
In addition, i promise to check the manifest, too. *sigh* 's not my day.
Thanks to swegener who fixed this before i did.
Comment 8 Dennis Schridde 2009-04-09 07:42:56 UTC
dev-lang/lua-5.1.4-r1 still fails for me:
-p1 / -p2:
Hunk #1 FAILED at 196.

[ebuild     U ] dev-lang/lua-5.1.4-r1 [5.1.4] USE="readline static -deprecated" 0 kB
Comment 9 Dennis Schridde 2009-04-09 07:49:26 UTC
Created attachment 187763 [details, diff]
working patch

This patch works for me.
Comment 10 Matti Bickel (RETIRED) gentoo-dev 2009-04-13 08:59:56 UTC
doh, another slip of mine. Corrected. I'll not work anymore while half-asleep. Promised.