Summary: | app-text/xindy-2.4 installs buggy /usr/lib64/xindy/modules/tex/inputenc/latin.xdy | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bernd <waebbl-gentoo> |
Component: | Current packages | Assignee: | TeX project <tex> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | common-lisp, martin |
Priority: | Normal | Keywords: | UPSTREAM |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Add option -a to grep
Replace grep by sed |
Description
Bernd
2016-02-03 17:02:11 UTC
Created attachment 424616 [details, diff]
Add option -a to grep
The reason for the breakage is the horrible autodetection of current versions of GNU grep for binary files.
One should perhaps mask GNU grep for doing such a BS by default ... :(
Anyhow, adding -a to grep when generating latin.xdy fixes the problem.
The attached patch does this.
I suppose that the grep option -a is non-standard, so it might possibly fail on systems not having GNU grep in their $PATH first...
Sorry for the delay, I must have missed the email somehow. I checked this again with the proposed patch and it works as intended, also xcolor compiles without errors. can this get fix. patch works. We don't require GNU grep in ebuild context, and POSIX grep doesn't know about the -a option: SYNOPSIS grep [−E|−F] [−c|−l|−q] [−insvx] −e pattern_list [−e pattern_list]... [−f pattern_file]... [file...] grep [−E|−F] [−c|−l|−q] [−insvx] [−e pattern_list]... −f pattern_file [−f pattern_file]... [file...] grep [−E|−F] [−c|−l|−q] [−insvx] pattern_list [file...] Created attachment 462612 [details, diff]
Replace grep by sed
Using sed rather than grep may work though. See attached (untested) patch.
sed fix works. Reported upstream: https://sourceforge.net/p/xindy/bugs/60/ |