Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311885 - sys-apps/texinfo-4.13: texi2dvi: egrep: Invalid range end
Summary: sys-apps/texinfo-4.13: texi2dvi: egrep: Invalid range end
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://thread.gmane.org/gmane.comp.te...
Whiteboard:
Keywords: Inclusion
: 343907 348004 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-29 08:15 UTC by Martin von Gagern
Modified: 2011-02-10 03:39 UTC (History)
2 users (show)

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


Attachments
Fix from upstream (gentoo311885.patch,971 bytes, patch)
2010-12-18 17:06 UTC, Martin von Gagern
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2010-03-29 08:15:59 UTC
texi2dvi has a bad egrep line:

/usr/bin/texi2dvi /some/path/and/file.texi
egrep: Invalid range end
/usr/bin/texi2dvi: cannot read .//some/path/and/file.texi, skipping.

The offending line is here:
1686:  echo "$command_line_filename" | $EGREP '^(/|[A-z]:/)' >&6 \
The problem is locale-dependent. With LC_ALL=C it works, with LANG=de_DE.utf8 it doesn't. I suggest you replace 'A-z' with 'A-Za-z', or pass LC_ALL=C to the egrep invocation.

Probably this is a bug report for upstream as well. Will investigate.
Comment 2 Peter Stuge 2010-11-02 21:59:15 UTC
I just added an texinfo-4.13-r1 ebuild to my overlay 'stuge' which includes the fixed upstream texi2dvi revision.
Comment 3 Peter Stuge 2010-11-02 22:20:09 UTC
And https://bugs.gentoo.org/show_bug.cgi?id=343907 is the -r1 ebuild for inclusion in portage
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-11-02 22:24:39 UTC
*** Bug 343907 has been marked as a duplicate of this bug. ***
Comment 5 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-12-09 14:20:56 UTC
*** Bug 348004 has been marked as a duplicate of this bug. ***
Comment 6 Martin von Gagern 2010-12-18 17:06:05 UTC
Created attachment 257504 [details, diff]
Fix from upstream

This is the fix taken from the upstream repository, but stripped of keyword substitutions so it will apply easily. Please include this in portage.
Comment 7 Peter Stuge 2010-12-19 15:38:54 UTC
(In reply to comment #6)
> This is the fix taken from the upstream repository,

The -r1 ebuild and the patch that I attached to #343907 and have included in my overlay 'stuge' include this fix. I hope that the ebuild has some chance of going into portage despite the fact that the ebuild bug was closed.

Meanwhile, you can use layman to grab my overlay, to easily get the ebuild:
layman -a stuge
Comment 8 Juergen Rose 2011-02-07 10:34:09 UTC
I just hit again this issue. How are the chances to add the patches to the main tree?
Comment 9 Peter Stuge 2011-02-07 12:12:09 UTC
(In reply to comment #8)
> I just hit again this issue. How are the chances to add the patches to the main
> tree?

Dunno, but you can use the ebuild in my overlay fairly easily:

emerge layman
layman -a stuge
echo 'source /var/lib/layman/make.conf' >> /etc/make.conf
emerge =sys-apps/texinfo-4.13-r1 -av
Comment 10 Juergen Rose 2011-02-08 08:24:12 UTC
Thanks Peter,

I have an patched ebuild, that is not the problem. But if I install gentoo at a new PC and the installation hangs before a create a new overlay texinfo, this is nasty. That's why I asked.
Comment 11 SpanKY gentoo-dev 2011-02-10 03:39:04 UTC
usually i ignore texinfo bugs (since i hate the format) and they magically seem to resolve themselves.  i guess that didnt happen here.  oh well.

should be all set with 4.13-r1.