Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2013 16:46:32 +0300
From:      Vitaly Magerya <vmagerya@gmail.com>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: problems with half installed ports
Message-ID:  <5166BEB8.7060309@gmail.com>
In-Reply-To: <51669B48.4050905@gmail.com>
References:  <20130411101916.GA3339@tinyCurrent> <51669B48.4050905@gmail.com>

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

Earlier I wrote:
> Anyway, the problem you're describing allows for another fix. If ports/A
> depends of file-B, port system could check not only that file-B exists,
> but if there is also a package that installed it (via 'pkg which'), and
> if not, install ports/B. This will of course slow down ports operations
> somewhat.

Here's a patch to that effect.

(Only tested with PKGNG; should work with old pkg tools, but some
tweaking may be required).

Matthias, can you try to reproduce the situation you described, and see
if it will be resolved after applying this patch?

--------------000903060400040103020101
Content-Type: text/plain; charset=windows-1251;
 name="ports-pkg-which.diff.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="ports-pkg-which.diff.txt"

ZGlmZiAtcnVOIE1rLm9yaWcvYnNkLmNvbW1hbmRzLm1rIE1rL2JzZC5jb21tYW5kcy5tawot
LS0gTWsub3JpZy9ic2QuY29tbWFuZHMubWsJMjAxMy0wMy0xOSAxMToyNzo1Mi4wMDAwMDAw
MDAgKzAyMDAKKysrIE1rL2JzZC5jb21tYW5kcy5tawkyMDEzLTA0LTExIDE0OjE1OjQ5LjAw
MDAwMDAwMCArMDMwMApAQCAtMTI4LDYgKzEyOCw3IEBACiBQS0dfQ1JFQVRFPz0JCSR7UEtH
X0JJTn0gY3JlYXRlCiBQS0dfQUREPz0JCSR7UEtHX0JJTn0gYWRkCiBQS0dfUVVFUlk/PQkJ
JHtQS0dfQklOfSBxdWVyeQorUEtHX1dISUNIPz0JCSR7UEtHX0JJTn0gd2hpY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1gJHtMRENPTkZJR30gJHtfTERDT05GSUdfRkxBR1N9IC1yIHwgJHtHUkVQfSAtdndG
IC1lICIke1BLR0NPTVBBVERJUn0iYDsgXAorCQlpZiAke0VDSE9fQ01EfSAiJCRsaWJzIiB8
ICR7R1JFUH0gLXF3RSAtZSAiLWwkJHBhdHRlcm4iOyB0aGVuIFwKIAkJCSR7RUNIT19NU0d9
ICIgLSBmb3VuZCI7IFwKIAkJCWlmIFsgJHtfREVQRU5EX0FMV0FZU30gPSAxIF07IHRoZW4g
XAogCQkJCSR7RUNIT19NU0d9ICIgICAgICAgKGJ1dCBidWlsZGluZyBpdCBhbnl3YXkpIjsg
XAogCQkJCW5vdGZvdW5kPTE7IFwKKwkJCWVsaWYgJHtFQ0hPX0NNRH0gIiQkbGlicyIgfCAk
e0dSRVB9IC13RSAtZSAiLWwkJHBhdHRlcm4iIHwgJHtTRUR9ICdzLy4qPT4gLy8nIHwgXAor
CQkJCXdoaWxlIHJlYWQgbGliOyBkbyBcCisJCQkJCWlmICR7UEtHX1dISUNIfSAiJCRsaWIi
ID4vZGV2L251bGw7IHRoZW4gcmV0dXJuIDE7IGZpOyBcCisJCQkJZG9uZTsgXAorCQkJdGhl
biBcCisJCQkJJHtFQ0hPX01TR30gIiAgICAgICAoYnV0IG5vdCBpbnN0YWxsZWQgYnkgYW55
IHBhY2thZ2UpIjsgXAorCQkJCW5vdGZvdW5kPTE7IFwKIAkJCWVsc2UgXAogCQkJCW5vdGZv
dW5kPTA7IFwKIAkJCWZpOyBcCg==
--------------000903060400040103020101--



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