Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467848 - app-editors/nano[-minimal]: when cross-compiled for glibc targets: Error in /usr/share/nano/c.nanorc on line 5: Bad regex "[[:<:]][A-Z_][0-9A-Z_]+[[:>:]]": Invalid character class name
Summary: app-editors/nano[-minimal]: when cross-compiled for glibc targets: Error in /...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SpanKY
URL: http://lists.gnu.org/archive/html/hel...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-29 10:13 UTC by Dennis Schridde
Modified: 2017-02-18 01:36 UTC (History)
0 users

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


Attachments
build.log (build.log,39.90 KB, text/plain)
2013-04-29 10:14 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2013-04-29 10:13:05 UTC
When starting my cross-compiled nano (with syntax highlighting support enabled), I get several of these messages:
---
Error in /usr/share/nano/c.nanorc on line 5: Bad regex "[[:<:]][A-Z_][0-9A-Z_]+[[:>:]]": Invalid character class name
---

I suspect that it is related to this ./configure message:
---
checking for GNU-style word boundary regex support... configure: WARNING: *** Can't check for GNU-style word boundary support when cross-compiling
---

emerge --info (ROOT=/): attachment #345266 [details]
emerge --info (ROOT=/mnt/ppc64): attachment #345268 [details]

Reproducible: Always
Comment 1 Dennis Schridde 2013-04-29 10:14:14 UTC
Created attachment 346868 [details]
build.log
Comment 2 Dennis Schridde 2013-04-29 10:16:52 UTC
Someone else had the same issue, and was also cross-compiling (though for ARM). No solution was found. I expect the solution to be in fixing the build, i.e. configure.

See also: http://lists.gnu.org/archive/html/help-nano/2012-12/msg00002.html
Comment 3 Dennis Schridde 2013-04-29 10:25:59 UTC
(In reply to comment #0)
> emerge --info (ROOT=/): attachment #345266 [details]
> emerge --info (ROOT=/mnt/ppc64): attachment #345268 [details]

Actually these were a bit older (but the issue also existed back then). The current configuration is:
emerge --info (ROOT=/): attachment #346872 [details]
emerge --info (ROOT=/mnt/ppc64): attachment #346874 [details]
Comment 4 SpanKY gentoo-dev 2013-05-01 22:09:02 UTC
should be all set now in the tree; thanks for the report!

Commit message: Force --with-wordbounds for glibc/uclibc targets so cross-compiles do not end up using *BSD styles on GNU systems
http://sources.gentoo.org/app-editors/nano/nano-2.3.2.ebuild?r1=1.1&r2=1.2
Comment 5 Laine Gholson 2017-02-18 01:36:54 UTC
musl targets need --with-wordbounds too