Subject: built for a different version of the OS
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 12/21/2005 16:50:08
Maybe we should add a per-package variable to define when to warn about
different version of OS when using pkg_add.
This is noisy:
-sh-2.05b$ sudo pkg_add /mnt/Linux/2.6.9/i386/All/gramps-2.0.9.tbz
Password:
pkg_add: Warning: package `/mnt/Linux/2.6.9/i386/All/gramps-2.0.9.tbz' was
built for a different version of the OS:
pkg_add: Linux/i386 2.6.9 (pkg) vs. Linux/i386 2.6.14.4 (this host)
pkg_add: Warning: package
`/mnt/Linux/2.6.9/i386/All/py24-gnome2-2.10.0.tbz' was built for a
different version of the OS:
pkg_add: Linux/i386 2.6.9 (pkg) vs. Linux/i386 2.6.14.4 (this host)
pkg_add: Warning: package `/mnt/Linux/2.6.9/i386/All/py24-gtk2-2.6.2.tbz'
was built for a different version of the OS:
pkg_add: Linux/i386 2.6.9 (pkg) vs. Linux/i386 2.6.14.4 (this host)
pkg_add: Warning: package `/mnt/Linux/2.6.9/i386/All/yelp-2.10.0.tbz' was
built for a different version of the OS:
pkg_add: Linux/i386 2.6.9 (pkg) vs. Linux/i386 2.6.14.4 (this host)
pkg_add: Warning: package
`/mnt/Linux/2.6.9/i386/All/libgtkhtml-2.6.2nb1.tbz' was built for a
different version of the OS:
pkg_add: Linux/i386 2.6.9 (pkg) vs. Linux/i386 2.6.14.4 (this host)
...
Some packages are very specific to differences in kernels (uname in Linux
doesn't tell us about the distribution itself), but most packages don't
care for this minor difference.
Another idea is to just check the first two numbers in the OS version (so
2.6 = 2.6 for me) unless a per package variable says to be more precise.
Or maybe we should get rid of the warning unless verbose is on -- since
the ONLY_FOR_PLATFORM can be precised for a fatal (not a warning) error.
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/