From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 5 19:40:14 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E92916A40F for ; Fri, 5 Jan 2007 19:40:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id E2E9C13C44B for ; Fri, 5 Jan 2007 19:40:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l05JeDIb022346 for ; Fri, 5 Jan 2007 19:40:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l05JeDf8022345; Fri, 5 Jan 2007 19:40:13 GMT (envelope-from gnats) Resent-Date: Fri, 5 Jan 2007 19:40:13 GMT Resent-Message-Id: <200701051940.l05JeDf8022345@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, Ian Tegebo Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CFAC416A505 for ; Fri, 5 Jan 2007 19:31:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id A2B6E13C4AE for ; Fri, 5 Jan 2007 19:31:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l05JVEao068668 for ; Fri, 5 Jan 2007 19:31:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l05JVEwR068667; Fri, 5 Jan 2007 19:31:14 GMT (envelope-from nobody) Message-Id: <200701051931.l05JVEwR068667@www.freebsd.org> Date: Fri, 5 Jan 2007 19:31:14 GMT From: Ian Tegebo To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/107583: [PATCH] cp: Argument too long - Makefile.in should use xargs X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jan 2007 19:40:14 -0000 >Number: 107583 >Category: ports >Synopsis: [PATCH] cp: Argument too long - Makefile.in should use xargs >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Jan 05 19:40:13 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Ian Tegebo >Release: 5.3-RELEASE-p19 >Organization: Residential Computing at UCB >Environment: FreeBSD granite.rescomp.berkeley.edu 5.3-RELEASE-p19 FreeBSD 5.3-RELEASE-p19 #0: Fri Jul 22 13:08:49 PDT 2005 root@milk.rescomp.berkeley.edu:/usr/obj/usr/src/sys/MILK_5_3_07_22 i386 >Description: The number of xml files in db/source/printer is too many for my version of cp: yontege@granite foomatic-db-20061214 $ ls db/source/printer/|wc -l 2055 It looks like the newest version of foomatic-db, foomatic-db-20070105, might have the same issue. When trying to install I get the following error: ===> Installing for foomatic-db-20061214 ===> foomatic-db-20061214 depends on file: /usr/local/bin/perl5.8.8 - found ===> foomatic-db-20061214 depends on shared library: xml2.5 - found ===> foomatic-db-20061214 depends on shared library: curl.4 - found ===> Generating temporary packing list install -d //usr/local/share/foomatic install -d //usr/local/share/foomatic/db/source/printer install -d //usr/local/share/foomatic/db/source/driver install -d //usr/local/share/foomatic/db/source/opt install -d //usr/local/share/foomatic/db/source/PPD cp db/oldprinterids //usr/local/share/foomatic/db cp db/source/printer/*.xml //usr/local/share/foomatic/db/source/printer cp: Argument list too long gmake: *** [install-db] Error 2 *** Error code 2 Stop in /usr/ports/print/foomatic-db. *** Error code 1 >How-To-Repeat: I'm using the following port version, 20061214, with Makefile CVS tag: # $FreeBSD: ports/print/foomatic-db/Makefile,v 1.23 2006/12/16 15:54:52 acm Exp cd /usr/ports/print/foomatic-db make install >Fix: I wasn't able to attach my patch without error using the web form. What follows is a simple patch that uses find and xargs to work around this problem; I created /usr/ports/print/foomatic-db/files and dropped my patch inside. --- Makefile.in Thu Dec 14 04:11:54 2006 +++ Makefile.in-new Fri Jan 5 10:51:50 2007 @@ -66,12 +66,14 @@ install -d $(DESTDIR)$(LIBDIR)/db/source/opt install -d $(DESTDIR)$(LIBDIR)/db/source/PPD cp db/oldprinterids $(DESTDIR)$(LIBDIR)/db - cp db/source/printer/*.xml $(DESTDIR)$(LIBDIR)/db/source/printer + find db/source/printer -name '*.xml' | \ + xargs -J % cp % $(DESTDIR)$(LIBDIR)/db/source/printer ( cd db/source/driver/; \ for d in $(DRIVERXMLS); do \ cp $$d $(DESTDIR)$(LIBDIR)/db/source/driver; \ done ) - cp db/source/opt/*.xml $(DESTDIR)$(LIBDIR)/db/source/opt + find db/source/opt -name '*.xml' | \ + xargs -J % cp % $(DESTDIR)$(LIBDIR)/db/source/opt ( cd db/source && tar cf - --exclude=.svn PPD ) | \ ( cd $(DESTDIR)$(LIBDIR)/db/source && tar xf -) if test $(GZIP) != GZIP_NOT_FOUND -a $(GZIP_PPDS) != no ; then \ >Release-Note: >Audit-Trail: >Unformatted: