pkgsrc-Bugs archive

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

Re: pkg/38654 (nagios dosen't run from out of the box)



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

From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/38654 (nagios dosen't run from out of the box)
Date: Sat, 30 Apr 2011 22:00:37 +0000

 On Sat, Apr 30, 2011 at 09:20:03PM +0000, Joerg Sonnenberger wrote:
  >>>>  Looking at the diff between pkgsrc-2011Q1 and HEAD in nagios-base I
  >>>>  don't understand this behavior.
  >>>>  
  >>>>     INSTALLATION_DIRS+=     ${PKG_SYSCONFDIR}/objects
  >>>>  
  >>>>  is present in both versions...
  >>>  
  >>>  That only creates the directory under $DESTDIR, not in $PREFIX
  >>>  at installation time. This would also have been an issue when
  >>>  using binary packages. MAKE_DIRS or REQD_DIRS or so is needed
  >>>  here.
  >>  
  >>  Wait, you're saying that every use of INSTALLATION_DIRS also requires
  >>  MAKE_DIRS?
  >  
  >  No. Consider a typical upstream Makefile with
  >  
  >  install:
  >     cp foo ${DESTDIR}${prefix}/bin
  >  
  >  For this, INSTALLATION_DIRS=bin is appropiate. On the other hand, if you
  >  want to create /var/foo during +INSTALL, it is not, since
  >  INSTALLATION_DIRS is part of the package build, not the package
  >  installation.
 
 ...so it shouldn't be INSTALLATION_DIRS at all, but MAKE_DIRS and only
 MAKE_DIRS? If so, then why does it work in HEAD?
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index