pkgsrc-Bugs archive

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

pkg/39867: pkgsrc and imake disagree about installer

>Number:         39867
>Category:       pkg
>Synopsis:       pkgsrc and imake disagree about installer
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 05 11:25:00 +0000 2008
>Originator:     Jörn Clausen
University of Bielefeld
SunOS spare4200 5.10 Generic_120012-14 i86pc i386 i86pc

When installing packages that use imake under OpenSolaris, installation fails, 
as /usr/ucb/install is not available any more.

pkgsrc does the right thing in mk/tools/

.if exists(/usr/bin/ginstall)   # if we are using OpenSolaris
TOOLS_PLATFORM.install?=        /usr/bin/ginstall
TOOLS_PLATFORM.install?=        /usr/ucb/install

but imakes configuration in lib/X11/config/ is rather inflexible:

# if OSMinorVersion > 3
#  define InstallCmd        /usr/ucb/install
# endif

Small fix: patch

#  define InstallCmd        /usr/ucb/install

in to

#  define InstallCmd        @@PKGSRC_INSTALL@@

and replace it with ${TOOLS_PLATFORM.install} during  pre-configure step, 
similar to PKGSRC_CC, etc.

Big fix(?): Replace every definition of InstallCmd with TOOLS_PLATFORM.install, 
for all platforms.

Home | Main Index | Thread Index | Old Index