Package Details: hfsutils 3.2.6_p16-4

Git Clone URL: https://aur.archlinux.org/hfsutils.git (read-only, click to copy)
Package Base: hfsutils
Description: HFS Access utils
Upstream URL: https://www.mars.org/home/rob/proj/hfs/
Licenses: GPL-2.0-or-later
Submitter: codyps
Maintainer: codyps (micwoj92, ajacocks)
Last Packager: micwoj92
Votes: 9
Popularity: 0.27
First Submitted: 2020-10-06 04:01 (UTC)
Last Updated: 2024-07-03 04:46 (UTC)

Latest Comments

1 2 Next › Last »

micwoj92 commented on 2024-05-16 21:37 (UTC)

I think that tcl/tk are small dependencies and can be included as normal dependencies.

In case other maintainers of this package want to move back tcl/tk to optdepends then it needs to be added to makedepends, I have no hard feelings about what is right in this case here.

tk is needed for xhfs.

tcl is needed for xhfs and hfssh.

micwoj92 commented on 2024-05-16 14:18 (UTC)

Whoops that on me for testing only without TCL/TK, I will push fix soon + apply changes that VorpalWay suggested. In meanwhile you can add this before ./configure to fix:

CFLAGS="$CFLAGS -Wno-error=incompatible-pointer-types"

flipmess commented on 2024-05-16 14:04 (UTC)

hi, i'm getting these kind of errors when trying to compile hfsutils 3.2.6_p16-1

tclhfs.c:193:26: error: passing argument 2 of ‘Tcl_Merge’ from incompatible pointer type [-Wincompatible-pointer-types]
  193 |   return Tcl_Merge(argc, argv);
      |                          ^~~~
      |                          |
      |                          char **

...

tclhfs.c:1480:38: error: passing argument 3 of ‘Tcl_CreateCommand’ from incompatible pointer type [-Wincompatible-pointer-types]
 1480 |   Tcl_CreateCommand(interp, "hfs",   cmd_hfs,   0, 0);
      |                                      ^~~~~~~
      |                                      |
      |                                      int (*)(void *, Tcl_Interp *, int,  char **)
/usr/include/tclDecls.h:303:67: note: expected ‘int (*)(void *, Tcl_Interp *, int,  const char **)’ but argument is of type ‘int (*)(void *, Tcl_Interp *, int,  char **)’
  303 |                                 const char *cmdName, Tcl_CmdProc *proc,
      |                                                      ~~~~~~~~~~~~~^~~~
tclhfs.c:1481:38: error: passing argument 3 of ‘Tcl_CreateCommand’ from incompatible pointer type [-Wincompatible-pointer-types]
 1481 |   Tcl_CreateCommand(interp, "exit",  cmd_exit,  0, 0);
      |                                      ^~~~~~~~
      |                                      |
      |                                      int (*)(void *, Tcl_Interp *, int,  char **)

...

make: *** [<builtin>: tclhfs.o] Error 1

VorpalWay commented on 2024-03-25 19:09 (UTC)

The latest update breaks building in minimal chroots (e.g. with aurutils), since the optdep will never be installed in the chroot. You need to add tcl/tk in makedepends still for that use case.

micwoj92 commented on 2024-03-25 03:48 (UTC)

And the other alternative is to always build with --with-tcl --with-tk with tk/tcl being in both make and optdepends, many packages also do this approach.

micwoj92 commented on 2024-03-25 03:47 (UTC)

It would still be 1 package. Here is what I mean, splitting like this

pkgbase=hfsutils
pkgname=('hfsutils' 'hfsutils-tcltk')

Then in build you would only have:

build() {
    cd "${pkgname}-${pkgver%_p*}"
    autoreconf -fi
    ./configure --with-tcl --with-tk
    make prefix=/usr
    make -C hfsck prefix=/usr
}

And package would be split into 2 section with:

package_hfsutils() {
}

package_hfsutils-tcltk() {
depends=('tcl' 'tk')
}

ajacocks commented on 2024-03-24 21:27 (UTC)

I suppose that we could split it, but then it's 2 packages to maintain. The TCL/TK interface is actually rather useful, or I wouldn't bother.

micwoj92 commented on 2024-03-24 13:34 (UTC)

I mean to only build 1 variant, with --with. This way you need it in makedeps to build it. Alternatively a split package with programs that require tcl/tk just like debian does.

ajacocks commented on 2024-03-24 13:24 (UTC)

I already added them to optdepends. The problem is that the configure script isn’t smart enough to use tcl and tk without the —with logic.

micwoj92 commented on 2024-03-24 10:54 (UTC)

I think it would be better to add tcl,tk to makedepends and optdepends instead of relying on this logic.