Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2017 17:09:10 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: Install of pkg fuse-ntfs fails because of undefined symbol in pkg!?!
Message-ID:  <16490599-dc62-f6ba-cf3c-0dceab96981b@freebsd.org>
In-Reply-To: <589C9C59.4050705@quip.cz>
References:  <dvvl9chf9h22dpjto35d44enid819p9rnc@4ax.com> <h91m9cpbmp6js1km1bson74he5uuui9r6h@4ax.com> <1c6cccac-b151-d13c-c763-b336c4680118@freebsd.org> <ndjm9cl4samqgioi25ro8p2q6liimvr1h4@4ax.com> <35a953e3-918b-fc32-d990-51f7da16c884@FreeBSD.org> <AE0D514C-D235-462D-B31D-66FC619D9F4D@lastsummer.de> <20170209161249.GL2092@kib.kiev.ua> <20170209162600.GP13006@home.opsec.eu> <589C9C59.4050705@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--75o2OUUpB8EdDQhmnEIAFveCNA1brIIX0
Content-Type: multipart/mixed; boundary="Vm7g692O10d3VQCfhG48kuXCGHMea7cGP";
 protected-headers="v1"
From: Matthew Seaman <matthew@freebsd.org>
To: freebsd-ports@freebsd.org
Message-ID: <16490599-dc62-f6ba-cf3c-0dceab96981b@freebsd.org>
Subject: Re: Install of pkg fuse-ntfs fails because of undefined symbol in
 pkg!?!
References: <dvvl9chf9h22dpjto35d44enid819p9rnc@4ax.com>
 <h91m9cpbmp6js1km1bson74he5uuui9r6h@4ax.com>
 <1c6cccac-b151-d13c-c763-b336c4680118@freebsd.org>
 <ndjm9cl4samqgioi25ro8p2q6liimvr1h4@4ax.com>
 <35a953e3-918b-fc32-d990-51f7da16c884@FreeBSD.org>
 <AE0D514C-D235-462D-B31D-66FC619D9F4D@lastsummer.de>
 <20170209161249.GL2092@kib.kiev.ua> <20170209162600.GP13006@home.opsec.eu>
 <589C9C59.4050705@quip.cz>
In-Reply-To: <589C9C59.4050705@quip.cz>

--Vm7g692O10d3VQCfhG48kuXCGHMea7cGP
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 02/09/17 16:44, Miroslav Lachman wrote:
> Why don't add some check in to "pkg" to deny (or warn user) upgrade or
> install on unsupported / EOLed system?
> Just check version on current system against some metadata info in
> repository.

Actually the metadata should be in the package, rather than the
repository.  We need to record the OS version the package was compiled
under at the point the package is created, and then pkg(8) can compare
that to the OS version at install time.  This will work not just for the
FreeBSD pkg repos, but for packages built for private repos too.  And it
will still work, even if you grab a bunch of packages from somewhere
else and make your own repo from them.

Even so, pkg(8) should not refuse to install the newer package on the
older system; just emit a big fat warning that what you're doing is
dangerous, and may lead you into regret and grief.  (Unix has a
tradition of not stopping users from doing stupid things, because that
also makes it possible to do amazingly clever things...)

This is complicated by such things as 'NO_ARCH' packages -- your pure
perl/ruby/python code is still going to work almost regardless of the OS
version.  As will all sorts of type fonts or collections of desktop
icons and so forth.

Plus this will need to be carefully debugged when packages are
cross-compiled or compiled in jails on a host system with a different
kernel version.

	Cheers,

	Matthew



--Vm7g692O10d3VQCfhG48kuXCGHMea7cGP--

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

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

iQIzBAEBCgAdFiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAlicojYACgkQAFE/EOCp
5Odtpg/+OhCic1Nb4t8cpejRSEe36eZNb69XW2fL6LjsAavyynVhDiRfqLiPnYtk
zNKlFb2F9GOYp0sfxoZhhyeuXDkaS/F1Q8VlcXNemVW0dUuv2CdQTRDOWrAois7F
9Pt9LQvCjBR+nGpBYMxDL8JYF2uxP9qglU/bL4FbKB96h9EAdJtk98PD6tMGJ9xp
/m5OsFGlOQDUW5TMxSjqJbNSao5OChjCRY9q31n/pm3Db7R68J34BkgV7PBL129v
cv0H3TdqFYNdUi0vulYVv+fkqUhQPYrHyyUFPt9XTAHqQyjuPYct/mfc0+YnIc4L
bOnWM2tclq+voBmyTGIliSuusekicG0meby+d+fTHbxXfL4ppFMJRfoGNgmDrZvr
nXywdyuOOpDZWeQNtjdAIhz7FF/ibrOF1tWIzZOGAVe8fY0H6hxYwWjZxApWRNgv
LfDFqsTMhKGEW02z4eGRZprPdlfAaq0Ow9S4f5pJeGlN1LhabQLp8JQYWa9ViiOI
Q61cIUXbCA8UtBXbomiaIvr36jzjyX1PADGNo+ghXZpxlSBeeHHp+ntVGzAQH9Mm
ImSpw396BmP5xrlWOu25OV/x3+3rkD0kBfvkmBezOQqQT34mv/24Su3umbAN7MjN
m74KdgZUIr3zU3NEV0YHURxIVLydCa1rMRL4qDn6K81cQqV470M=
=Q6Oz
-----END PGP SIGNATURE-----

--75o2OUUpB8EdDQhmnEIAFveCNA1brIIX0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16490599-dc62-f6ba-cf3c-0dceab96981b>