Package Details: dhex-git r4.dde4756-1

Git Clone URL: https://aur.archlinux.org/dhex.git (read-only, click to copy)
Package Base: dhex
Description: An ncurses-based hexeditor with a diff mode
Upstream URL: https://github.com/ideal/dhex/
Licenses: GPL
Submitter: ideal
Maintainer: ideal
Last Packager: ideal
Votes: 1
Popularity: 0.000000
First Submitted: 2018-10-26 04:18 (UTC)
Last Updated: 2018-12-19 14:33 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

dreieck commented on 2024-09-10 12:17 (UTC)

Build fails for me with error: implicit declaration of function ‘usleep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]:

==> Starting build()...
gcc input.c -c -I. -I/usr/include   -I/usr/local/include    -I/usr/include/ncurses  -I/usr/local/include/ncurses -O3 -Wall -std=c99  
input.c: In function ‘getkey’:
input.c:72:33: error: implicit declaration of function ‘usleep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]
   72 |                                 usleep(1);
      |                                 ^~~~~~
      |                                 sleep
make: *** [Makefile:40: input.o] Error 1
==> ERROR: A failure occurred in build().

↗ Upstream issue report.


Here is a patch that fixes this build issue -- feel free to include it into your PKGBUILD until upstream fixes the issue properly:

diff -rU1 dhex.orig/input.c dhex/input.c
--- dhex.orig/input.c   2024-09-10 14:00:35.636713152 +0200
+++ dhex/input.c    2024-09-10 14:14:03.650062329 +0200
@@ -1 +1,6 @@
+// Work around "error: implicit declaration of function ‘usleep’; did you mean ‘sleep’?" error in GCC 14.x
+# if __GNUC__ >= 14
+  #define _DEFAULT_SOURCE
+#endif
+
 #include <stdio.h>

Regards!

dreieck commented on 2024-09-10 11:38 (UTC)

Please

  • add provides=("dhex"), conflicts=("dhex"),

Regards and thanks for the package!

grandchild commented on 2022-07-19 09:41 (UTC)

Also why the pkgbase=dhex? This seems like a misunderstanding of what pkgbase is designed for. It also results in yay putting things into .cache/yay/dhex instead of the proper .cache/yay/dhex-git.

grandchild commented on 2022-07-19 09:37 (UTC)

Please add

conflicts=('dhex')

to the PKGBUILD, because otherwise you can't install it cleanly over dhex. Thanks