pkgsrc-Bugs archive

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

pkg/44421: pkgtools/osabi from pkgsrc-2010Q4 fails to install on aix 5.3



>Number:         44421
>Category:       pkg
>Synopsis:       pkgtools/osabi from pkgsrc-2010Q4 fails to install on aix 5.3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 20 05:10:00 +0000 2011
>Originator:     J Raynor
>Release:        aix 5.3
>Organization:
>Environment:
AIX testsys 3 5
>Description:
I'm trying to install pkgtools/osabi since it's a dependency for other packages 
I want to install.  I'm using gcc on aix 5.3, and below is the error I'm 
getting:

===> Installing for osabi-AIX-5.3.0.0
=> Running PRE-INSTALL script actions
The Operating System version (5.3) does not match 5.3.0.0
*** Error code 1

Stop.
bmake: stopped in /jxr/pkgsrc/pkgtools/osabi
*** Error code 1

Stop.
bmake: stopped in /jxr/pkgsrc/pkgtools/osabi
*** Error code 1

Stop.
bmake: stopped in /jxr/pkgsrc/pkgtools/osabi



pkgsrc reports the OS_VERSION as 5.3.0.0.  From a brief discussion on 
pkgsrc-users, pkgsrc should report OS_VERSION as 5.3.


>How-To-Repeat:
Try to install osabi on aix 5.3.
>Fix:
The problem is in pkgsrc/mk/bsd.prefs.mk.  Backslashes are not needed to do the 
regex grouping, and their presence interferes with it.  This prevents "5.3.0.0" 
from being transformed into "5.3" as intended.  The following patch fixes the 
problem:


--- bsd.prefs.mk.orig   2011-01-19 12:42:26.000000000 -0600
+++ bsd.prefs.mk        2011-01-19 12:42:50.000000000 -0600
@@ -115,7 +115,7 @@
 .  else
 _OS_VERSION!=          echo `${UNAME} -v`.`${UNAME} -r`
 .  endif
-OS_VERSION=            ${_OS_VERSION:C/\([0-9]*\.[0-9]*\).*/\1/}
+OS_VERSION=            ${_OS_VERSION:C/([0-9]*\.[0-9]*).*/\1/}
 LOWER_OPSYS_VERSUFFIX= ${_OS_VERSION}
 LOWER_OPSYS?=          aix
 LOWER_VENDOR?=         ibm





Home | Main Index | Thread Index | Old Index