pkgsrc-Bugs archive

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

Re: pkg/44425: devel/lua-alt-getopt install problem



The following reply was made to PR pkg/44425; it has been noted by GNATS.

From: Hauke Fath <hf%spg.tu-darmstadt.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: pkg-manager%NetBSD.org@localhost, Aleksey Cheusov <cheusov%tut.by@localhost>
Subject: Re: pkg/44425: devel/lua-alt-getopt install problem
Date: Thu, 20 Jan 2011 17:51:14 +0100

 At 14:05 Uhr +0000 20.01.2011, Aleksey Cheusov wrote:
 > I've read comments to 44415 and concur with Joerg.
 > The problem looks like your local problem, but the problem of pkgsrc.
 > It looks like INSTALL variable and/or BINGRP is overriden
 > somewhere in your mk.conf.
 
 Well, show me...
 
 I have pared down /etc/mk.conf to make it easier for you:
 
 <snip>
 # $Id: mk.conf,v 1.2 2011/01/20 16:33:52 hf Exp hf $
 #
 # make(1) config file
 
 .ifdef BSD_PKG_MK
 
 # pkgsrc variables
 
 LOCALBASE =                    /usr/pkg
 
 # Since unionfs behaves increasingly dodgy, use a read-only
 # source tree through amd.
 
 PKGSRCDIR =                    /misc/netbsd-developer/pkgsrc
 DISTDIR =                      /misc/pkg-distfiles
 WRKOBJDIR =                    /var/obj/pkgsrc
 PACKAGES =                     ${WRKOBJDIR}/packages
 
 PKG_SYSCONFBASE =              /etc/pkg
 
 PKG_DEVELOPER =                1
 
 .if exists(${LOCALBASE}/bin/sudo)
 SU_CMD =                       ${LOCALBASE}/bin/sudo /bin/sh -c
 .endif
 
 .endif
 </snip>
 
 Which of the above settings causes the problem, in your opinion?
 
 > Normally it should not happen.
 
 Quite right.
 
 To summarize my POV: The system <bsd.own.mk>, which your package's Makefile
 implicitely pulls in, checks whether we are within the NetBSD src tree.
 Since this is the standard sources layout
 (.../src/pkgsrc/devel/lua-alt-getopt/), we are -- but we don't want to
 build & install within the context of the source tree. Unfortunately,
 <bsd.own.mk> does not have an obvious knob for this. Tweaking INSTPRIV
 would be too hackish, IMHO.
 
 > Can you show the result of the following command?
 >
 > make show-vars VARNAMES='INSTALL MAKE_ENV BINGRP'
 
 With the above mk.conf:
 
 <snip>
 % pwd
 /misc/netbsd-developer/pkgsrc/devel/lua-alt-getopt
 % make show-vars VARNAMES='INSTALL MAKE_ENV BINGRP'
 /usr/bin/install
 USETOOLS=no CC=cc CFLAGS=-O2 CPPFLAGS= CXX=c++ CXXFLAGS=-O2
 COMPILER_RPATH_FLAG=-Wl,-R F77=f77 FC=f77 FFLAGS=-O LANG=C LC_COLLATE=C
 LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=
 LINKER_RPATH_FLAG=-R
 
PATH=/var/obj/pkgsrc/devel/lua-alt-getopt/work/.wrapper/bin:/var/obj/pkgsrc/devel/lua-alt-getopt/work/.buildlink/bin:/var/obj/pkgsrc/devel/lua-alt-getopt/work/.tools/bin:/usr/pkg/bin:/home/hf/bin:/sbin:/usr/sbin:/usr/pkg/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/pkg/bin:/usr/X11R7/bin
 PREFIX=/usr/pkg PKG_SYSCONFDIR=/etc/pkg CPP=cpp CXXCPP=cpp
 HOME=/var/obj/pkgsrc/devel/lua-alt-getopt/work/.home CPP=cpp
 LINK_ALL_LIBGCC_HACK= LOCALBASE=/usr/pkg
 NO_WHOLE_ARCHIVE_FLAG=-Wl,--no-whole-archive
 WHOLE_ARCHIVE_FLAG=-Wl,--whole-archive X11BASE=/usr/X11R7
 X11PREFIX=/usr/pkg PKGMANDIR=man PKGINFODIR=info MAKECONF=/dev/null
 OBJECT_FMT=ELF USETOOLS=no BINOWN=hf BINGRP=spgmit GAMEOWN=hf
 GAMEGRP=spgmit MANOWN=hf MANGRP=spgmit SHAREOWN=hf SHAREGRP=spgmit
 DOCOWN=hf DOCGRP=spgmit BINMODE=755 NONBINMODE=644 BINDIR=/usr/pkg/bin
 INCSDIR=/usr/pkg/include LIBDIR=/usr/pkg/lib MANDIR=/usr/pkg/man
 STRIPFLAG=-s MANINSTALL=catinstall\ htmlinstall\ maninstall MKHTML=no
 INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\
 hf\ -g\ spgmit\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ hf\
 -g\ spgmit\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ hf\ -g\
 spgmit\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ hf\ -g\ spgmit\
 -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ hf\ -g\ spgmit\ -m\ 644
 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\
 -o\ hf\ -g\ spgmit\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\
 -o\ hf\ -g\ spgmit\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\
 hf\ -g\ spgmit\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ hf\
 -g\ spgmit\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ hf\ -g\
 spgmit\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ hf\ -g\
 spgmit\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ hf\ -g\
 spgmit\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ hf\ -g\
 spgmit\ -m\ 775 INSTALL_INFO=
 MAKEINFO=/var/obj/pkgsrc/devel/lua-alt-getopt/work/.tools/bin/makeinfo
 PKG_CONFIG=
 
PKG_CONFIG_LIBDIR=/var/obj/pkgsrc/devel/lua-alt-getopt/work/.buildlink/lib/pkgconfig:/var/obj/pkgsrc/devel/lua-alt-getopt/work/.buildlink/share/pkgconfig
 PKG_CONFIG_LOG=/var/obj/pkgsrc/devel/lua-alt-getopt/work/.pkg-config.log
 PKG_CONFIG_PATH= WRAPPER_DEBUG=no WRAPPER_UPDATE_CACHE=yes VIEWBASE=/usr/pkg
 spgmit
 %
 </snip>
 
 But... "make show-vars" is a pkgsrc thing (as in .../src/pkgsrc/mk),
 whereas the magic your package Makefile  invokes for the install target is
 a NetBSD /usr/share/mk thing, independent from pkgsrc/mk.
 
 You are mixing up two different BSD make frameworks, and tripping over the
 resulting ball of strings.
 
        hauke
 
 
 -- 
      The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email            Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
      Respect for open standards              Ruf +49-6151-16-3281
 


Home | Main Index | Thread Index | Old Index