Package Details: hfsprogs 540.1.linux3-2

Git Clone URL: (read-only, click to copy)
Package Base: hfsprogs
Description: User space utils for create and check Apple HFS/HFS+ filesystem
Upstream URL:
Licenses: custom:APSL
Submitter: Muflone
Maintainer: Muflone
Last Packager: Muflone
Votes: 47
Popularity: 2.07
First Submitted: 2017-10-01 14:46
Last Updated: 2020-10-03 16:40

Pinned Comments

Muflone commented on 2018-12-26 17:19

Package updated to version 540.1 in a specific build compatible with GNU/Linux.

Please do not mark this package out of date since you personally are able to build the package against the newer sources.

Latest Comments

1 2 3 Next › Last »

homelessuser commented on 2020-10-07 16:09

Thanks for fixing this! :)

vegas commented on 2020-09-25 10:20

@keithspg, It works. Thanks!

keithspg commented on 2020-09-22 16:30

Based on @frangio, I edited the PKGBUILD to add this source:


added this patch:

   patch -p1 -i "${srcdir}/hfsplus-tools-sysctl.patch"

regenerated the checksums and it builds. Like I said before, I have no way of testing it. Simple change to the PKGBUILD.

frangio commented on 2020-09-22 15:30

The upstream Fedora fork has a patch for the sysctl issue as well.

homelessuser commented on 2020-09-22 12:48

yay --getpkgbuild hfsprogs
cd hfsprogs


prepare() {
  # Apply patches
  cd "diskdev_cmds-${pkgver}"
  patch -p1 -i "${srcdir}/hfsplus-tools-no-blocks.patch"
  patch -p1 -i "${srcdir}/hfsplus-tools-learn-to-stdarg.patch"
  patch -p0 -i "${srcdir}/ldflags_relro.patch"
  sed -i -e 's/#include <sys\/sysctl\.h>//g' \
    "${srcdir}/diskdev_cmds-540.1.linux3/newfs_hfs.tproj/makehfs.c" \
    "${srcdir}/diskdev_cmds-540.1.linux3/fsck_hfs.tproj/utilities.c" \
    "${srcdir}/diskdev_cmds-540.1.linux3/fsck_hfs.tproj/fsck_hfs.c" \

keithspg commented on 2020-09-14 05:14

I made a patch to comment out the sysctl reference and it builds like @arazaes says. I have no real way to test to see if it actually works, though. This is my patch: add to the patch list and then patch -p1 -i "${srcdir}/sysctl.patch"

arazaes commented on 2020-09-09 10:45

"The removal of sys/sysctl.h from glibc makes this un-build-able."

Yep. It will build if you remove "#include sys/sysctl.h" from Scavenger.h, utilities.c and makehfs.c. I simply created three basic patch files and added them to PKGBUILD to get it to work in the absence of a proper fix.

keithspg commented on 2020-09-07 22:11

Ditto. The removal of sys/sysctl.h from glibc makes this un-build-able.

zed123 commented on 2020-08-22 16:17

Cannot be compiled anymore:

makehfs.c:41:10: fatal error: sys/sysctl.h: No such file or directory 41 | #include <sys/sysctl.h> | ^~~~~~~~~~~~~~ compilation terminated.

glibc 2.32 removed deprecated sysctl.h.

nl6720 commented on 2019-10-09 06:36

Could you add fsck.hfs > fsck.hfsplus and mkfs.hfs > mkfs.hfsplus symlinks?