Re: DESTDIR support

Mike Schmidt <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

Strange coincidence. I just tried that not 30 minutes ago and the same 
thing happenned.
I'm on RH8, custom kernel, which I have no choice about in this 
circumstance.
Here are my findings:

I set DESTDIR to /root/tmp
DESTDIR is used for the include directory, so we get 
/root/tmp/usr/local/include ....
However, as soon as we get to the libs, we get (just some selected 
output from the make install):

mkdir /root/tmp/usr/local/include/net-snmp/machine
/usr/bin/install -c -m 644 ./include/net-snmp/machine/generic.h 
/root/tmp/usr/local/include/net-snmp/machine/generic.h
installing generic.h in /root/tmp/usr/local/include/net-snmp/machine

-- up to here we still had DESTDIR, from now on we don't

making installlibs in /root/net-snmp-5.4/snmplib
make[1]: Entering directory `/root/net-snmp-5.4/snmplib'
/usr/bin/install -c .libs/libnetsnmp.so.15.0.0 
/usr/local/lib/libnetsnmp.so.15.0.0
(cd /usr/local/lib && { ln -s -f libnetsnmp.so.15.0.0 libnetsnmp.so.15 
|| { rm -f libnetsnmp.so.15 && ln -s libnetsnmp.so.15.0.0 
libnetsnmp.so.15; }; })
(cd /usr/local/lib && { ln -s -f libnetsnmp.so.15.0.0 libnetsnmp.so || { 
rm -f libnetsnmp.so && ln -s libnetsnmp.so.15.0.0 libnetsnmp.so; }; })
/usr/bin/install -c .libs/libnetsnmp.lai /usr/local/lib/libnetsnmp.la
/usr/bin/install -c .libs/libnetsnmp.a /usr/local/lib/libnetsnmp.a
chmod 644 /usr/local/lib/libnetsnmp.a
ranlib /usr/local/lib/libnetsnmp.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib

from then on, the DESTDIR is ignored.

Mike Brodbelt wrote:
> Hi,
>
> 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.
>
> Is this going to be fixed, or is there a different recommended way of
> installing to a temporary packaging tree?
>
> 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
>

-------------------------------------------------------------------------
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
mike.vcf (text/x-vcard, 354 B)
begin:vcard
fn:Mike Schmidt
n:Schmidt;Mike
org:Intello Technologies Inc. 
adr;quoted-printable;quoted-printable:;;580 1=C3=A8re Rue;Saint-Jean-sur-Richelieu;Qu=C3=A9;J2X 3B4;Canada
email;internet:[email protected]
title:Vice-President
tel;work:450-358-2266 x223
tel;cell:514-835-9497
x-mozilla-html:FALSE
url:http://www.intello.com
version:2.1
end:vcard
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.