Commit fd5b60a8 authored by Natanael Copa's avatar Natanael Copa

main/net-snmp: fix parallel build issues

We need run net-snmp-config-x before building perl modules. Otherwise
net-snmp-config will not be executable and net-snmp-config --libs will
fail and perl modules will be built without -lnetsnmp.

Seems also that we need build startnadall and net-snmp-create-v3-user
before building perl modules.

We could have "fixed" it by simply disabling parallel builds, but I
don't like the idea of having 1 core working and 7 cores in idle.

fixes #1263
parent 6142be63
......@@ -2,7 +2,7 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=net-snmp
pkgver=5.7.1
pkgrel=5
pkgrel=6
pkgdesc="Simple Network Management Protocol"
url="http://www.net-snmp.org/"
arch="all"
......@@ -60,6 +60,7 @@ build() {
--enable-ucd-snmp-compatibility \
--with-persistent-directory="/var/lib/net-snmp" \
--with-openssl \
--enable-pic \
--enable-ipv6 \
--enable-shared \
--enable-as-needed \
......@@ -68,8 +69,11 @@ build() {
# embedded-perl seems to create TEXTREL's
# work around parallell build issue
make sedscript && make -j1 -C man || return 1
make || return 1
make sedscript EXAMPLE.conf net-snmp-config-x \
&& make -j1 -C man \
&& make standardall \
&& make net-snmp-create-v3-user \
&& make || return 1
}
package() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment