sysutils/dupd: Fix the broken build

An issue in my build pipeline allowed me to not notice the broken build.
This commit add a patch to fix the build, so the port is available again

PR:		226841
Submitted by:	tom@hur.st (maintaner)
This commit is contained in:
Luca Pizzamiglio 2018-07-18 08:12:40 +00:00
parent b33ef9725b
commit 3381eab12c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474840
2 changed files with 23 additions and 1 deletions

View file

@ -11,7 +11,6 @@ COMMENT= File duplicate detection CLI utility
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN= undefined reference to `_binary_man_dupd_start'
NOT_FOR_ARCHS= arm armv6 armv7 i386 mips powerpc
NOT_FOR_ARCHS_REASON= test fails on large files on 32-bit

View file

@ -0,0 +1,23 @@
--- src/main.c.orig 2018-04-08 20:02:52 UTC
+++ src/main.c
@@ -141,19 +141,8 @@ static void show_help()
*/
static void show_usage()
{
+ system("/usr/bin/man dupd");
show_banner();
-
-#ifndef __APPLE__
- char * p = &_binary_man_dupd_start;
- while (p != &_binary_man_dupd_end) {
- putchar(*p++);
- }
-#else
- printf("Usage documentation not available on Darwin!\n");
- printf("\n");
- printf("Alternatively, refer to the document here:\n");
- printf("https://github.com/jvirkki/dupd\n");
-#endif
}