[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] problems compiling net-snmp
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] problems compiling net-snmp |
Date: |
Thu, 20 May 2010 08:53:29 +0100 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080707) |
Hi Felipe,
This came up last week and I checked in a fix to CVS. I've attached the
patch in case you're not on the Savannah CVS version.
The problem is the Makefile doesn't seem to be reliable with parallel 'make'
Regards, Stuart
Felipe Conde Sales wrote:
> Hi folks,
>
> I'm having some troubles compiling net-snmp to mpc8315erdb..
>
> When using the /./ltib -c/ , the sources compile well, but it seems that
> the _make install_ is not working. At my .spec file, there is a install
> section.
> When i compile using /prep, scbuild, scinstall and deploy/ sequence the
> package is installed with no problems...
>
> What it could be?
>
> here is my .spec file:
>
> %define pfx /opt/freescale/rootfs
>
> Summary : Net-SNMP
> Name : net-snmp
> Version : 5.4.1
> Release : 1
> License : BSD and BSD-like
> Vendor : Freescale
> Packager : Michael Barkowski
> Group : Networking
> URL : http://net-snmp.sourceforge.net
> Source : %{name}-%{version}.tar.gz
> BuildRoot : %{_tmppath}/%{name}
> Prefix : %{pfx}
>
> %Description
> %{summary}
>
> %Prep
> %setup
>
> %Build
> ./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
> --disable-embedded-perl \
> --without-perl-modules with_endianness=big --enable-mini-agent
> --with-default-snmp-version="3" --disable-des --disable-debugging \
> --with-sys-contact="address@hidden" --with-logfile="/var/log/snmp"
> --with-transports="UDP TCP" \
> --with-defaults --with-install-prefix=$PWD/../../../rootfs
> make
>
> %Install
> rm -rf $RPM_BUILD_ROOT
> sed -i -e "s;SUBDIRS = snmplib agent apps man local
> mibs;SUBDIRS = snmplib;" Makefile
> #make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
> #sed -i -e "s;%{_prefix};$RPM_BUILD_ROOT/%{pfx}%{_prefix};"
> $RPM_BUILD_ROOT%{pfx}%{_prefix}/lib/libnetsnmp.la
> sed -i -e "s;SUBDIRS = snmplib;SUBDIRS = agent apps
> man local mibs;" Makefile
> #find ./ -name "*.la" | xargs sed -i -e
> "s;%{_prefix};$RPM_BUILD_ROOT/%{pfx}%{_prefix};"
> make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
> #find $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/ -name "*.la" | xargs rm -f
>
> %Clean
> rm -rf $RPM_BUILD_ROOT
>
> %Files
> %defattr(-,root,root)
> %{pfx}/*
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib
--- Begin Message ---
Subject: |
ltib/dist/lfs-5.1/net-snmp net-snmp.spec |
Date: |
Fri, 14 May 2010 09:00:45 +0000 |
CVSROOT: /sources/ltib
Module name: ltib
Changes by: Stuart Hughes <seh> 10/05/14 09:00:45
Modified files:
dist/lfs-5.1/net-snmp: net-snmp.spec
Log message:
Fix net-snmp parallel make issue (see mailing list: 13/05/10 problem
compiling net-snmp
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/ltib/dist/lfs-5.1/net-snmp/net-snmp.spec?cvsroot=ltib&r1=1.1.1.3&r2=1.2
Patches:
Index: net-snmp.spec
===================================================================
RCS file: /sources/ltib/ltib/dist/lfs-5.1/net-snmp/net-snmp.spec,v
retrieving revision 1.1.1.3
retrieving revision 1.2
diff -u -b -r1.1.1.3 -r1.2
--- net-snmp.spec 5 Dec 2008 14:25:45 -0000 1.1.1.3
+++ net-snmp.spec 14 May 2010 09:00:40 -0000 1.2
@@ -24,16 +24,16 @@
--without-perl-modules with_endianness=big --enable-mini-agent
--with-default-snmp-version="3" --disable-des --disable-debugging \
--with-sys-contact="address@hidden" --with-logfile="/var/log/snmp"
--with-transports="UDP TCP" \
--with-defaults
-make
+make -j1
%Install
rm -rf $RPM_BUILD_ROOT
sed -i -e "s;SUBDIRS = snmplib agent apps man local mibs;SUBDIRS
= snmplib;" Makefile
-make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
+make -j1 install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
sed -i -e "s;%{_prefix};$RPM_BUILD_ROOT/%{pfx}%{_prefix};"
$RPM_BUILD_ROOT/%{pfx}%{_prefix}/lib/libnetsnmp.la
sed -i -e "s;SUBDIRS = snmplib;SUBDIRS = agent apps
man local mibs;" Makefile
find ./ -name "*.la" | xargs sed -i -e
"s;%{_prefix};$RPM_BUILD_ROOT/%{pfx}%{_prefix};"
-make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
+make -j1 install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
find $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/ -name "*.la" | xargs rm -f
%Clean
--- End Message ---