From 3beeb0307aaaf083aba55898b36d1b0ce22277e3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 25 Aug 2007 19:41:15 +0000 Subject: Bug #190214 - Make the rpm phase use /usr/src/rpm instead of /usr/src/redhat. Bug #190144 - Use the realpath of DISTDIR so that things like subversion.eclass are compatible with sandbox. svn path=/main/trunk/; revision=7700 --- bin/misc-functions.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'bin/misc-functions.sh') diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 1c79822d2..04c73fc65 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -523,7 +523,9 @@ dyn_package() { } dyn_spec() { - tar czf "/usr/src/redhat/SOURCES/${PF}.tar.gz" "${O}/${PF}.ebuild" "${O}/files" || die "Failed to create base rpm tarball." + tar czf "/usr/src/rpm/SOURCES/${PF}.tar.gz" \ + "${O}/${PF}.ebuild" "${O}/files" || \ + die "Failed to create base rpm tarball." cat <<__END1__ > ${PF}.spec Summary: ${DESCRIPTION} @@ -555,11 +557,13 @@ __END1__ } dyn_rpm() { - addwrite /usr/src/redhat/ - addwrite ${RPMDIR} + addwrite /usr/src/rpm + addwrite "${RPMDIR}" dyn_spec rpmbuild -bb "${PF}.spec" || die "Failed to integrate rpm spec file" - install -D "/usr/src/redhat/RPMS/i386/${PN}-${PV}-${PR}.i386.rpm" "${RPMDIR}/${CATEGORY}/${PN}-${PV}-${PR}.rpm" || die "Failed to move rpm" + install -D "/usr/src/rpm/RPMS/i386/${PN}-${PV}-${PR}.i386.rpm" \ + "${RPMDIR}/${CATEGORY}/${PN}-${PV}-${PR}.rpm" || \ + die "Failed to move rpm" } if [ -n "${MISC_FUNCTIONS_ARGS}" ]; then -- cgit v1.2.3-1-g7c22