Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jul 2017 12:56:40 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-pkg@freebsd.org
Subject:   Re: pkg install problem(s)
Message-ID:  <dc75ed0b-7fc2-6fac-9035-231b7a37eb99@freebsd.org>
In-Reply-To: <1852056364.4983200.1499166659388@mail.yahoo.com>
References:  <1852056364.4983200.1499166659388.ref@mail.yahoo.com> <1852056364.4983200.1499166659388@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--l0iVPilUe4vMakVPqQB61j9vIKH7pTWdm
Content-Type: multipart/mixed; boundary="0Bprpwg5GX97qX5NPPCQSPPjgFraFAuI7";
 protected-headers="v1"
From: Matthew Seaman <matthew@freebsd.org>
To: freebsd-pkg@freebsd.org
Message-ID: <dc75ed0b-7fc2-6fac-9035-231b7a37eb99@freebsd.org>
Subject: Re: pkg install problem(s)
References: <1852056364.4983200.1499166659388.ref@mail.yahoo.com>
 <1852056364.4983200.1499166659388@mail.yahoo.com>
In-Reply-To: <1852056364.4983200.1499166659388@mail.yahoo.com>

--0Bprpwg5GX97qX5NPPCQSPPjgFraFAuI7
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

On 07/04/17 12:10, Jeffrey Bouquet via freebsd-pkg wrote:
> pkgdb -u
> origins - not a string
> (NilClass)
> Cannot read the pkgdb!
> .............................................
> That has just started happening.

pkgdb is part of portupgrade(8) IIRC.  Not sure why you care about that
if you're installing things with binary pkgs?

> ............................................
> pkg update
> Shared object 'libarchive.so.7' not found, required by "pkg"
> .............................................
> that has just started happening [ so using pkg-static...]
> 12.0-CURRENT r313487 Feb 13 2017  i386

Yes.  This indicates that the copy of pkg(8) you're using was compiled
on an incompatible build of 12.0-CURRENT -- but that's the sort of thing
that can happen when you're using HEAD I'm afraid.  Looks like
libarchive.so got upgraded and had its shlib version bumped sometime
between when you last upgraded the OS and now, and you're using a
precompiled copy of pkg(8) built after the libarchive bump. If you
update to a more recent version of 12.0-CURRENT, this should sort itself
out.

> ...............................................
> On to the Subject:
>  Which has plagued my principal method of twice weekly using pkg to
>  upgrade going on 3? years now.
>  For various reasons, I have to pkg install... only the majority of
>  pkgs to be updated.
>  For instance, not libxul as of now, cannot afford desktop breakage of
>  seamonkey, for instance.
>  nor ffmpeg, would prefer not to risk breakage of mplayer, for example =


This procedure sounds inherently fragile and it certainly insn't the way
pkg(8) is intended to work.  Why exactly do you feel you have to upgade
like that?

> So I begin typing the subset. pkg-static install p5-This p5-That...
> consisting of 40 or so ports.
> Upon the 30 typed in, Xorg freezers, reboot.
> TEDIOUS.

You could, oh, write a pretty small shell script to do all the tedious
stuff?  Not that that will necessarily help you with the Xorg problems.

> a better solution,
> pkg install works like 'make config' and
> one checks off the ones to be updated.
> Then, 'is this what you want?
> presents
>  a subset of the removed/new/upgrade/reinstall
> lists, rather than all-or-none brute-force install of all.

This is a fairly dangerous approach in general.  Cherry-picking packages
to be upgraded is not an easy thing to get right without a deep
understanding of the dependency relationships between all the packages
you have installed, and what that will transform into after upgrading.
But that's exactly what pkg(8) handles for itself without requiring the
end users to have such detailed knowledge when told to 'upgrade everythin=
g'.

So a patch to implement what you suggest is unlikely to be accepted I'm
afraid.

> .....................
> Kindly prioritize that 'feature' into pkg...?
> ....................
> while I am presenting [re presenting ] q about pkg,
> ......................
> make build-depends-list
> pkg-static: ignoring bad configuration entry in pkg.conf: "INDEX-12"
>    ... it does not say why, what a preferred entry should be...

Please show us the output from 'pkg -vv'  It looks like the INDEXFILE
setting in pkg.conf is inconsistent with the rest of your system in some
way.  This is probably not a big deal though -- the INDEXFILE is only
used by some invocations of 'pkg version', and then only if you have a
checked out copy of the ports tree with an INDEX-12 file.  Personally,
I'd recommend using the -R option to pkg-version(8) so that it compares
things to the repository catalogue.

> make: "/usr/ports/Mk/Uses/ncurses.mk: line 67: warning:
>  /usr/local/sbin/pkg-static info -g -ql devel/ncurses | grep
>  -m 1 "^`pkg query "%p" devel/ncurses` /lib/libncurses.so."" returned
> non-zero status.

Yeah.  probably related to the libarchive problem you talk about above
-- which will break the `pkg query "%p" devel/ncurses` bit.

> ....................................
> I am totally perplexed by the above...
> .............................
> At least I've workarounds for it all... Kudos to the developers etc.
> ...........................

	Cheers,

	Matthew



--0Bprpwg5GX97qX5NPPCQSPPjgFraFAuI7--

--l0iVPilUe4vMakVPqQB61j9vIKH7pTWdm
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAllbgn4ACgkQAFE/EOCp
5Ocq+xAAtDBKfZ7hJdNjXPn6CYucuab5vw1mCoeQ35OcOhPk+MrymO/jff54NVSh
gd/P9NzGcwyPCLeodAQCZY4udXT0/txOiE4vPpe9f7yAS/dL+9cq8Y+Ry8VOnb/f
OBTEGOmyeUwu4l4lZzwc/0S4eEhk2h7tHCwecFCzGGagzAzTz51zxVfXzCS6vc97
86BwvC4HEIQWL3nN7n0+jibCcj7LdElZhOE8VuUN9ebdZKFh662uvOky/pSphKL+
ws1LrVExiEeouh13X6IRZWVkaNuEu7JtZbUHfO2RtPyeR0A1l1CuQsntVOHyxah8
61xQPu3gmN8YJSYcZA2KhE7GGR4w4c6wShsA2jZWUoV8Xr0TsXnLHsS4A6U9ue2k
VoXFgi/3db1hC+ba7rMmFe1wyJjo+SszHQ9SgPjMX3HYTCezLV8m6HImCkj+/6n8
gIX3al4M+ap8zkB9Y6SYtE5vsS0L1C7Bhmn7sehQeMT5nn7w5BTr+JnUnndE5ngt
EcGB5qrSZu+wSK11KQ01KLHtd6c2UwSOFvBMlonrQWRbi8tCoWMgS4MUH/6GH95G
iNPxro6oNXEsoyyluMFOCNZ/tXo2Vk3Ilt9/pR8CDrAdW26dv2Usz86YzIQwmsTV
OrOHXZ2wOO20ap/uM6gvyez7liDwkib+lv5Q8+tfi4fgHJhvJUI=
=1X9M
-----END PGP SIGNATURE-----

--l0iVPilUe4vMakVPqQB61j9vIKH7pTWdm--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dc75ed0b-7fc2-6fac-9035-231b7a37eb99>