Author Login
Post Reply
Albert Hopkins wrote:
> On Mon, 2008-03-31 at 17:10 -0500, Anthony E. Caudel wrote:
>
>> While updating world and after emerging a new version of texinfo, I
>> received the following error when it tried to remove the old version:
>>
>> ==========================================
>> sys-apps/texinfo
>> selected: 4.8-r5
>> protected: 4.11-r1
>> omitted: none
>>
>> >>> 'Selected' packages are slated for removal.
>> >>> 'Protected' and 'omitted' packages will not be removed.
>>
>> >>> Unmerging sys-apps/texinfo-4.8-r5...
>> /var/tmp/binpkgs/sys-apps/texinfo-4.8-r5/temp/environment: line 256:
>> syntax error near unexpected token `('
>> /var/tmp/binpkgs/sys-apps/texinfo-4.8-r5/temp/environment: line 256:
>> ` done <<(get_mounts);'
>> *
>> * ERROR: sys-apps/texinfo-4.8-r5 failed.
>> * Call stack:
>> * ebuild.sh, line 1641: Called die
>> * The specific snippet of code:
>> * preprocess_ebuild_env || \
>> * die "error processing environment"
>> * The die message:
>> * error processing environment
>> *
>> * If you need support, post the topmost build error, and the call stack
>> if relevant.
>> * A complete build log is located at
>> '/var/tmp/binpkgs/sys-apps/texinfo-4.8-r5/temp/build.log'.
>> * The ebuild environment file is located at
>> '/var/tmp/binpkgs/sys-apps/texinfo-4.8-r5/temp/environment'.
>> *
>> !!! FAILED prerm: 1
>> * The 'prerm' phase of the 'sys-apps/texinfo-4.8-r5' package has failed
>> * with exit value 1. The problem occurred while executing the ebuild
>> * located at '/var/db/pkg/sys-apps/texinfo-4.8-r5/texinfo-4.8-r5.ebuild'.
>> * If necessary, manually remove the ebuild in order to skip the execution
>> * of removal phases.
>> ========================================
>>
>> How do I handle this? I notice it recommends removing the ebuild but
>> how would that remove the old package? Should I just wait and re-sync
>> after a while, hoping they fix it. Nothing in BGO yet.
>>
>>
>
> Perhaps you could post the pkg_prerm function
> in /var/db/pkg/sys-apps/texinfo-4.8-r5/texinfo-4.8-r5.ebuild or look at
> it yourself so we'd know what it is doing and possibly find our why it's
> failing.
>
> -a
>
>
No such animal! Here is
/var/db/pkg/sys-apps/texinfo-4.8-r5/texinfo-4.8-r5.ebuild
=========================================
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
/var/cvsroot/gentoo-x86/sys-apps/texinfo/texinfo-4.8-r5.ebuild,v 1.3
2006/11/10 13:11:25 gustavoz Exp $
inherit flag-o-matic eutils toolchain-funcs
DESCRIPTION="The GNU info program and utilities"
HOMEPAGE="http://www.gnu.org/software/texinfo/"
SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos
~ppc64 ~s390 ~sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="nls build static"
RDEPEND="!build? ( >=sys-libs/ncurses-5.2-r2 )
!build? ( nls? ( virtual/libintl ) )"
DEPEND="${RDEPEND}
!build? ( nls? ( sys-devel/gettext ) )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-freebsd.patch
epatch "${FILESDIR}"/${P}-tempfile-owl.patch #114499
epatch "${FILESDIR}"/${P}-bounds-check.patch #140902
epatch "${FILESDIR}"/${P}-buf-overflow-CVE-2006-4810.patch #154316
cd doc
# Get the texinfo info page to have a proper name of texinfo.info
sed -i 's:setfilename texinfo:setfilename texinfo.info:' texinfo.txi
sed -i \
-e 's:INFO_DEPS = texinfo:INFO_DEPS = texinfo.info:' \
-e 's:texinfo\::texinfo.info\::' \
Makefile.in
}
src_compile() {
local myconf=
if ! use nls || use build ; then
myconf="--disable-nls"
fi
use static && append-ldflags -static
econf ${myconf} || die
# Cross-compile workaround #133429
if tc-is-cross-compiler ; then
emake -C tools || die "emake tools"
fi
# work around broken dependency's in info/Makefile.am #85540
emake -C lib || die "emake lib"
emake -C info makedoc || die "emake makedoc"
emake -C info doc.c || die "emake doc.c"
emake || die "emake"
}
src_install() {
if use build ; then
newbin util/ginstall-info install-info
dobin makeinfo/makeinfo util/{texi2dvi,texindex}
else
make DESTDIR="${D}" install || die "install failed"
dosbin ${FILESDIR}/mkinfodir
# tetex installs this guy #76812
has_version '<app-text/tetex-3' && rm -f
"${D}"/usr/bin/texi2pdf
if [[ ! -f ${D}/usr/share/info/texinfo.info ]] ; then
die "Could not install texinfo.info!!!"
fi
dodoc AUTHORS ChangeLog INTRODUCTION NEWS README TODO
newdoc info/README README.info
newdoc makeinfo/README README.makeinfo
fi
}
==========================================
Tony
--
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety.
-- Benjamin Franklin
--
gentoo-user@(protected)