Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 112907 | Differences between
and this patch

Collapse All | Expand All

(-)portage-2.0.53_rc7.orig/bin/ebuild.sh (+40 lines)
Lines 999-1004 dyn_test() { Link Here
999
PORTAGE_INST_UID="0"
999
PORTAGE_INST_UID="0"
1000
PORTAGE_INST_GID="0"
1000
PORTAGE_INST_GID="0"
1001
1001
1002
prepbin_debug() {
1003
	cd ${D}
1004
	[[ $DYN_EBUILD == 1 ]] && return 0
1005
	[  -d usr/lib/debug ]  || return 0
1006
	echo ">>> subpackage debug info"
1007
	rm -rf "${BUILDDIR}/debug"
1008
	mkdir -p "${BUILDDIR}/debug/"{build-info,image/usr/lib}
1009
	mv usr/lib/debug ${BUILDDIR}/debug/image/usr/lib/
1010
	cd "${BUILDDIR}/debug/build-info"
1011
	echo -n "$PN-debug-$PV-$PR"		> PF
1012
	echo -n "=$CATEGORY/$PF"		> DEPEND
1013
	echo -n "=$CATEGORY/$PF"		> RDEPEND
1014
	echo -n "$CATEGORY"			> CATEGORY
1015
	echo -n "$SLOT"				> SLOT
1016
	echo -n "1"				> DYN_EBUILD
1017
	>  environment
1018
	#export -p | sed 's:declare -rx:declare -x:' >> environment
1019
	bzip2 -9 environment
1020
	cat     << __EBUILD_DEBUG_EOF | tr '\t' ' '  | sed -e 's: \+: :g' > $PN-debug-$PV-$PR.ebuild
1021
SRC_URI=""
1022
DEPEND="=$CATEGORY/$PF"
1023
RDEPEND="=$CATEGORY/$PF"
1024
DYN_EBUILD=1
1025
src_unpack()  { return 0; }
1026
src_compile() { return 0; }
1027
src_install() { return 0; }
1028
__EBUILD_DEBUG_EOF
1029
1030
	cd ${BUILDDIR}/debug/image/
1031
	tar cpvf - ./ | bzip2 -f > ../bin.tar.bz2 || die "Failed to create tarball"
1032
	cd ..
1033
	xpak build-info inf.xpak
1034
	tbz2tool join bin.tar.bz2 inf.xpak "$PN-debug-$PV-$PR.tbz2"
1035
	env LD_PRELOAD="" mv "$PN-debug-$PV-$PR.tbz2" "${PKGDIR}/All" || die "Failed to move tbz2 to ${PKGDIR}/All"
1036
	# dont symlink here. We want to forced a merge by 
1037
	# pathname as that also forces a --oneshot which keeps
1038
}
1039
1002
dyn_install() {
1040
dyn_install() {
1003
	trap "abort_install" SIGINT SIGQUIT
1041
	trap "abort_install" SIGINT SIGQUIT
1004
	rm -rf "${BUILDDIR}/image"
1042
	rm -rf "${BUILDDIR}/image"
Lines 1017-1022 dyn_install() { Link Here
1017
	src_install
1055
	src_install
1018
	#|| abort_install "fail"
1056
	#|| abort_install "fail"
1019
	prepall
1057
	prepall
1058
	prepbin_debug
1059
1020
	cd "${D}"
1060
	cd "${D}"
1021
1061
1022
	declare -i UNSAFE=0
1062
	declare -i UNSAFE=0

Return to bug 112907