From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 24 22:10:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6AC03A45 for ; Tue, 24 Sep 2013 22:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4837C2F9C for ; Tue, 24 Sep 2013 22:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8OMA2D2092661 for ; Tue, 24 Sep 2013 22:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8OMA2gK092660; Tue, 24 Sep 2013 22:10:02 GMT (envelope-from gnats) Resent-Date: Tue, 24 Sep 2013 22:10:02 GMT Resent-Message-Id: <201309242210.r8OMA2gK092660@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Klaus Aehlig Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D99E890A for ; Tue, 24 Sep 2013 22:05:49 +0000 (UTC) (envelope-from aehlig@linta.de) Received: from linta.de (isilmar-3.linta.de [188.40.101.200]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4B1EB2F6A for ; Tue, 24 Sep 2013 22:05:48 +0000 (UTC) Received: (qmail 417 invoked by uid 10); 24 Sep 2013 21:59:05 -0000 Received: from howard.linta.de by isilmar.linta.de with BSMTP; 24 Sep 2013 21:59:05 -0000 Received: by howard.linta.de (Postfix, from userid 1001) id 618B0385563; Tue, 24 Sep 2013 23:58:50 +0200 (CEST) Message-Id: <20130924215850.618B0385563@howard.linta.de> Date: Tue, 24 Sep 2013 23:58:50 +0200 (CEST) From: Klaus Aehlig To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/182359: [patch] misc/findutils update to 4.5.12 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Klaus Aehlig List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Sep 2013 22:10:02 -0000 >Number: 182359 >Category: ports >Synopsis: [patch] misc/findutils update to 4.5.12 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Sep 24 22:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Klaus Aehlig >Release: FreeBSD 9.2-PRERELEASE amd64 >Organization: >Environment: System: FreeBSD howard.linta.de 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #15 r255465: Wed Sep 11 09:04:13 CEST 2013 root@howard.linta.de:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Update misc/findutils to version 4.5.12 see http://lists.gnu.org/archive/html/bug-findutils/2013-09/msg00024.html for the release announcement. >How-To-Repeat: >Fix: Apply the following patch. Note: file/patch-locate__locate.c is removed, as the fix is included in upstream version 4.5.12 --- findutils.diff begins here --- diff -ruN findutils.orig/Makefile findutils/Makefile --- findutils.orig/Makefile 2013-09-24 23:54:04.000000000 +0200 +++ findutils/Makefile 2013-09-24 23:44:52.000000000 +0200 @@ -2,7 +2,7 @@ # $FreeBSD: head/misc/findutils/Makefile 327745 2013-09-20 20:50:57Z bapt $ PORTNAME= findutils -PORTVERSION= 4.5.11 +PORTVERSION= 4.5.12 CATEGORIES= misc MASTER_SITES= ${MASTER_SITE_GNU_ALPHA} MASTER_SITE_SUBDIR= findutils diff -ruN findutils.orig/distinfo findutils/distinfo --- findutils.orig/distinfo 2013-09-24 23:54:04.000000000 +0200 +++ findutils/distinfo 2013-09-24 23:44:52.000000000 +0200 @@ -1,4 +1,4 @@ -SHA256 (findutils-4.5.11.tar.gz) = 75e823592d917f1ac853a35cf46d6deeeb3b984240331ad1723f60da1a725d22 -SIZE (findutils-4.5.11.tar.gz) = 3116431 -SHA256 (findutils-4.5.11.tar.gz.sig) = 4fd79ba6ab6acd7e340ad8878ae82112a503ef1f708fd5ba02cb94fe4a66d27f -SIZE (findutils-4.5.11.tar.gz.sig) = 152 +SHA256 (findutils-4.5.12.tar.gz) = df859eebad68c216204363f163c0e4200208ce7348f3658564a120e32e4f63de +SIZE (findutils-4.5.12.tar.gz) = 3236073 +SHA256 (findutils-4.5.12.tar.gz.sig) = 987a5a35dc97ac8141319b4306f20d483f346ceb7e25c92fd0a244e727a764d3 +SIZE (findutils-4.5.12.tar.gz.sig) = 152 diff -ruN findutils.orig/files/patch-locate__locate.c findutils/files/patch-locate__locate.c --- findutils.orig/files/patch-locate__locate.c 2013-09-24 23:54:04.000000000 +0200 +++ findutils/files/patch-locate__locate.c 1970-01-01 01:00:00.000000000 +0100 @@ -1,154 +0,0 @@ -diff locate/locate.c.orig locate/locate.c ---- locate/locate.c.orig -+++ locate/locate.c -@@ -1546,12 +1546,19 @@ opendb (const char *name) - return fd; - } - -+static void -+cleanup_quote_opts (void) -+{ -+ free (quote_opts); -+} -+ -+ - int - dolocate (int argc, char **argv, int secure_db_fd) - { -- char *path_element; -+ char *path_element = NULL; - size_t path_element_pos, path_element_len; -- const char *locate_path; -+ const char *user_selected_locate_path; - const char *db_name; - const char *path_separators = ":"; - unsigned long int found = 0uL; -@@ -1565,7 +1572,6 @@ dolocate (int argc, char **argv, int secure_db_fd) - int stats = 0; - int op_and = 0; - FILE *fp; -- int they_chose_db = 0; - bool did_stdin = false; /* Set to prevent rereading stdin. */ - - if (argv[0]) -@@ -1580,19 +1586,19 @@ dolocate (int argc, char **argv, int secure_db_fd) - textdomain (PACKAGE); - atexit (close_stdout); - -+ quote_opts = clone_quoting_options (NULL); -+ atexit (cleanup_quote_opts); -+ - limits.limit = 0; - limits.items_accepted = 0; - -- quote_opts = clone_quoting_options (NULL); - print_quoted_filename = true; - - /* We cannot simultaneously trust $LOCATE_PATH and use the - * setuid-access-controlled database,, since that could cause a leak - * of private data. - */ -- locate_path = getenv ("LOCATE_PATH"); -- if (locate_path) -- they_chose_db = 1; -+ user_selected_locate_path = getenv ("LOCATE_PATH"); - - check_existence = ACCEPT_EITHER; - -@@ -1624,8 +1630,8 @@ dolocate (int argc, char **argv, int secure_db_fd) - break; - - case 'd': -- locate_path = optarg; -- they_chose_db = 1; -+ user_selected_locate_path = optarg; -+ assert (optarg != NULL); - break; - - case 'e': -@@ -1715,7 +1721,7 @@ dolocate (int argc, char **argv, int secure_db_fd) - /* If the user gave the -d option or set LOCATE_PATH, - * relinquish access to the secure database. - */ -- if (they_chose_db) -+ if (user_selected_locate_path) - { - if (secure_db_fd >= 0) - { -@@ -1741,15 +1747,16 @@ dolocate (int argc, char **argv, int secure_db_fd) - } - } - -- - if (1 == isatty (STDOUT_FILENO)) - stdout_is_a_tty = true; - else - stdout_is_a_tty = false; - -- if (they_chose_db) -- splitstring (locate_path, path_separators, true, -- &path_element_pos, &path_element_len); -+ if (user_selected_locate_path) -+ { -+ splitstring (user_selected_locate_path, path_separators, true, -+ &path_element_pos, &path_element_len); -+ } - - /* Bail out early if limit already reached. */ - while (!use_limit || limits.limit > limits.items_accepted) -@@ -1765,10 +1772,11 @@ dolocate (int argc, char **argv, int secure_db_fd) - statistics.newline_count = - statistics.highbit_filename_count = 0u; - -- if (they_chose_db) -+ if (user_selected_locate_path) - { - /* Take the next element from the list of databases */ -- if (1 == path_element_len && '-' == locate_path[path_element_pos]) -+ if (1 == path_element_len -+ && '-' == user_selected_locate_path[path_element_pos]) - { - if (did_stdin) - { -@@ -1787,13 +1795,13 @@ dolocate (int argc, char **argv, int secure_db_fd) - { - if (0 == path_element_len - || (1 == path_element_len -- && '.' == locate_path[path_element_pos])) -+ && '.' == user_selected_locate_path[path_element_pos])) - { - db_name = LOCATE_DB; - } - else - { -- path_element = strndup (&locate_path[path_element_pos], -+ path_element = strndup (&user_selected_locate_path[path_element_pos], - path_element_len); - db_name = path_element; - } -@@ -1889,11 +1897,20 @@ dolocate (int argc, char **argv, int secure_db_fd) - free (path_element); - path_element = NULL; - } -- if (!splitstring (locate_path, path_separators, false, -- &path_element_pos, &path_element_len)) -- { -- break; -- } -+ -+ if (!user_selected_locate_path) -+ { -+ /* We're not actually iterating through the values in -+ $LOCATE_PATH so we don't want to check for the next -+ element in user_selected_locate_path (since we manually set db_name = -+ LOCATE_DB without using user_selected_locate_path). */ -+ break; -+ } -+ else if (!splitstring (user_selected_locate_path, path_separators, false, -+ &path_element_pos, &path_element_len)) -+ { -+ break; -+ } - } - - if (just_count) --- findutils.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: