Skip to content

Compatibility with Alpine Linux #268

@seuf

Description

@seuf

Hi,
Alpine Linux use the musl library instead of the glibc.
Is it possible to make a musl compatible version of glusterfs ?
It would be awesome to have glusterfs in alpine linux.

Activity

mchangir

mchangir commented on Jul 17, 2017

@mchangir
Contributor

Doesn't the musl-gcc wrapper provide the necessary magic to link to the platform specific 'C' Library on Alpine Linux ?

seuf

seuf commented on Jul 19, 2017

@seuf
Author

I think you're right, the musl-gcc wrapper provide some magic to link glic functions, but all the functions must be POSIX compliant. I read that glusterfs use not POSIX functions : https://bugs.alpinelinux.org/issues/2834 .

mati865

mati865 commented on Nov 22, 2017

@mati865

Portablexdr doesn't seem to work with glusterfs (usually rpcgen is provided by glibc but musl doesn't have it):

Making all in rpc/xdr/gen
glusterfs3-xdr.x:39: syntax error

Both 3.10.7 and master produce the same error.

janreges

janreges commented on Dec 13, 2018

@janreges

+1

CrazyPandar

CrazyPandar commented on Mar 12, 2019

@CrazyPandar

+1

kalebskeithley

kalebskeithley commented on Mar 14, 2019

@kalebskeithley
Contributor

rpcgen is in its own separate package. At least in alpine 3.9.2. (Similar to Fedora28+ and RHEL8 where rpcgen has been removed from glibc. I expect other distributions will do the same eventually.)

I didn't look in any older versions.

apk update && apk add rpcgen

But there are other issues with this rpcgen that alpine ships. It's not the same as the unbundled rpcgen in Fedora and doesn't like the "hyper" data type in, e.g., glusterfs4-xdr.x

apk info rpcgen says it's built from the source from/git.linux-nfs.org which I presume is really git://git.linux-nfs.org/projects/steved/nfs-utils.git, and rpcgen in that repo is deprecated according to steved.

Alpine should probably use the rpcgen that's in Fedora from https://github.com/thkukuk/rpcsvc-proto.git, which supports the "hyper" data type (i.e. quad_t).

Without support for hyper, nobody is going to get very far building glusterfs.

Someone with a vested interest in Alpine should get them to update to a modern/current rpcgen. In the mean time anyone wanting to build gluster will absolutely have to build their own rpcgen from source.

stale

stale commented on Apr 30, 2020

@stale

Thank you for your contributions.
Noticed that this issue is not having any activity in last ~6 months! We are marking this issue as stale because it has not had recent activity.
It will be closed in 2 weeks if no one responds with a comment here.

J0WI

J0WI commented on Apr 30, 2020

@J0WI

Please keep this open to track it somewhere.

sunnyku

sunnyku commented on Apr 30, 2020

@sunnyku
Contributor

Thanks for reply; removing tag.

stale

stale commented on Nov 27, 2020

@stale

Thank you for your contributions.
Noticed that this issue is not having any activity in last ~6 months! We are marking this issue as stale because it has not had recent activity.
It will be closed in 2 weeks if no one responds with a comment here.

46 remaining items

pranithk

pranithk commented on Jan 17, 2025

@pranithk
Member

I see that @kohlschuetter is working on this issue and sent PR for the same. Re-opening the issue.

added 4 commits that reference this issue on Jan 29, 2025
a22d89d
d7c383d
c0377d3
d5a196f
kohlschuetter

kohlschuetter commented on Jan 29, 2025

@kohlschuetter

The code in the above PR works just fine to build on/run with Alpine Linux 3.21, and I hope it can get merged soon.

I also have a working ABUILD/apk binaries for x86_64, which I'm trying to push to the Alpine Linux community repo at some point in the near future (this will require some sort of "release tarball", which I'm currently hosting on my own forked repo).

added 2 commits that reference this issue on Feb 2, 2025
86da2b8
5a40e41
added a commit that references this issue on Feb 25, 2025
cdc3526
added a commit that references this issue on Mar 6, 2025
758d134
kohlschuetter

kohlschuetter commented on Mar 6, 2025

@kohlschuetter

See my Alpine APKBUILD sources on how to build apks for Alpine Linux: https://github.com/kohlschuetter/alpine-repo/tree/apkbuild/abuild-sources/glusterfs

Also see the corresponding blog post for installation instructions, https://kohlschuetter.github.io/blog/posts/2025/03/06/alpine-linux-glusterfs/

geek-at

geek-at commented on May 9, 2025

@geek-at

@kohlschuetter on alpine 3.21 I get this error when trying to install via your repo:

fetch https://kohlschuetter.github.io/alpine-repo/x86_64/APKINDEX.tar.gz
ERROR: unable to select packages:
  so:libtcmalloc_minimal.so.4 (no such package):
    required by: glusterfs-11.1_git20250306-r1[so:libtcmalloc_minimal.so.4]
                 glusterfs-libs-11.1_git20250306-r1[so:libtcmalloc_minimal.so.4]
                 glusterfs-fuse-11.1_git20250306-r1[so:libtcmalloc_minimal.so.4]
                 glusterfs-xlators-11.1_git20250306-r1[so:libtcmalloc_minimal.so.4]
~# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.21.3
PRETTY_NAME="Alpine Linux v3.21"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

Have you encountered this?

mykaul

mykaul commented on May 11, 2025

@mykaul
Contributor
kohlschuetter

kohlschuetter commented on Jun 5, 2025

@kohlschuetter

@geek-at Please try the updated apks form my repository (just released). If you have further problems with the binary packages, please file an issue in my alpine-repo project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionType:EnhancementplatformAny platform specific questions/issues can be tagged with this label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @kalebskeithley@pranithk@amarts@kohlschuetter@mati865

      Issue actions

        Compatibility with Alpine Linux · Issue #268 · gluster/glusterfs