Subject: Platform incompatibles
To: None <tech-pkg@netbsd.org>
From: Mike M. Volokhov <mishka@terabyte.com.ua>
List: tech-pkg
Date: 10/09/2003 13:03:39
Greetings!

I have found pkgsrc didn't any checks on what platform is used and what
platform package was built on. For example:

mail# uname -srm
FreeBSD 4.9-PRERELEASE i386
mail# pkg_info -V
20030923
mail# pkg_info | grep colorls
mail# ls -l colorls-2.2.tgz 
-rw-r-----  1 mishka  operator  19799 Nov 30  2002 colorls-2.2.tgz
mail# pkg_info -B colorls-2.2.tgz 
Information for colorls-2.2.tgz:
Build information:
PKG_SYSCONFDIR= /usr/pkg/etc
PKGPATH= misc/colorls
OPSYS= NetBSD
OS_VERSION= 1.6K
MACHINE_ARCH= i386
MACHINE_GNU_ARCH= i386
... and so on ...
mail# pkg_add colorls-2.2.tgz 
mail# file /usr/pkg/bin/colorls 
/usr/pkg/bin/colorls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for NetBSD, dynamically linked (uses shared libs), stripped
mail# /usr/pkg/bin/colorls
ELF binary type "0" not known.
Abort

What you think about?

--
Best wishes,
Mishka.