Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887587 - media-gfx/gimp: incompatible pointer to integer conversion
Summary: media-gfx/gimp: incompatible pointer to integer conversion
Status: RESOLVED DUPLICATE of bug 875413
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-12-21 06:44 UTC by Mazunki Hoksaas
Modified: 2022-12-24 07:12 UTC (History)
0 users

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


Attachments
emerge --info gimp (emerge.info,21.04 KB, text/plain)
2022-12-21 06:44 UTC, Mazunki Hoksaas
Details
build.log (build.log,1 bytes, text/x-log)
2022-12-21 06:45 UTC, Mazunki Hoksaas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mazunki Hoksaas 2022-12-21 06:44:07 UTC
Returning NULL in C++ is not standard, and errors when compiled with Clang. Should use nullptr_t instead.

Reproducible: Always
Comment 1 Mazunki Hoksaas 2022-12-21 06:44:45 UTC
Created attachment 844291 [details]
emerge --info gimp
Comment 2 Mazunki Hoksaas 2022-12-21 06:45:14 UTC
Created attachment 844293 [details]
build.log
Comment 3 Mazunki Hoksaas 2022-12-21 06:51:07 UTC
file-dicom.c:605:26: error: incompatible pointer to integer conversion
      returning 'void *' from a function with result type 'gint32' (aka 'int') [-Wint-conversion]
                  return NULL;
Comment 4 Sergey Torokhov 2022-12-21 07:13:53 UTC
This issue is duplicate of https://bugs.gentoo.org/875413
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-21 19:14:10 UTC

*** This bug has been marked as a duplicate of bug 875413 ***
Comment 6 Larry the Git Cow gentoo-dev 2022-12-24 07:03:07 UTC
The bug has been closed via the following commit(s):

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

commit 54018acedbe26b1cce4de7afe5b91638aeec64a9
Author:     Mazunki Hoksaas <rolferen@gmail.com>
AuthorDate: 2022-12-21 06:46:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-24 07:02:19 +0000

    media-gfx/gimp: added patch to use nullptr
    
    Closes: https://bugs.gentoo.org/887587
    Closes: https://bugs.gentoo.org/875413
    Signed-off-by: Mazunki Hoksaas <rolferen@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/28727
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gimp-2.10_fix_file-dicom-return-value.patch    |  15 ++
 media-gfx/gimp/gimp-2.10.32-r4.ebuild              | 213 +++++++++++++++++++++
 2 files changed, 228 insertions(+)
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-24 07:12:58 UTC

*** This bug has been marked as a duplicate of bug 875413 ***