pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/57186: update pkgsrc filesystems/glusterfs to upstream version 10.3



>Number:         57186
>Category:       pkg
>Synopsis:       update pkgsrc filesystems/glusterfs to upstream version 10.3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 16 20:30:00 +0000 2023
>Originator:     Alexander Schreiber
>Release:        pkgsrc 2022Q4
>Organization:
>Environment:
NetBSD laurelin.angband.thangorodrim.de 9.3 NetBSD 9.3 (TELPERION) #0: Fri Dec 30 15:09:13 CET 2022  root%laurelin.angband.thangorodrim.de@localhost:/usr/obj/sys/arch/sparc64/compile/TELPERION sparc64

>Description:
Currently, pkgsrc contains filesystems/glusterfs at upstream version 8.2
plus some patches. This version reliably dies on NetBSD/sparc64 with
SIGBUS due misaligned accesses (which appears to be a known problem).

I tested the most current upstream version (10.3) and sometime between
9.3 (the version used by Debian bullseye) and 10.3, considerable work
seems to have gone into cleaning up the known misaligned access issues.

This version (with two patches) builds and works on NetBSD 9.3/sparc64.

I was able to built & test this on NetBSD 9.3 on these architectures:
 - sparc64: builds and works
 - amd64: builds and works
 - evbarm/aarch64 (pinebook): builds and works
 - i386: builds and dies with SIGILL due to not being able to
   atomically update 64bit values on a 32 bit machine

The i386 issue stems from here: https://pastebin.com/RswjPkfT when this
code encounters len=8. When this was encountered before on NetBSD/i386
by someone else, the answer TLDRed to: "use amd64 instead".
https://lists.gluster.org/pipermail/gluster-devel/2015-April/044725.html
and also https://lists.gluster.org/pipermail/gluster-devel/2015-April/044727.html which points out that 32 bit architectures are not
supported by GlusterFS anyway.

Interestingly, 8.2 from pkgsrc works on NetBSD 9.3/i386, but I guess that
is just luck.

>How-To-Repeat:
build filesystems/glusterfs from pkgsrc 2022Q4 (which will yield a
patched version 8.2) on NetBSD 9.3/sparc64, try to mount a GlusterFS
filesystem:

mount_glusterfs brick:/glusterfs /glusterfs

observe death by SIGBUS

Also, the package is really old by now ;-)
>Fix:
I've updated my local copy of pkgsrc to use glusterfs-10.3 instead.

A copy of the filesystems/glusterfs directory is available here:

http://www.thangorodrim.ch/pkgsrc/glusterfs-pkgsrc.tar.gz

I've updated:
 - Makefile
 - PLIST (some renaming, some new files_
 - patches
   - all current patches (for 8.2) are already in 10.3, so I deleted them
   - added three patch files for two build inhibiting issues on
     NetBSD (upstream bugs filed):
     - (bash) https://github.com/gluster/glusterfs/issues/3940
     - (sizeof(time_t)) https://github.com/gluster/glusterfs/issues/3942

It might be worth flagging that package as not available on 32 bit
architectures.



Home | Main Index | Thread Index | Old Index