Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2011 13:23:53 GMT
From:      Jan Sebosik <sebosik@itm8.sk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/154734: ksh93 port installation failure
Message-ID:  <201102131323.p1DDNr9k037509@red.freebsd.org>
Resent-Message-ID: <201102131330.p1DDU5Fu033680@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         154734
>Category:       ports
>Synopsis:       ksh93 port installation failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 13 13:30:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jan Sebosik
>Release:        7-STABLE
>Organization:
>Environment:
FreeBSD s1.lan 7.3-STABLE FreeBSD 7.3-STABLE #1: Sat Feb 12 23:01:41 CET 2011     root@s1.lan:/home/devel/obj/home/devel/src/sys/server  i386

>Description:
I was tryin` to update ksh93 to current version in ports, but port got
little problem with installation. So I made little correction to
Makefile because it is trying to search for binaries in
"work/arch/freebsd.i386/", but port binaries are built inside the
"work/arch/freebsd7.i386/" <- see the number 7 in "freebsd7.i386".

I believe that patch is self-explanatory. Just added freebsd major
version to directory name via "uname -r | cut -b 1".
>How-To-Repeat:
cd /usr/ports/shells/ksh93; make install 
>Fix:
Installroot variable contains only "freebsd.{$ARCH}", but make install requires "freebsd{MAJOR_VERSION}.${ARCH}"

-INSTALLROOT=   ${WRKSRC}/arch/freebsd.${ARCH}
+INSTALLROOT=   ${WRKSRC}/arch/freebsd`uname -r | cut -b 1`.${ARCH}



Patch attached with submission follows:

--- Makefile.old        2011-02-12 01:06:36.000000000 +0100
+++ Makefile    2011-02-12 01:07:07.000000000 +0100
@@ -41,7 +41,7 @@

 MAN1=          ksh93.1

-INSTALLROOT=   ${WRKSRC}/arch/freebsd.${ARCH}
+INSTALLROOT=   ${WRKSRC}/arch/freebsd`uname -r | cut -b 1`.${ARCH}

 do-build:
       @cd ${WRKSRC} && ${SETENV} -i ${MAKE_ENV} ${SH} bin/package make

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102131323.p1DDNr9k037509>