Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18723 - changes I made to prepstrip, doexe and ebuild.sh
Summary: changes I made to prepstrip, doexe and ebuild.sh
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-03 22:26 UTC by James Boddington (RETIRED)
Modified: 2011-10-30 22:37 UTC (History)
0 users

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


Attachments
the patch I am using (portage-2.0.47-r13.diff,1.94 KB, patch)
2003-04-03 22:27 UTC, James Boddington (RETIRED)
Details | Diff
2nd patch for /usr/lib/portage/bin (portage-2.0.47-r13.diff,4.22 KB, patch)
2003-04-04 16:37 UTC, James Boddington (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Boddington (RETIRED) gentoo-dev 2003-04-03 22:26:54 UTC
This are changes I made to those files so I could cross compile and get the executables stripped.
Comment 1 James Boddington (RETIRED) gentoo-dev 2003-04-03 22:27:45 UTC
Created attachment 10171 [details, diff]
the patch I am using
Comment 2 James Boddington (RETIRED) gentoo-dev 2003-04-04 16:37:19 UTC
Created attachment 10210 [details, diff]
2nd patch for /usr/lib/portage/bin

This patch contains the changes I have made locally to /usr/lib/portage/bin
trying to make it cross compiler friendly. I could not get the sed line in
prepstrip working after our chat in #gentoo-portage so still using my mods to
prestrip.

an example of what I am doing is

CBUILD is defined in my make.conf as i686-pc-linux-gnu so it is always defined.

ARCH=sparc ROOT=/tmp/cross emerge --nodeps
/usr/local/portage/arch-blank/linux-headers/linux-headers-2.4.20-r6.ebuild
CHOST=sparc-unknown-linux-gnu  ROOT=/tmp/cross emerge --nodeps glibc
CHOST=sparc-unknown-linux-gnu  ROOT=/tmp/cross emerge --nodeps ncurses
CHOST=sparc-unknown-linux-gnu  ROOT=/tmp/cross emerge --nodeps bash
CHOST=sparc-unknown-linux-gnu  ROOT=/tmp/cross emerge --nodeps fileutils

This gives me something that I can copy to my sparc then chroot into. With this
patch to /usr/lib/portage/lib all files are stripped and working.

I had also compiled ccache because it uses doexe to install the executables.
Without the mod to doexe the resulting ccache binary is useless. With the strip
mod it works.
Comment 3 SpanKY gentoo-dev 2004-12-05 19:37:03 UTC
fixed in current cvs