From owner-svn-ports-all@freebsd.org Wed Jul 18 08:12:41 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78901103DE44; Wed, 18 Jul 2018 08:12:41 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 23E6A8E695; Wed, 18 Jul 2018 08:12:41 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0490717A07; Wed, 18 Jul 2018 08:12:41 +0000 (UTC) (envelope-from pizzamig@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6I8CevV025367; Wed, 18 Jul 2018 08:12:40 GMT (envelope-from pizzamig@FreeBSD.org) Received: (from pizzamig@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6I8Ce7a025365; Wed, 18 Jul 2018 08:12:40 GMT (envelope-from pizzamig@FreeBSD.org) Message-Id: <201807180812.w6I8Ce7a025365@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pizzamig set sender to pizzamig@FreeBSD.org using -f From: Luca Pizzamiglio Date: Wed, 18 Jul 2018 08:12:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r474840 - in head/sysutils/dupd: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pizzamig X-SVN-Commit-Paths: in head/sysutils/dupd: . files X-SVN-Commit-Revision: 474840 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2018 08:12:41 -0000 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 + } + +