portupgrade-devel / WITH_PKGNG
Bryan Drewery
bryan at shatow.net
Sat May 12 14:11:05 UTC 2012
> On 5/12/2012 9:44 AM, Michael C Voorhis wrote:
>>
>> This morning's new portupgrade-devel *appears* to define WITH_PKGNG in
>> spite of its not being in /etc/make.conf. Many portupgrades this
>> morning are hanging at the pkgdb update, with the process list showing:
>>
>> root 32920 0.0 0.0 3200 616 0 SN+ 9:33AM 0:00.01 make -V WITH_PKGNG
>> root 33169 0.0 0.0 3200 692 0 SN+ 9:33AM 0:00.01 make -V _JAVA_PORTS_INSTALLED USE_JAVA=1 -f /usr/ports/Mk/bsd.port.mk
>>
>> This process which used to take seconds is now taking many minutes.
>
The problem is that it's just going to take a *long time*.
Submitting a PR to update the port snapshot.
Thanks for the report!
This patch fixes in the meantime. Apply to your
/usr/local/lib/ruby/1.8/site_ruby/pkgtools/pkgdb.rb:
--- a/lib/pkgtools/pkgdb.rb
+++ b/lib/pkgtools/pkgdb.rb
@@ -105,6 +105,7 @@ class NeedsPkgNGSupport < StandardError
def with_pkgng?
if @with_pkgng.nil?
@with_pkgng = $portsdb.make_var('WITH_PKGNG')
+ @with_pkgng = false unless @with_pkgng
STDERR.puts "USING PKGNG" if @with_pkgng
end
@with_pkgng
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 898 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120512/2a59aba7/signature.pgp
More information about the freebsd-ports
mailing list