ueno / ruby-gpgme

a ruby interface to GnuPG Made Easy (GPGME).
GNU Lesser General Public License v2.1
232 stars 99 forks source link

Build error with Alpine >= 3.18.0 and musl >= 1.2.4 #182

Closed jk779 closed 9 months ago

jk779 commented 10 months ago

An update in Alpine (upgrade to a new musl version) breaks building the gem.

...
68.47 posix-io.c:77:3: error: unknown type name 'ino64_t'
68.47    77 |   ino64_t d_ino;
68.47       |   ^~~~~~~
68.47 posix-io.c:78:3: error: unknown type name 'off64_t'
68.47    78 |   off64_t d_off;
68.47       |   ^~~~~~~
...

I've attached a PR that workarounds this until gpgme updates. More information in the PR: https://github.com/ueno/ruby-gpgme/pull/181

ueno commented 9 months ago

Now that #181 has been merged, I'm closing this issue.

AndyObtiva commented 8 months ago

I just encountered this issue with Alpine Linux too (I had version 2.0.22) after I upgraded to a newer version of Alpine. I confirm that upgrading gpgme to version 2.0.24 fixed the issue (just in case someone else needs to know how to resolve the issue if they had an older version of gpgme).