Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135239 - crosscompiling python. python-2.4.1-bindir-libdir.patch
Summary: crosscompiling python. python-2.4.1-bindir-libdir.patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 130278 (view as bug list)
Depends on:
Blocks: 145984
  Show dependency tree
 
Reported: 2006-06-02 02:15 UTC by Guseinov Alexey
Modified: 2007-05-07 07:49 UTC (History)
2 users (show)

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


Attachments
modified patch (python-2.4.1-crosscompile.patch,4.03 KB, patch)
2006-06-03 06:22 UTC, Guseinov Alexey
Details | Diff
Modified patch (python-2.4.1-bindir-libdir.patch,407 bytes, patch)
2006-06-03 06:26 UTC, Guseinov Alexey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guseinov Alexey 2006-06-02 02:15:07 UTC
If python ebuild finds that python is beeng crosscompiling it applies two patches:
---
	# fix os.utime() on hppa. utimes it not supported but unfortunately reported as working - gmsoft (22 May 04)
	# PLEASE LEAVE THIS FIX FOR NEXT VERSIONS AS IT'S A CRITICAL FIX !!!
	[ "${ARCH}" = "hppa" ] && sed -e 's/utimes //' -i ${S}/configure

	if tc-is-cross-compiler ; then
		epatch "${WORKDIR}/${PATCHTAR}"/python-2.4.1-bindir-libdir.patch
		epatch "${WORKDIR}/${PATCHTAR}"/python-2.4.1-crosscompile.patch
	fi
---
But first patch doesn't fit any more. It uses "Python-2.4c1" in it's paths. Heare is log:
*************************************************************
***** python-2.4.1-bindir-libdir.patch *****

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

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < /var/tmp/portage/python-2.4.2/work/python-2.4-patches-1/python-2.4.1-bindir-libdir.patch

============================================
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|#
|# Patch managed by http://www.holgerschurig.de/patcher.html
|#
|
|--- Python-2.4c1/Makefile.pre.in~bindir-libdir.patch
|+++ Python-2.4c1/Makefile.pre.in
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
============================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < /var/tmp/portage/python-2.4.2/work/python-2.4-patches-1/python-2.4.1-bindir-libdir.patch

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

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < /var/tmp/portage/python-2.4.2/work/python-2.4-patches-1/python-2.4.1-bindir-libdir.patch

============================================
missing header for unified diff at line 8 of patch
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|#
|# Patch managed by http://www.holgerschurig.de/patcher.html
|#
|
|--- Python-2.4c1/Makefile.pre.in~bindir-libdir.patch
|+++ Python-2.4c1/Makefile.pre.in
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
============================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < /var/tmp/portage/python-2.4.2/work/python-2.4-patches-1/python-2.4.1-bindir-libdir.patch

============================================
missing header for unified diff at line 8 of patch
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|#
|# Patch managed by http://www.holgerschurig.de/patcher.html
|#
|
|--- Python-2.4c1/Makefile.pre.in~bindir-libdir.patch
|+++ Python-2.4c1/Makefile.pre.in
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
============================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < /var/tmp/portage/python-2.4.2/work/python-2.4-patches-1/python-2.4.1-bindir-libdir.patch

============================================
missing header for unified diff at line 8 of patch
can't find file to patch at input line 8
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|
|#
|# Patch managed by http://www.holgerschurig.de/patcher.html
|#
|
|--- Python-2.4c1/Makefile.pre.in~bindir-libdir.patch
|+++ Python-2.4c1/Makefile.pre.in
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
****************************************************************
So merging stops wih error:
---
 * Applying python-2.4.1-bindir-libdir.patch ...

 * Failed Patch: python-2.4.1-bindir-libdir.patch !
 *  ( /var/tmp/portage/python-2.4.2/work/python-2.4-patches-1/python-2.4.1-bindir-libdir.patch )
---
This applies to all versions of python in portages.
Comment 1 Guseinov Alexey 2006-06-03 06:22:42 UTC
Created attachment 88252 [details, diff]
modified patch

Now this patch applies to Python 2.4.3-r1
Comment 2 Guseinov Alexey 2006-06-03 06:26:39 UTC
Created attachment 88253 [details, diff]
Modified patch

Noq it can be aplyed to python 2.4.3-r1
BUT it may not work on 32bit systems.
I have noticed that on my athlon64 in Makefile.in libdir ends with smth/lib64. I gues, that on 32bit systems it vill be smth/lib
Comment 3 Guseinov Alexey 2006-06-03 06:29:04 UTC
So, after replacing this patches in python-2.4-patches-2.tar.bz2 crosscompiling went OK. I have only one question, is it possible not to include "Python-*.*.*" in file path in patches?
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2006-09-02 05:28:27 UTC
*** Bug 130278 has been marked as a duplicate of this bug. ***
Comment 5 Bryan Østergaard (RETIRED) gentoo-dev 2007-05-07 07:49:10 UTC
Crosscompile patches are a bit different now but this should be fixed in latest versions.