Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Nov 2013 05:04:28 -0800 (PST)
From:      Jeffrey Bouquet <jeffreybouquet@yahoo.com>
To:        ports list <freebsd-ports@freebsd.org>
Subject:   UPDATING libtasn1
Message-ID:  <1383483868.88186.YahooMailNeo@web163906.mail.gq1.yahoo.com>

next in thread | raw e-mail | index | archive | help
UPDATING says to rebuild all that depend upon libtasn1, but =A0the +REQUIRE=
D_BY lists a large number here that still work without it. (Although they d=
on't presently work, being unsed and not having been rebuilt since pixman..=
.not really relevant but I neglect on purpose to rebuild many gnome ports e=
ach time, as many often typicall fail without modifying make.conf or switch=
ing compilers, they are more or less there for reference in case I want, sa=
y, an audio port, I would know which to grab a package maybe for.)=0A=0A=A0=
 ...(Examples: =A0qiv, dillo, =A0which =A0UPDATING probably says to rebuild=
 (untested).) =A0 So while the UPDATING syntax may be useful for production=
 machines, many with desktops might benefit from an alternate method which =
only rebuilds, say, a tenth of the huge list, using a more fine-grained met=
hod of finding those which directly depend upon the library... =A0=0A=0A=0A=
So this message I mean to include all such library bumps in the future, and=
 as a suggestion not for the next 2, 3, 4 or so similar entries, but for th=
ose more distant after something tested and useful has been put maybe into =
a shell script so that the update takes much fewer hours of CPU usage.=0A=
=0AThanks=0A=0AJ. Bouquet=A0
From owner-freebsd-ports@FreeBSD.ORG  Sun Nov  3 13:11:31 2013
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
Delivered-To: ports@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTP id EA87B1E8
 for <ports@freebsd.org>; Sun,  3 Nov 2013 13:11:30 +0000 (UTC)
 (envelope-from danilogondolfo@gmail.com)
Received: from mail-yh0-x230.google.com (mail-yh0-x230.google.com
 [IPv6:2607:f8b0:4002:c01::230])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id ABF7C2DF5
 for <ports@freebsd.org>; Sun,  3 Nov 2013 13:11:30 +0000 (UTC)
Received: by mail-yh0-f48.google.com with SMTP id f64so544412yha.21
 for <ports@freebsd.org>; Sun, 03 Nov 2013 05:11:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:message-id:date:from:user-agent:mime-version:to:subject
 :references:in-reply-to:content-type;
 bh=XTaEhiuEpaBk1xbBZ0bbkXOP1PQOVqhcgKUHQxij/1U=;
 b=he6ekOvuJZA5+WFknEfrw2CvMB71lxxhO7iRi8Zlyz7wXMX7i3nhc+bxcJm/FanxBd
 h+ls8yBh62OHp0+BrqNUXHEbClxYDIVtZ0Jkyr03vhjZdwcpUx+/HzV93Ge1D8Yl1tE8
 Q2rV54cLKOQyKKBAvks5+qqrNNnit1huVRcK443v/VIYx71UuUt2KqJPnnxSd+V8uRbB
 I5EYInvoaZADy3hBT+JoyAQ0N8Z3UewfPMxuOnl4AAdXDDz5nRyFPSgdqKC33K5msZPA
 aA0TYoL3UFBsNBqs6Wh8fFKcgwXSdr9ObLusw8qoLJe2LRPH0w3H+/mgQwU4VecMMZCB
 Xtug==
X-Received: by 10.236.5.174 with SMTP id 34mr9569341yhl.48.1383484289912;
 Sun, 03 Nov 2013 05:11:29 -0800 (PST)
Received: from [192.168.0.100] ([179.217.197.68])
 by mx.google.com with ESMTPSA id m68sm19353252yhj.22.2013.11.03.05.11.28
 for <ports@freebsd.org>
 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
 Sun, 03 Nov 2013 05:11:29 -0800 (PST)
Sender: =?UTF-8?Q?Danilo_Eg=C3=AAa_Gondolfo?= <danilogondolfo@gmail.com>
Message-ID: <52764CA9.9020705@freebsd.org>
Date: Sun, 03 Nov 2013 11:16:25 -0200
From: "Danilo E. Gondolfo" <danilo@freebsd.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
 rv:24.0) Gecko/20100101 Thunderbird/24.1.0
MIME-Version: 1.0
To: ports@freebsd.org
Subject: Problems with "spaces" in file names during stage-qa
References: <5275C412.4000909@freebsd.org>
In-Reply-To: <5275C412.4000909@freebsd.org>
X-Forwarded-Message-Id: <5275C412.4000909@freebsd.org>
Content-Type: multipart/mixed; boundary="------------040601030609040507090400"
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports>;
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 03 Nov 2013 13:11:31 -0000

This is a multi-part message in MIME format.
--------------040601030609040507090400
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hello folks,

 I've had some problems with blank chars in file names during stage-qa.

Problems like that:

====> Running Q/A tests (stage-qa)
sed:
/home/barba/Sources/freebsd-working/ports/games/lincity-ng/work/stage/usr/local/share/lincity-ng/music/01:
No such file or directory
sed: -: No such file or directory
sed: pronobozo: No such file or directory
sed: -: No such file or directory
sed: lincity.ogg: No such file or directory
sed:
/home/barba/Sources/freebsd-working/ports/games/lincity-ng/work/stage/usr/local/share/lincity-ng/music/03:
No such file or directory
sed: -: No such file or directory
sed: Robert: No such file or directory
sed: van: No such file or directory
sed: Herk: No such file or directory
sed: -: No such file or directory
sed: Architectural: No such file or directory
sed: Contemplations.ogg: No such file or directory
sed:
/home/barba/Sources/freebsd-working/ports/games/lincity-ng/work/stage/usr/local/share/lincity-ng/music/02:
No such file or directory
sed: -: No such file or directory
sed: Robert: No such file or directory
sed: van: No such file or directory
sed: Herk: No such file or directory
sed: -: No such file or directory
sed: City: No such file or directory
sed: Blues.ogg: No such file or directory


I've fixed this with the attached patch. What do you think?


Danilo.

--------------040601030609040507090400
Content-Type: text/x-diff;
 name="qa.sh.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="qa.sh.diff"

Index: Scripts/qa.sh
===================================================================
--- Scripts/qa.sh	(revision 332574)
+++ Scripts/qa.sh	(working copy)
@@ -17,8 +17,8 @@
 
 shebang() {
 	rc=0
-	for f in `find ${STAGEDIR} -type f`; do
-		interp=$(sed -n -e '1s/^#![[:space:]]*\([^[:space:]]*\).*/\1/p;2q' $f)
+	find ${STAGEDIR} -type f | while read f; do
+		interp=$(sed -n -e '1s/^#![[:space:]]*\([^[:space:]]*\).*/\1/p;2q' "$f")
 		case "$interp" in
 		"") ;;
 		/usr/bin/env) ;;
@@ -37,8 +37,8 @@
 
 symlinks() {
 	rc=0
-	for l in `find ${STAGEDIR} -type l`; do
-		link=$(readlink ${l})
+	find ${STAGEDIR} -type l | while read l; do
+		link=$(readlink "${l}")
 		case "${link}" in
 		${STAGEDIR}*) err "Bad symlinks ${l} pointing inside the stage directory"
 			rc=1
@@ -50,9 +50,9 @@
 paths() {
 	rc=0
 	dirs="${STAGEDIR} ${WRKDIR}"
-	for f in `find ${STAGEDIR} -type f`;do
+	find ${STAGEDIR} -type f | while read f; do
 		for d in ${dirs}; do
-			if grep -q ${d} ${f} ; then
+			if grep -q ${d} "${f}" ; then
 				err "${f} is referring to ${d}"
 				rc=1
 			fi
@@ -64,8 +64,8 @@
 stripped() {
 	[ -x /usr/bin/file ] || return # this is fatal
 	[ -n "${STRIP}" ] || return 0
-	for f in `find ${STAGEDIR} -type f`; do
-		output=`/usr/bin/file ${f}`
+	find ${STAGEDIR} -type f | while read f; do
+		output=`/usr/bin/file "${f}"`
 		case "${output}" in
 		*:*\ ELF\ *,\ not\ stripped*) warn "${f} is not stripped consider using \${STRIP_CMD}";;
 		esac


--------------040601030609040507090400--



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