Re: DESTDIR support

Mike Brodbelt <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Wed, 2006-12-13 at 16:52 +0100, Thomas Anders wrote:
> Mike Brodbelt wrote:
> > Building Net-SNMP 5.4, I notice that there appears to be support for
> > installation to a packaging tree via setting DESTDIR. but this actually
> > doesn't work, with most stuff ignoring DESTDIR.
> 
> Define "most stuff". RPM packaging works fine this way, so it definitely
> *can* be made to work. What exact comands are you using? What exact
> errors do you see?

I've configured the package to install under /usr/local, and built it,
but doing "make install DESTDIR=`pwd`/inst" after the build completes
results in stuff being installed under:-

/usr/local/include
/usr/local/share
/usr/local/bin
/usr/local/man

and not into `pwd`/inst/usr/local/{include,man,share,bin} as I'd expect.
The only stuff that seems to respect DESTDIR is some of the header files
that end up in `pwd`/inst/usr/local/include and net-snmp-config, that
ends up in `pwd`/inst/usr/local/bin.

I built it like this:-

/configure \
     --prefix=/usr/local \
     --datadir=/usr/local/share \
     --sysconfdir=/etc \
     --localstatedir=/var \
     --libdir=/usr/local/lib \
     --with-mib-modules="host if-mib ucd-snmp/diskio disman/event-mib
smux mibII/mta_sendmail ucd-snmp/lmSensors" \
     --with-sys-contact="[email protected]" \
     --with-sys-location="London" \
     --with-logfile="/var/log/snmpd.log" \
     --with-persistent-directory="/var/net-snmp" \
     --with-default-snmp-version=3 \
     --enable-shared=yes \
     --enable-developer=yes \
     --enable-agentx-dom-sock-only \
     --enable-mfd-rewrites \
     --with-libs=-ldl \
     --with-cc=/usr/sfw/bin/gcc \
     --with-cflags="-Dsolaris_2" \
     --with-transports="UDP TCP" \
     --with-ldflags="-R/lib -R/usr/lib -R/usr/local/lib"

though that should make no difference, AFAICT.

Mike

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.