1 |
Albert Hopkins wrote: |
2 |
> On Mon, 2008-03-31 at 17:10 -0500, Anthony E. Caudel wrote: |
3 |
> |
4 |
>> While updating world and after emerging a new version of texinfo, I |
5 |
>> received the following error when it tried to remove the old version: |
6 |
>> |
7 |
>> ========================================== |
8 |
>> sys-apps/texinfo |
9 |
>> selected: 4.8-r5 |
10 |
>> protected: 4.11-r1 |
11 |
>> omitted: none |
12 |
>> |
13 |
>> >>> 'Selected' packages are slated for removal. |
14 |
>> >>> 'Protected' and 'omitted' packages will not be removed. |
15 |
>> |
16 |
>> >>> Unmerging sys-apps/texinfo-4.8-r5... |
17 |
>> /var/tmp/binpkgs/sys-apps/texinfo-4.8-r5/temp/environment: line 256: |
18 |
>> syntax error near unexpected token `(' |
19 |
>> /var/tmp/binpkgs/sys-apps/texinfo-4.8-r5/temp/environment: line 256: |
20 |
>> ` done <<(get_mounts);' |
21 |
>> * |
22 |
>> * ERROR: sys-apps/texinfo-4.8-r5 failed. |
23 |
>> * Call stack: |
24 |
>> * ebuild.sh, line 1641: Called die |
25 |
>> * The specific snippet of code: |
26 |
>> * preprocess_ebuild_env || \ |
27 |
>> * die "error processing environment" |
28 |
>> * The die message: |
29 |
>> * error processing environment |
30 |
>> * |
31 |
>> * If you need support, post the topmost build error, and the call stack |
32 |
>> if relevant. |
33 |
>> * A complete build log is located at |
34 |
>> '/var/tmp/binpkgs/sys-apps/texinfo-4.8-r5/temp/build.log'. |
35 |
>> * The ebuild environment file is located at |
36 |
>> '/var/tmp/binpkgs/sys-apps/texinfo-4.8-r5/temp/environment'. |
37 |
>> * |
38 |
>> !!! FAILED prerm: 1 |
39 |
>> * The 'prerm' phase of the 'sys-apps/texinfo-4.8-r5' package has failed |
40 |
>> * with exit value 1. The problem occurred while executing the ebuild |
41 |
>> * located at '/var/db/pkg/sys-apps/texinfo-4.8-r5/texinfo-4.8-r5.ebuild'. |
42 |
>> * If necessary, manually remove the ebuild in order to skip the execution |
43 |
>> * of removal phases. |
44 |
>> ======================================== |
45 |
>> |
46 |
>> How do I handle this? I notice it recommends removing the ebuild but |
47 |
>> how would that remove the old package? Should I just wait and re-sync |
48 |
>> after a while, hoping they fix it. Nothing in BGO yet. |
49 |
>> |
50 |
>> |
51 |
> |
52 |
> Perhaps you could post the pkg_prerm function |
53 |
> in /var/db/pkg/sys-apps/texinfo-4.8-r5/texinfo-4.8-r5.ebuild or look at |
54 |
> it yourself so we'd know what it is doing and possibly find our why it's |
55 |
> failing. |
56 |
> |
57 |
> -a |
58 |
> |
59 |
> |
60 |
No such animal! Here is |
61 |
/var/db/pkg/sys-apps/texinfo-4.8-r5/texinfo-4.8-r5.ebuild |
62 |
========================================= |
63 |
# Copyright 1999-2006 Gentoo Foundation |
64 |
# Distributed under the terms of the GNU General Public License v2 |
65 |
# $Header: |
66 |
/var/cvsroot/gentoo-x86/sys-apps/texinfo/texinfo-4.8-r5.ebuild,v 1.3 |
67 |
2006/11/10 13:11:25 gustavoz Exp $ |
68 |
|
69 |
inherit flag-o-matic eutils toolchain-funcs |
70 |
|
71 |
DESCRIPTION="The GNU info program and utilities" |
72 |
HOMEPAGE="http://www.gnu.org/software/texinfo/" |
73 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2" |
74 |
|
75 |
LICENSE="GPL-2" |
76 |
SLOT="0" |
77 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc-macos |
78 |
~ppc64 ~s390 ~sh sparc ~sparc-fbsd x86 ~x86-fbsd" |
79 |
IUSE="nls build static" |
80 |
|
81 |
RDEPEND="!build? ( >=sys-libs/ncurses-5.2-r2 ) |
82 |
!build? ( nls? ( virtual/libintl ) )" |
83 |
DEPEND="${RDEPEND} |
84 |
!build? ( nls? ( sys-devel/gettext ) )" |
85 |
|
86 |
src_unpack() { |
87 |
unpack ${A} |
88 |
cd "${S}" |
89 |
epatch "${FILESDIR}"/${P}-freebsd.patch |
90 |
epatch "${FILESDIR}"/${P}-tempfile-owl.patch #114499 |
91 |
epatch "${FILESDIR}"/${P}-bounds-check.patch #140902 |
92 |
epatch "${FILESDIR}"/${P}-buf-overflow-CVE-2006-4810.patch #154316 |
93 |
|
94 |
cd doc |
95 |
# Get the texinfo info page to have a proper name of texinfo.info |
96 |
sed -i 's:setfilename texinfo:setfilename texinfo.info:' texinfo.txi |
97 |
sed -i \ |
98 |
-e 's:INFO_DEPS = texinfo:INFO_DEPS = texinfo.info:' \ |
99 |
-e 's:texinfo\::texinfo.info\::' \ |
100 |
Makefile.in |
101 |
} |
102 |
|
103 |
src_compile() { |
104 |
local myconf= |
105 |
if ! use nls || use build ; then |
106 |
myconf="--disable-nls" |
107 |
fi |
108 |
use static && append-ldflags -static |
109 |
|
110 |
econf ${myconf} || die |
111 |
|
112 |
# Cross-compile workaround #133429 |
113 |
if tc-is-cross-compiler ; then |
114 |
emake -C tools || die "emake tools" |
115 |
fi |
116 |
|
117 |
# work around broken dependency's in info/Makefile.am #85540 |
118 |
emake -C lib || die "emake lib" |
119 |
emake -C info makedoc || die "emake makedoc" |
120 |
emake -C info doc.c || die "emake doc.c" |
121 |
emake || die "emake" |
122 |
} |
123 |
|
124 |
src_install() { |
125 |
if use build ; then |
126 |
newbin util/ginstall-info install-info |
127 |
dobin makeinfo/makeinfo util/{texi2dvi,texindex} |
128 |
else |
129 |
make DESTDIR="${D}" install || die "install failed" |
130 |
dosbin ${FILESDIR}/mkinfodir |
131 |
# tetex installs this guy #76812 |
132 |
has_version '<app-text/tetex-3' && rm -f |
133 |
"${D}"/usr/bin/texi2pdf |
134 |
|
135 |
if [[ ! -f ${D}/usr/share/info/texinfo.info ]] ; then |
136 |
die "Could not install texinfo.info!!!" |
137 |
fi |
138 |
|
139 |
dodoc AUTHORS ChangeLog INTRODUCTION NEWS README TODO |
140 |
newdoc info/README README.info |
141 |
newdoc makeinfo/README README.makeinfo |
142 |
fi |
143 |
} |
144 |
========================================== |
145 |
|
146 |
Tony |
147 |
|
148 |
-- |
149 |
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. |
150 |
-- Benjamin Franklin |
151 |
|
152 |
-- |
153 |
gentoo-user@l.g.o mailing list |