pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46308: pkg_add should not display warnings for known compatible platform mismatches



        Note: There was a bad value `' for the field `Class'.
        It was set to the default value of `sw-bug'.

>Number:         46308
>Category:       pkg
>Synopsis:       pkg_add should not display warnings for known compatible 
>platform mismatches
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 07 18:10:01 +0000 2012
>Originator:     Jan Schaumann
>Release:        NetBSD 5.1.2
>Organization:
        
>Environment:
        
        
NetBSD domU-12-31-39-06-69-29.compute-1.internal 5.1.2 NetBSD 5.1.2 
(XEN3PAE_DOMU) #0: Thu Feb  2 17:18:36 UTC 2012  
builds%b6.netbsd.org@localhost:/home/builds/ab/netbsd-5-1-2-RELEASE/i386/201202021012Z-obj/home/builds/ab/netbsd-5-1-2-RELEASE/src/sys/arch/i386/compile/XEN3PAE_DOMU
 i386

>Description:

pkg_add displays a warning whenever a package is installed for a platform that
does not match the current platform 100%.  Under NetBSD, however, we know that
certain platforms will be compatible.  In particular, any package built under
major version N should work on other hosts running major N, even if the build
and deploy hosts have different minor versions.

Not displaying a warning would be helpful, as we do not want to train our users
to ignore such warnings and only display them when they are actually meaningful.

>How-To-Repeat:

On a 5.1.2 system, run

setenv PKG_PATH ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.1/All/
pkg_add apache


pkg_add: Warning: package `apache-2.2.21nb1' was built for a platform:
pkg_add: NetBSD/i386 5.1 (pkg) vs. NetBSD/i386 5.1.2 (this host)
pkg_add: Warning: package `perl-5.14.2nb1' was built for a platform:
pkg_add: NetBSD/i386 5.1 (pkg) vs. NetBSD/i386 5.1.2 (this host)
pkg_add: Warning: package `apr-1.4.5' was built for a platform:
pkg_add: NetBSD/i386 5.1 (pkg) vs. NetBSD/i386 5.1.2 (this host)
pkg_add: Warning: package `apr-util-1.3.12nb1' was built for a platform:
pkg_add: NetBSD/i386 5.1 (pkg) vs. NetBSD/i386 5.1.2 (this host)



>Fix:

Add logic in pkg_install/perform.c:compatible_platform() to check that, if we 
are
in fact on NetBSD and the major OS versions match, we simply return 1.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index