Bug 1736016 - libgpg-error: FTBFS in Fedora rawhide/f31: gawk: fatal: cannot use gawk builtin `namespace' as variable name
Summary: libgpg-error: FTBFS in Fedora rawhide/f31: gawk: fatal: cannot use gawk built...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libgpg-error
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Red Hat Crypto Team
QA Contact: Fedora Extras Quality Assurance
URL: https://dev.gnupg.org/T4459
Whiteboard:
Depends On:
Blocks: F31FTBFS 1732841
TreeView+ depends on / blocked
 
Reported: 2019-08-01 14:09 UTC by Fedora Release Engineering
Modified: 2019-12-23 15:41 UTC (History)
5 users (show)

Fixed In Version: libgpg-error-1.36-2.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-15 05:27:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (18.79 KB, text/plain)
2019-08-01 14:09 UTC, Fedora Release Engineering
no flags Details

Description Fedora Release Engineering 2019-08-01 14:09:30 UTC
libgpg-error failed to build from source in Fedora rawhide/f31

https://koji.fedoraproject.org/koji/taskinfo?taskID=36634941


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Please fix libgpg-error at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
libgpg-error will be orphaned. Before branching of Fedora 32,
libgpg-error will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://fedoraproject.org/wiki/Fails_to_build_from_source

Comment 1 Fedora Release Engineering 2019-08-01 14:09:33 UTC
Created attachment 1597471 [details]
build.log

Comment 2 Ben Cotton 2019-08-13 17:06:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 3 Ben Cotton 2019-08-13 18:01:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 4 Petr Pisar 2019-08-14 14:32:15 UTC
The error message is:

make[2]: Entering directory '/home/test/fedora/libgpg-error/libgpg-error-1.36/src'
gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
gawk: ./mkerrnos.awk:86: warning: regexp escape sequence `\#' is not a known regexp operator
gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
gawk: ./mkerrcodes1.awk:84: warning: regexp escape sequence `\#' is not a known regexp operator
gcc -E   -P _mkerrcodes.h | grep GPG_ERR_ | \
               gawk -f ./mkerrcodes.awk >mkerrcodes.h
gawk: ./mkerrcodes.awk:88: warning: regexp escape sequence `\#' is not a known regexp operator
rm _mkerrcodes.h
gcc -I. -I. -o mkerrcodes ./mkerrcodes.c
./mkerrcodes | gawk -f ./mkerrcodes2.awk >code-from-errno.h
gawk: ./mkerrcodes2.awk:94: warning: regexp escape sequence `\#' is not a known regexp operator
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
        ./err-sources.h.in >err-sources-sym.h
gawk: ./mkstrtable.awk:113: warning: regexp escape sequence `\#' is not a known regexp operator
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
        ./err-codes.h.in >err-codes-sym.h
gawk: ./mkstrtable.awk:113: warning: regexp escape sequence `\#' is not a known regexp operator
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
        -v prefix=GPG_ERR_ -v namespace=errnos_ \
        ./errnos.in >errnos-sym.h
gawk: fatal: cannot use gawk builtin `namespace' as variable name
make[2]: *** [Makefile:1617: errnos-sym.h] Error 2
make[2]: Leaving directory '/home/test/fedora/libgpg-error/libgpg-error-1.36/src'

Comment 5 Petr Pisar 2019-08-14 14:44:18 UTC
This issue is known to upstream <https://dev.gnupg.org/T4459> and fixed in upstream with this commit:

commit 7865041c77f4f7005282f10f9b6666b19072fbdf
Author: NIIBE Yutaka <gniibe>
Date:   Mon Apr 15 15:10:44 2019 +0900

    awk: Prepare for Gawk 5.0.
    
    * src/Makefile.am: Use pkg_namespace (instead of namespace).
    * src/mkerrnos.awk: Likewise.
    * lang/cl/mkerrcodes.awk: Don't escape # in regexp.
    * src/mkerrcodes.awk, src/mkerrcodes1.awk, src/mkerrcodes2.awk: Ditto.
    
    --
    
    In Gawk 5.0, regexp routines are replaced by Gnulib implementation,
    which only allows escaping specific characters.
    
    GnuPG-bug-id: 4459
    Reported-by: Marius Schamschula
    Signed-off-by: NIIBE Yutaka <gniibe>

Are you going to fix this package or can I do it instead of you?

Comment 6 Tomas Mraz 2019-08-14 16:32:24 UTC
I am going to do it. Thank you for the investigation!

Comment 7 Michal Wasilewski 2019-12-23 15:41:57 UTC
The issue was marked as fixed in version `libgpg-error-1.36-2.fc31` , but I'm still seeing it on Fedora 31 in `libgpg-error.x86_64 1.36-2.fc31` and `gawk.x86_64 5.0.1-5.fc31`, it's also reported by other users here: https://github.com/KittyKatt/screenFetch/issues/627#issuecomment-560373424

any chance we can get libgpg-error rebuilt (with the patch) for F31?

let me know if there's anything I can help with


Note You need to log in before you can comment on or make changes to this bug.