Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942793 - app-crypt/gnupg: Solaris workaround needs documentation at least
Summary: app-crypt/gnupg: Solaris workaround needs documentation at least
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: https://dev.gnupg.org/T7368
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-11-02 20:37 UTC by Sam James
Modified: 2024-11-03 11:35 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 2024-11-02 20:37:31 UTC
commit c85d3cd324bd95113029b0a5c55b55a3f93bcaba
Author: Fabian Groffen <grobian@gentoo.org>
Date:   Mon Jul 29 21:44:49 2024 +0200

    app-crypt/gnupg-2.4.5-r2: accept pointer type differences on Solaris

    gnupg uses a function pointer for passing functions like getpeername
    which internally on Solaris use slightly different (yet compatible)
    definitions than gnupg's code specifies.  This results in an error with
    newer compilers, but since there's basically not much wrong with this,
    suppress the warning for now.

    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

Please always file an upstream bug (or better yet, send a patch) and include a link to them for workarounds, especially modern C related ones.
Comment 1 Fabian Groffen gentoo-dev 2024-11-03 08:19:29 UTC
So this bug is more about upstream references than documentation, I presume?  Or is the documentation not clear from the description you pasted above?  I see on the references point I can improve here, but the explanation looks quite explanatory?
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-03 08:23:23 UTC
The comment above it doesn't really explain why it's fine (more that there was a problem to begin with). It's obvious there is some mismatch if you're having to do that, it doesn't explain why you think it's okay or harmless here (i.e. there's no actual analysis there). The commit message has it but the comment doesn't.

It should also link to an upstream report (which is the more important part).
Comment 3 Fabian Groffen gentoo-dev 2024-11-03 08:31:36 UTC
Oh, I see.  The ebuild mentions declaration using (socket_fd_t).  The code uses (int) as more common on Linux, which is what (socket_fd_t) expands to on Solaris.

That said, I see your point, give me a little time to sort this out.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-03 08:32:13 UTC
Sure, no hurry - I just noticed it by chance and got curious ;)

Thanks!
Comment 5 Larry the Git Cow gentoo-dev 2024-11-03 11:35:41 UTC
The bug has been closed via the following commit(s):

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

commit 46573bad4a55a674fb24b26ec74565e988c44811
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2024-11-03 11:30:42 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2024-11-03 11:35:11 +0000

    app-crypt/gnupg: clarify/refresh Solaris workarounds
    
    - Filed upstream bug for the standards problems:
      https://dev.gnupg.org/T7368
    - Define _XOPEN_SOURCE=500 for 2.4.6 to resolve the mismatch
    - Force configure machinery to kick in for 2.5.1
    
    Closes: https://bugs.gentoo.org/942793
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 app-crypt/gnupg/gnupg-2.4.6-r1.ebuild | 9 +++++----
 app-crypt/gnupg/gnupg-2.5.1.ebuild    | 9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)