Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Apr 2006 16:28:17 +0000
From:      Hannes Hauswedell <hannes.hauswedell@gmail.com>
To:        freebsd-hackers@freebsd.org, FreeBSD-Ports@freebsd.org
Subject:   pkgtools-bug? (from freebsd-hackers -> Re: weird problems with porupgrade)
Message-ID:  <200604161628.18641.hannes.hauswedell@gmail.com>
In-Reply-To: <200604161430.43776.hannes.hauswedell@gmail.com>
References:  <200604151635.16110.hannes.hauswedell@gmail.com> <20060415213036.GC830@turion.vk2pj.dyndns.org> <200604161430.43776.hannes.hauswedell@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
i have looked into the pkgtools ruby code....
it seems to be some bug with the logged_command function.

i dont think it is a very clean solution but i have provided a diff 
against /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb that solves the 
problem.
could someone with knowledge of ruby and maybe in charge of portupgrade check 
this? i have cc'ed to the ports-mailinglists too since it looks like a bug,

thanks & happy easter  ;)

[-- Attachment #2 --]
483,484d482
<   elsif STDIN.tty?
<     ['/usr/bin/script', '-qa', file, *args]
486c484
<     ['/bin/sh', '-c', sprintf('%s >>%s 2>&1', shelljoin(*args), shelljoin(file))]
---
>     ['/usr/bin/script', '-qa', file, *args]

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