Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892651 - Add QA warning for config.log containing -Wimplicit-function-declaration
Summary: Add QA warning for config.log containing -Wimplicit-function-declaration
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on: 891001
Blocks:
  Show dependency tree
 
Reported: 2023-01-30 18:12 UTC by Sam James
Modified: 2023-02-26 22:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-30 18:12:24 UTC
A friend pointed out that macports does this:
```
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  alignof: found in texinfo-7.0/tp/Texinfo/XS/config.log
  re_search: found in texinfo-7.0/config.log
  re_compile_pattern: found in texinfo-7.0/config.log
  re_set_syntax: found in texinfo-7.0/config.log
  MIN: found in texinfo-7.0/config.log
  strchr: found in texinfo-7.0/config.log, texinfo-7.0/tp/Texinfo/XS/config.log
```

This could be pretty useful for us, I think.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-01-31 02:16:03 UTC
We can probably implement this as a postinst QA check like in bin/install-qa-check.d/* (I think it probably belongs in portage rather than ::gentoo).
Comment 3 Larry the Git Cow gentoo-dev 2023-02-26 20:22:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=dc1e8d7b9ad8f7253fa14e068547b63b14c829b7

commit dc1e8d7b9ad8f7253fa14e068547b63b14c829b7
Author:     Oskari Pirhonen <xxc3ncoredxx@gmail.com>
AuthorDate: 2023-02-01 04:32:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-26 20:22:42 +0000

    install-qa-check.d/90config-impl-decl: check config log for warnings
    
    Check for -Wimplicit-function-declaration in:
    
    - config.log
    - CMakeError.log
    - meson-log.txt
    
    and log the config log, line number, and function name on-screen and in
    qa.log under the tag 'config.log-impl-decl'. In ebuilds, use the
    `QA_CONFIG_IMPL_DECL_SKIP` array to skip false positives.
    
    Closes: https://bugs.gentoo.org/892651
    Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 bin/install-qa-check.d/90config-impl-decl | 87 +++++++++++++++++++++++++++++++
 1 file changed, 87 insertions(+)
Comment 4 Larry the Git Cow gentoo-dev 2023-02-26 22:01:32 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd8ade10313d72cb0e3dd2229df02e0ea8681daa

commit cd8ade10313d72cb0e3dd2229df02e0ea8681daa
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-26 22:01:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-26 22:01:10 +0000

    sys-apps/portage: add 3.0.45
    
    Bug: https://bugs.gentoo.org/891001
    Bug: https://bugs.gentoo.org/889330
    Bug: https://bugs.gentoo.org/890777
    Bug: https://bugs.gentoo.org/891391
    Bug: https://bugs.gentoo.org/893638
    Bug: https://bugs.gentoo.org/795825
    Bug: https://bugs.gentoo.org/884869
    Bug: https://bugs.gentoo.org/888585
    Bug: https://bugs.gentoo.org/892651
    Bug: https://bugs.gentoo.org/895526
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/portage/Manifest              |   1 +
 sys-apps/portage/portage-3.0.45.ebuild | 288 +++++++++++++++++++++++++++++++++
 2 files changed, 289 insertions(+)