public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: ssuominen@gentoo.org, roman.zilka@gmail.com
Subject: Re: [gentoo-dev] Non-reproducible "useless" epunt_cxx QA warning? Misguided bugs?
Date: Sat, 9 Mar 2013 18:55:41 +0100	[thread overview]
Message-ID: <20130309185541.666cf20f@pomiocik.lan> (raw)
In-Reply-To: <20130309185036.26d13626@pomiocik.lan>

[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]

On Sat, 9 Mar 2013 18:50:36 +0100
Michał Górny <mgorny@gentoo.org> wrote:

> On Sat, 09 Mar 2013 19:26:34 +0200
> Samuli Suominen <ssuominen@gentoo.org> wrote:
> 
> > I have to run off for few hours, like now, but this one user is filing 
> > dozens of these epunt_cxx bugs and nobody seem to be able to reproduce them:
> > 
> > http://tinyurl.com/bjwxzad
> > 
> > Could someone verify they are actually legimate before they get assigned 
> > to maintainers?
> 
> Oh, I see the problem now. Stupid bash, stupid loops and stupid
> subshelling. I'll attach a patch for the check in a minute.

Index: eutils.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
retrieving revision 1.411
diff -u -B -r1.411 eutils.eclass
--- eutils.eclass	26 Feb 2013 14:36:40 -0000	1.411
+++ eutils.eclass	9 Mar 2013 17:54:20 -0000
@@ -1270,11 +1270,11 @@
 	[[ -z ${dir} ]] && dir=${S}
 	ebegin "Removing useless C++ checks"
 	local f any_found
-	find "${dir}" -name configure | while read f ; do
+	while IFS= read -r -d '' f; do
 		patch --no-backup-if-mismatch -p0 "${f}" \
 			"${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch" > /dev/null \
 			&& any_found=1
-	done
+	done < <(find "${dir}" -name configure -print0)
 
 	if [[ -z ${any_found} ]]; then
 		eqawarn "epunt_cxx called unnecessarily (no C++ checks to punt)."

-----
But that doesn't seem to be the issue. If you remove '>/dev/null',
you'd notice that the patch does not apply...

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]

  reply	other threads:[~2013-03-09 17:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-09 17:26 [gentoo-dev] Non-reproducible "useless" epunt_cxx QA warning? Misguided bugs? Samuli Suominen
2013-03-09 17:50 ` Michał Górny
2013-03-09 17:55   ` Michał Górny [this message]
2013-03-09 18:17 ` Douglas Freed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130309185541.666cf20f@pomiocik.lan \
    --to=mgorny@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=roman.zilka@gmail.com \
    --cc=ssuominen@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox