Date: Tue, 20 Mar 2012 08:48:38 +0100 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: current@FreeBSD.org Subject: Re: ABI/architecture identification for packages Message-ID: <20120320074837.GE1692@azathoth.lan> In-Reply-To: <69607.1332224677@critter.freebsd.dk> References: <20120319215802.GC1692@azathoth.lan> <69607.1332224677@critter.freebsd.dk>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Tue, Mar 20, 2012 at 06:24:37AM +0000, Poul-Henning Kamp wrote: > In message <20120319215802.GC1692@azathoth.lan>, Baptiste Daroussin writes: > > >On Mon, Mar 19, 2012 at 10:35:08PM +0100, Baptiste Daroussin wrote: > >> Hi all, > >> > >> In order to identify architectures I need to find a uniq id for every > >> possibilities (for pkgng) > >> > >> here is the identification I propose: > >> > >> arch-class-os-majorversion(-archi_specific_extension) > > Given how sparse this name-space is, you'll have less than 50 > different values, you might want to consider something more compact, > such as a single letter for all components, and the version number last: > > X2F9 = x64-32-freebsd-9 > X4F10 = x64-64-freebsd-10 > A2FB9 = arm-32-freebsd-eb_oabi-9 > > By the time we run out of ASCII or even Unicode characters, we have > other problems. > While I tend to agree to compact/short identifier on the principle, I don't really like the obfuscation it brings, I prefer this to remain humain readable, at a point or another it could be shown to users (you are trying to install an x86-64-freebsd-10 package on a x86-32-freebsd-9 system if more understandable than "you are trying to install a X4F10 package on a X2F9 system.) regards, Bapt [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk9oNlUACgkQ8kTtMUmk6Ewe7wCbBdk+UqPNHO06y72eCyAhAmuC xPIAoKjFWqA0c3b5gtpZtsL5DMRRhtta =af77 -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120320074837.GE1692>
