Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Oct 2009 23:04:41 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: portmaster: grep: Argument list too long
Message-ID:  <4ADC0179.3040507@FreeBSD.org>
In-Reply-To: <20091019053059.GN24097@kenyonralph.com>
References:  <20091019034349.GM24097@kenyonralph.com>	<4ADBEE6C.8080700@FreeBSD.org> <20091019053059.GN24097@kenyonralph.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------070800010603060700050603
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Kenyon Ralph wrote:
> On 2009-10-18T21:43:24-0700, Doug Barton <dougb@FreeBSD.org> wrote:
>> Kenyon Ralph wrote:
>>> I'm trying to replace perl 5.8 with perl 5.10, so I did this (as in the
>>> 20090328 /usr/ports/UPDATING entry):
>>>
>>> % sudo portmaster -v -t -D -o lang/perl5.10 lang/perl5.8
>>> % sudo portmaster -v -D -R -m 'FORCE_PKG_REGISTER=yes' -r perl-threaded-5.10.1
>>>
>>> (FORCE_PKG_REGISTER seems to be needed to keep libtool22 from erroring
>>> and stopping the portmaster run.)
>> I'm looking into this in more detail, but first I wonder why libtool
>> is being built at all. Did you follow the instructions in the 20090802
>> UPDATING entry to replace libtool15 with libtool22? You should not
>> need to use FORCE_PKG_REGISTER in this situation, that's a sign that
>> there is something wrong. I also suspect that it's masking a deeper
>> problem and is the cause of having things installed more than once in
>> the same portmaster run (which should never happen).
> 
> This system was first created around 2009-08-14, so it always had
> libtool22.

Ok

>> I'm also wondering if all your other ports are up to date (other than
>> switching perl versions). At least on my system perl is not required
>> by libtool so it doesn't make sense that it (or several of the other
>> things in your log) are being built at all.
> 
> Yes, before I started this perl upgrade, I had just csup'd /usr/ports
> and completed portmaster -a.

Ok

>> I'm also concerned that there is something wrong with your /var/db/pkg
>> directory, since grep can handle an argument list of many thousands of
>> items without any problems. Can you do this and let me know what it
>> says: ls -d /var/db/pkg/* | wc -l
> 
> After doing portmaster --check-depends which did a few +REQUIRED_BY
> updates:
> 
> % pkg_info | wc -l
>      845
> 
> % ls -d /var/db/pkg/* | wc -l
>      846
> 
> That is one more than portmaster -l:
> ===>>> 845 total installed ports

Ok, can you please figure out what the extra entry is?

>> Finally I would run 'portmaster --check-depends' just to see if there
>> is anything else strange going on. You will probably get some errors
>> about no installed version of perl5.8 which is normal.
> 
> Ah, I do remember seeing some warnings flying by saying that I should
> try --check-depends. As I said above, I executed it. Didn't see any
> errors about perl5.8.
> 
> I also ran portmaster --check-port-dbdir, deleted the directories that
> did not seem to be installed, and noticed that x11/kde4 and kdeutils4
> were not installed (even though the rest of kde4 seems to be installed).
> So I'm doing portmaster -v -t -D -R x11/kde4 right now, which is
> building several ports. I'll try resuming -r perl-threaded-5.10.1 after
> this.

Ok, when you get back to the perl upgrade please apply the attached
patch first. It is going to cause a lot of console output so you're
probably better off starting script first to capture it.


Doug

-- 

	Improve the effectiveness of your Internet presence with
	a domain name makeover!    http://SupersetSolutions.com/


--------------070800010603060700050603
Content-Type: text/plain;
 name="portmaster-debug.diff"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="portmaster-debug.diff"

LS0tIHBvcnRtYXN0ZXIJMjAwOS8wOS8xNSAwNzo1MDoxMQkyLjU0CisrKyBwb3J0bWFzdGVy
CTIwMDkvMTAvMTkgMDY6MDA6MzIKQEAgLTM4NCw4ICszODQsMTUgQEAKIAogaXBvcnRfZnJv
bV9vcmlnaW4gKCkgewogCWxvY2FsIGRpcgorCitlY2hvICJEZWJ1Zz4gQWJvdXQgdG8gZG8g
Z3JlcCAtbCBAY29tbWVudCBPUklHSU46JHsxfSQgJHBkYi8qLytDT05URU5UUyIKKwogCWRp
cj1gZ3JlcCAtbCAiQGNvbW1lbnQgT1JJR0lOOiR7MX0kIiAkcGRiLyovK0NPTlRFTlRTYAog
CisJaWYgWyAkPyAtbmUgMCBdOyB0aGVuCisJCWZhaWwgImdyZXA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gLTEwNTksNiArMTA4NCw4IEBACiAJCVsgLXMgIiRkaXN0X2xpc3QiIF0gfHwgeyB1
bnNldCBkaXN0X2xpc3QgOyByZXR1cm4gMDsgfQogCQlbIC1uICIkRE9OVF9TQ1JVQl9ESVNU
RklMRVMiIF0gJiYgcmV0dXJuIDAKIAorZWNobyAiRGVidWc+IEFib3V0IHRvIGRvIGdyZXAg
XkRJU1RGSUxFICRkaXN0X2xpc3QiCisKIAkJIyBUaGUgZ3JlcCBpcyBuZWVkZWQgdG8gYWxs
b3cgZm9yIGNvbW1lbnRzLCBldGMuCiAJCWZvciBmaWxlIGluIGBncmVwIF5ESVNURklMRSAk
ZGlzdF9saXN0YDsgZG8KIAkJCWZpbGU9JHtmaWxlI0RJU1RGSUxFOn0gOyBmaWxlPSR7Zmls
ZSUlOip9CkBAIC0xNjg5LDYgKzE3MTYsOCBAQAogCSMgR2xvYmFsOiBNQVNURVJfUkJfTElT
VAogCWxvY2FsIHJlcV9ieQogCitlY2hvICJEZWJ1Zz4gQWJvdXQgdG8gZG8gZ3JlcCAtbCBE
RVBPUklHSU46JHBvcnRkaXIkICRwZGIvKi8rQ09OVEVOVFMiCisKIAlmb3IgcmVxX2J5IGlu
IGBncmVwIC1sIERFUE9SSUdJTjokcG9ydGRpciQgJHBkYi8qLytDT05URU5UUyB8IFwKIAkg
ICAgY3V0IC1mIDUgLWQgJy8nYDsgZG8KIAkJTUFTVEVSX1JCX0xJU1Q9IiR7TUFTVEVSX1JC
X0xJU1R9JHtyZXFfYnl9ICIK
--------------070800010603060700050603--



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