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: 52
Popularity: 3.34
First Submitted: 2017-10-01 14:46
Last Updated: 2021-02-06 23:33

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 »

Muflone commented on 2021-02-06 23:33

@davidbrayn fixed, thank you

davidbrayn commented on 2021-02-05 03:42

The fedora patches are returning 404.

Looks like the main branch on the fedora repositories have changed from "master" to "rawhide".

If updating the PKGBUILD source URLs to:

source=("https://src.fedoraproject.org/repo/pkgs/hfsplus-tools/diskdev_cmds-${pkgver}.tar.gz/${_checksum}/diskdev_cmds-${pkgver}.tar.gz"
        "https://src.fedoraproject.org/rpms/hfsplus-tools/raw/rawhide/f/hfsplus-tools-no-blocks.patch"
        "https://src.fedoraproject.org/rpms/hfsplus-tools/raw/rawhide/f/hfsplus-tools-learn-to-stdarg.patch"
        "https://src.fedoraproject.org/rpms/hfsplus-tools/raw/rawhide/f/apsl-2.0.txt"
        "https://src.fedoraproject.org/rpms/hfsplus-tools/raw/rawhide/f/hfsplus-tools-sysctl.patch"
        "ldflags_relro.patch"

And leaving the hashes the same. I was able to get this to build.

nkeck72 commented on 2020-11-30 18:32

I can confirm that lss40770's link worked. Looks like the PKGBUILD is broken.

lss40770 commented on 2020-11-30 03:11

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

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

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:

        "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

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

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"
}