Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2005 11:11:20 +0400
From:      "Andrew P." <infofarmer@gmail.com>
To:        John DeStefano <john.destefano@gmail.com>
Cc:        FreeBSD Questions <questions@freebsd.org>
Subject:   Re: portupgrade stale dependencies
Message-ID:  <cb5206420510270011k13c03951wbecedf63fa2a3dd@mail.gmail.com>
In-Reply-To: <f2160e0d0510262008x66e4aecdy9c6cf98d0e228e4e@mail.gmail.com>
References:  <f2160e0d0510151746n28cdbb25s2150337c0c6f7cfc@mail.gmail.com> <cb5206420510181404x52cf986exdf215bdbd43b1596@mail.gmail.com> <f2160e0d0510231046w6d1e11d2l57fb291d1df8dc7f@mail.gmail.com> <cb5206420510231339h7f77d3eet615b11cf2dd2fc5a@mail.gmail.com> <f2160e0d0510231524i161baf82u92c5e824dd4ea438@mail.gmail.com> <f2160e0d0510231812rb62682fm1839656e27af0d45@mail.gmail.com> <cb5206420510240135o6a557f0dr8223243eec2cadff@mail.gmail.com> <f2160e0d0510241607y1ba6674fj4d5576b5eeeec90b@mail.gmail.com> <cb5206420510250018u15d80777rc145b77cdc5b3273@mail.gmail.com> <f2160e0d0510262008x66e4aecdy9c6cf98d0e228e4e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/27/05, John DeStefano <john.destefano@gmail.com> wrote:

<...snip...>

>
> After clearing out the ports, updating ports (with portsnap) and
> source, and rebuilding the system and kernel... it seemed the ultimate
> problem was actually a dependency of the package to apache1.3. After I
> ran 'pkgdb -F' and "fixed" this dependency to point to apache2.1, but
> I still had trouble installing ports.
>
> 'portsdb -Uu' would not run, so I ran 'make fetchindex' and
> 'portupdate -a'.  From what I've read, this _should_ create an index
> and update all out-of-date ports and their dependencies, but it never
> has worked for me.  I just tried this combination again, and it
> (again) punts during portupdate.  This time, 38 ports were skipped and
> 7 failed, the first failure being a strange compiler error in updating
> from apache-2.0.48.
>
> I've been fighting with ports for long enough now to have become a bit
> frustrated with them.  If you have any thoughts or suggestions on how
> to troubleshoot them, please pass them on.
>
> Thanks,
> ~John
>

Do not fix dependencies if you're not sure that they
are really broken. Don't use apache21 unless 2.0
is absolutely inappropriate. The proper way to change
dependencies from apache1 to apache2 is to add
"WITH_APACHE2=3Dtrue" to /etc/make.conf (or to
/usr/local/etc/pkgtools.conf, but that's an advanced
topic).

If you have portsdb utility, don't use make fetchindex,
just add -F to portsdb: "portsdb -uUF" will work fine.

You cann add -k to portupgrade, so that it doesn't
skip ports (but it won't fix the failed ones).

John, you'll have to spend a few hours reading
ports documentation before you find them really
great (which they really are).



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