summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan McDowell <noodles@earth.li>2005-10-29 08:58:42 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-10-29 08:58:42 +0000
commit7dd3bbef6102ab099035c4dd3c6646c2f138bd58 (patch)
tree40a80868d4acfec7555991ed99a93c69e8c31af9
parentc31b074a384048dd404505e90a24446d01aabca0 (diff)
net-snmp: Fix up compilation with uclibc.
-rw-r--r--packages/net-snmp/files/uclibc-fix.patch11
-rw-r--r--packages/net-snmp/net-snmp_5.1.2.bb1
2 files changed, 12 insertions, 0 deletions
diff --git a/packages/net-snmp/files/uclibc-fix.patch b/packages/net-snmp/files/uclibc-fix.patch
new file mode 100644
index 0000000000..7109798e14
--- /dev/null
+++ b/packages/net-snmp/files/uclibc-fix.patch
@@ -0,0 +1,11 @@
+--- net-snmp-5.1.2/config.sub.orig 2005-10-28 22:43:40.228326250 +0100
++++ net-snmp-5.1.2/config.sub 2005-10-28 22:43:55.565284750 +0100
+@@ -118,7 +118,7 @@
+ # Here we must recognize all the valid KERNEL-OS combinations.
+ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+ case $maybe_os in
+- nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
++ nto-qnx* | linux-gnu* | linux-uclibc* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
+ os=-$maybe_os
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ ;;
diff --git a/packages/net-snmp/net-snmp_5.1.2.bb b/packages/net-snmp/net-snmp_5.1.2.bb
index 8864ffb004..fe7e9dd4d2 100644
--- a/packages/net-snmp/net-snmp_5.1.2.bb
+++ b/packages/net-snmp/net-snmp_5.1.2.bb
@@ -4,6 +4,7 @@ LICENSE = "BSD"
MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
DEPENDS = "openssl"
SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.tar.gz \
+ file://uclibc-fix.patch;patch=1 \
file://init \
file://snmpd.conf \
file://snmptrapd.conf"