Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2018 08:12:40 +0000 (UTC)
From:      Luca Pizzamiglio <pizzamig@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r474840 - in head/sysutils/dupd: . files
Message-ID:  <201807180812.w6I8Ce7a025365@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pizzamig
Date: Wed Jul 18 08:12:40 2018
New Revision: 474840
URL: https://svnweb.freebsd.org/changeset/ports/474840

Log:
  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)

Added:
  head/sysutils/dupd/files/patch-src_main.c   (contents, props changed)
Modified:
  head/sysutils/dupd/Makefile

Modified: head/sysutils/dupd/Makefile
==============================================================================
--- head/sysutils/dupd/Makefile	Wed Jul 18 07:38:44 2018	(r474839)
+++ head/sysutils/dupd/Makefile	Wed Jul 18 08:12:40 2018	(r474840)
@@ -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
 

Added: head/sysutils/dupd/files/patch-src_main.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/dupd/files/patch-src_main.c	Wed Jul 18 08:12:40 2018	(r474840)
@@ -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
+ }
+ 
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807180812.w6I8Ce7a025365>