Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215421 - Unmerge of sys-apps/texinfo-4.8-r5 fails
Summary: Unmerge of sys-apps/texinfo-4.8-r5 fails
Status: RESOLVED DUPLICATE of bug 211833
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-30 09:20 UTC by Ian Pickworth
Modified: 2008-03-30 10:00 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Pickworth 2008-03-30 09:20:30 UTC
Following a successful emerge of sys-apps/texinfo-4.11-r1 the unmerge of sys-apps/texinfo-4.8-r5 fails as follows:

>>> Unmerging sys-apps/texinfo-4.8-r5...
/var/tmp/binpkgs/sys-apps/texinfo-4.8-r5/temp/environment: line 260: syntax error near unexpected token `('
/var/tmp/binpkgs/sys-apps/texinfo-4.8-r5/temp/environment: line 260: `            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
 * 

This is caused by line 308 in this file:
/var/db/pkg/sys-apps/texinfo-4.8-r5/environment.bz2 (when expanded). The code snippet is:

                return;
            done <<(get_mounts);
            ((++i));

removing the "<<(get_mounts)" solves the problem (in that it allows the unmerge to complete), but I'm not sure that would be a good fix.

Reproducible: Always

Steps to Reproduce:
1. unmerge =sys-apps/texinfo-4.8-r5...


Actual Results:  
As above.

Expected Results:  
>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Unmerging sys-apps/texinfo-4.8-r5...
No package files given... Grabbing a set.
--- replaced obj /usr/share/texinfo/texinfo.xsl
--- replaced obj /usr/share/texinfo/texinfo.dtd
--- replaced obj /usr/share/texinfo/texinfo.cat
--- replaced dir /usr/share/texinfo
<<<          obj /usr/share/man/man5/texinfo.5.gz
<<<          obj /usr/share/man/man5/info.5.gz
--- replaced dir /usr/share/man/man5
<<<          obj /usr/share/man/man1/texindex.1.gz
<<<          obj /usr/share/man/man1/texi2dvi.1.gz
<<<          obj /usr/share/man/man1/makeinfo.1.gz
<<<          obj /usr/share/man/man1/install-info.1.gz
<<<          obj /usr/share/man/man1/infokey.1.gz
<<<          obj /usr/share/man/man1/info.1.gz
--- replaced dir /usr/share/man/man1
--- replaced dir /usr/share/man
<<<          obj /usr/share/info/texinfo.info.gz
<<<          obj /usr/share/info/texinfo.info-3.gz
<<<          obj /usr/share/info/texinfo.info-2.gz
<<<          obj /usr/share/info/texinfo.info-1.gz
<<<          obj /usr/share/info/info.info.gz
<<<          obj /usr/share/info/info-stnd.info.gz
--- replaced dir /usr/share/info
<<<          obj /usr/share/doc/texinfo-4.8-r5/TODO.gz
<<<          obj /usr/share/doc/texinfo-4.8-r5/README.makeinfo.gz
<<<          obj /usr/share/doc/texinfo-4.8-r5/README.info.gz
<<<          obj /usr/share/doc/texinfo-4.8-r5/README.gz
<<<          obj /usr/share/doc/texinfo-4.8-r5/NEWS.gz
<<<          obj /usr/share/doc/texinfo-4.8-r5/INTRODUCTION.gz
<<<          obj /usr/share/doc/texinfo-4.8-r5/ChangeLog.gz
<<<          obj /usr/share/doc/texinfo-4.8-r5/AUTHORS.gz
--- replaced dir /usr/share/doc
--- replaced dir /usr/share
<<<          obj /usr/sbin/mkinfodir
--- replaced obj /usr/bin/texindex
--- replaced obj /usr/bin/texi2pdf
--- replaced obj /usr/bin/texi2dvi
--- replaced obj /usr/bin/makeinfo
--- replaced obj /usr/bin/install-info
--- replaced obj /usr/bin/infokey
--- replaced obj /usr/bin/info
--- replaced dir /usr/bin
--- replaced dir /usr
<<<          dir /usr/share/doc/texinfo-4.8-r5
--- !empty   dir /usr/sbin
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2008-03-30 09:31:24 UTC
rm /var/db/pkg/sys-apps/texinfo-4.8-r5/environment.bz2 is the workaround

*** This bug has been marked as a duplicate of bug 211833 ***
Comment 2 ash 2008-03-30 10:00:42 UTC
Another workaround for this particular case:

# bunzip2 /var/db/pkg/sys-apps/texinfo-4.8-r5/environment.bz2
# sed -i 's/<<(get_mounts/<<< $(get_mounts/' /var/db/pkg/sys-apps/texinfo-4.8-r5/environment
# bzip2 /var/db/pkg/sys-apps/texinfo-4.8-r5/environment
# emerge --resume