Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660608 - =sys-libs/libcap-2.25: cap_text.c:291:2: warning: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
Summary: =sys-libs/libcap-2.25: cap_text.c:291:2: warning: implicit declaration of fun...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-07-07 18:02 UTC by Sergei Trofimovich (RETIRED)
Modified: 2018-11-21 10:22 UTC (History)
1 user (show)

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


Attachments
0001-cap_text.c-fix-asprintf-implicit-declaration.patch (0001-cap_text.c-fix-asprintf-implicit-declaration.patch,1.77 KB, patch)
2018-07-07 18:02 UTC, Sergei Trofimovich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2018-07-07 18:02:12 UTC
Created attachment 538710 [details, diff]
0001-cap_text.c-fix-asprintf-implicit-declaration.patch

FEATURES=stricter fails QA checking as [1] at least on amd64 and ia64.
I've sent attached patch upstream last year but did not hear from author back.

Attaching patch with the fix here as well.

[1]:
 * Messages for package sys-libs/libcap-2.25:
 * QA Notice: Package triggers severe warnings which indicate that it
 *            may exhibit random runtime failures.
 * cap_text.c:291:2: warning: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Wimplicit-function-declaration]
 * Please do not file a Gentoo bug and instead report the above QA
 * issues directly to the upstream developers of this software.
 * Homepage: http://www.friedhoff.org/posixfilecaps.html
 * ERROR: sys-libs/libcap-2.25::gentoo failed:
 *   install aborted due to severe warnings shown above
 * 
 * Call stack:
 *   misc-functions.sh, line 601:  Called install_qa_check
 *   misc-functions.sh, line 217:  Called source 'install_symlink_html_docs'
 *      90gcc-warnings, line 167:  Called gcc_warn_check
 *      90gcc-warnings, line 161:  Called die
 * The specific snippet of code:
 *                              has stricter ${FEATURES} && \
 *                                      die "install aborted due to severe warnings shown above"
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2018-09-10 06:27:37 UTC
Was accepted upstream as:
    https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=892b7c2f6e6d7b6b52a9ccd54c4b1a6d2d1b3209
Comment 2 Larry the Git Cow gentoo-dev 2018-11-21 10:22:35 UTC
The bug has been closed via the following commit(s):

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

commit 59f6430683709e7a024158fc5bdb73c7552bbb9d
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-11-21 10:21:49 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-11-21 10:21:49 +0000

    sys-libs/libcap: Bump to version 2.26
    
    Closes: https://bugs.gentoo.org/660608
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-libs/libcap/Manifest                        |  1 +
 sys-libs/libcap/files/libcap-2.26-no-perl.patch | 61 +++++++++++++++++++
 sys-libs/libcap/libcap-2.26.ebuild              | 78 +++++++++++++++++++++++++
 3 files changed, 140 insertions(+)