logo       

Re: Building net-snmp-5.1 rpm from source - problem found: msg#00282

network.net-snmp.user

Subject: Re: Building net-snmp-5.1 rpm from source - problem found

Hi folks,

After much tinkering with debug options and various packages on my
Suse box - I think I have found the problem I was having with the
RPM build.

On my Suse 9 distribution, the rpm %makeinstall macro is defined
in two files:

/usr/lib/rpm/macros
/usr/lib/rpm/suse_macros

It looks like the 'macros' file defines a %makeinstall macro in
the manner that the net-snmp library expects to work with (i.e.
make prefix= ...), whilst the 'suse_macros' file appears to
override this expansion with the following:

%makeinstall make DESTDIR=%{buildroot} install

Temporarily commenting out this line in 'suse_macros' and attempting
a clean build of the net-snmp-5.1 rpm results in a successful
build, giving me net-snmp-5.1-1.i686.rpm and net-snmp-devel-5.1-1.i686.rpm.

(alternative solution - remove the suse_macros entry from the macrofiles
list in /usr/lib/rpm/rpmrc?)

Since I'm not an expert on the nuances of automake/conf/libtool/rpm,
I'm currently unsure whether this could be considered a bug against
the net-snmp build system - I'll do a bit more reading before I
consider raising a bug (I also need to check the existing bugs
again now I know what the problem is.)

Hope this helps somebody else :)

Regards,

Garry.




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@xxxxxxxxxxxxxxxxxxxxx
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise