Package Details: hfsprogs 540.1.linux3-4

Git Clone URL: https://aur.archlinux.org/hfsprogs.git (read-only, click to copy)
Package Base: hfsprogs
Description: User space utils for create and check Apple HFS/HFS+ filesystem
Upstream URL: http://www.opensource.apple.com/
Licenses: custom:APSL
Submitter: Muflone
Maintainer: Muflone
Last Packager: Muflone
Votes: 67
Popularity: 0.54
First Submitted: 2017-10-01 14:46 (UTC)
Last Updated: 2021-02-06 23:33 (UTC)

Pinned Comments

Muflone commented on 2018-12-26 17:19 (UTC)

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

« First ‹ Previous 1 2 3 4 Next › Last »

lss40770 commented on 2020-11-30 03:11 (UTC)

It seems the link to the diskdev_cmds is indeed broken.

However, Void Linux's repo has a working copy of it.

https://sources.voidlinux.org/hfsprogs-540.1.linux3/diskdev_cmds-540.1.linux3.tar.gz

After changing the link for diskdev_cmds to this one I'm able to build the package.

Veazus commented on 2020-11-29 22:41 (UTC)

Is diskdev_cmds still available for download? I get the following error when I try to build this package. Preparing... Cloning hfsprogs build files... Checking hfsprogs dependencies... Resolving dependencies... Checking inter-conflicts...

Building hfsprogs...
==> Making package: hfsprogs 540.1.linux3-2 (Sun 29 Nov 2020 05:36:26 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading diskdev_cmds-540.1.linux3.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
curl: (7) Failed to connect to cavan.codon.org.uk port 80: No route to host
==> ERROR: Failure while downloading http://cavan.codon.org.uk/~mjg59/diskdev_cmds/diskdev_cmds-540.1.linux3.tar.gz
    Aborting...
Failed to build hfsprogs

homelessuser commented on 2020-10-07 16:09 (UTC)

Thanks for fixing this! :)

vegas commented on 2020-09-25 10:20 (UTC)

@keithspg, It works. Thanks!

keithspg commented on 2020-09-22 16:30 (UTC) (edited on 2020-09-22 16:31 (UTC) by keithspg)

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

        "https://src.fedoraproject.org/rpms/hfsplus-tools/raw/master/f/hfsplus-tools-sysctl.patch"

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 (UTC)

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

https://src.fedoraproject.org/rpms/hfsplus-tools/blob/master/f/hfsplus-tools-sysctl.patch

homelessuser commented on 2020-09-22 12:48 (UTC)

yay --getpkgbuild hfsprogs
cd hfsprogs

Edit PKGBUILD:

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" \
    "${srcdir}/diskdev_cmds-540.1.linux3/fsck_hfs.tproj/dfalib/Scavenger.h"
}

keithspg commented on 2020-09-14 05:14 (UTC) (edited on 2020-09-14 05:20 (UTC) by keithspg)

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: https://drive.google.com/file/d/1e2iclzwbUIbMnCgHQBSmxZCJhTpIAZLx/view?usp=sharing add to the patch list and then patch -p1 -i "${srcdir}/sysctl.patch"

arazaes commented on 2020-09-09 10:45 (UTC)

"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 (UTC)

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