From owner-freebsd-ports@freebsd.org Thu Feb 9 17:09:15 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A029CD6E5B for ; Thu, 9 Feb 2017 17:09:15 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B8F1816B7 for ; Thu, 9 Feb 2017 17:09:14 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 5B32715A9 for ; Thu, 9 Feb 2017 17:09:11 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/5B32715A9; dkim=none; dkim-atps=neutral Subject: Re: Install of pkg fuse-ntfs fails because of undefined symbol in pkg!?! To: freebsd-ports@freebsd.org References: <1c6cccac-b151-d13c-c763-b336c4680118@freebsd.org> <35a953e3-918b-fc32-d990-51f7da16c884@FreeBSD.org> <20170209161249.GL2092@kib.kiev.ua> <20170209162600.GP13006@home.opsec.eu> <589C9C59.4050705@quip.cz> From: Matthew Seaman Message-ID: <16490599-dc62-f6ba-cf3c-0dceab96981b@freebsd.org> Date: Thu, 9 Feb 2017 17:09:10 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <589C9C59.4050705@quip.cz> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="75o2OUUpB8EdDQhmnEIAFveCNA1brIIX0" X-Spam-Status: No, score=1.9 required=5.0 tests=BAYES_00,PLING_QUERY, RCVD_IN_RP_RNBL,RDNS_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2017 17:09:15 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --75o2OUUpB8EdDQhmnEIAFveCNA1brIIX0 Content-Type: multipart/mixed; boundary="Vm7g692O10d3VQCfhG48kuXCGHMea7cGP"; protected-headers="v1" From: Matthew Seaman 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: <1c6cccac-b151-d13c-c763-b336c4680118@freebsd.org> <35a953e3-918b-fc32-d990-51f7da16c884@FreeBSD.org> <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--