ports/sysutils/dupd/files/patch-src_main.c
Luca Pizzamiglio 3381eab12c 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)
2018-07-18 08:12:40 +00:00

23 lines
520 B
C

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