Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571970 - sys-devel/crossdev-20150716 elicits gawk "gensub" warnings for the latest versions of gawk
Summary: sys-devel/crossdev-20150716 elicits gawk "gensub" warnings for the latest ver...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Normal trivial
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-15 04:18 UTC by Peter Levine
Modified: 2016-01-15 05:40 UTC (History)
1 user (show)

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


Attachments
crossdev-20150716_gawk_warnings.patch (crossdev-20150716_gawk_warnings.patch,398 bytes, patch)
2016-01-15 04:19 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Levine 2016-01-15 04:18:15 UTC
For gawk's "gensub" function, the third arg can either be a string with "g" or "G", or it is a number.
The empty string now elicits a warning with newer versions.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 =sys-apps/gawk-4.1.3::gentoo =sys-devel/crossdev-20150716::gentoo
2. crossdev -P "-p" --target armv7a-hardfloat-linux-gnueabi
Actual Results:  
gawk: cmd. line:8: (FILENAME=- FNR=1) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=5) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=11) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=20) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=26) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=32) warning: gensub: third argument `' treated as 1
gawk: cmd. line:8: (FILENAME=- FNR=38) warning: gensub: third argument `' treated as 1
----------------------------------------------------------------------------------------------------------------
 * crossdev version:      20150716
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   arm
 * Target System:         armv7a-hardfloat-linux-gnueabi

Expected Results:  
----------------------------------------------------------------------------------------------------------------
 * crossdev version:      20150716
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   arm
 * Target System:         armv7a-hardfloat-linux-gnueabi

Same problem described in the patch https://www.sourceware.org/ml/libc-alpha/2015-08/msg00269.html
Comment 1 Peter Levine 2016-01-15 04:19:31 UTC
Created attachment 422962 [details, diff]
crossdev-20150716_gawk_warnings.patch
Comment 2 Peter Levine 2016-01-15 05:01:26 UTC
Sorry.  Didn't see it was fixed in git:

https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=ed170f96178b3e5060d6c7eecce79036b14c9f1e