net-snmp: Fix up compilation with uclibc.
authorJonathan McDowell <noodles@earth.li>
Sat, 29 Oct 2005 08:58:42 +0000 (08:58 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sat, 29 Oct 2005 08:58:42 +0000 (08:58 +0000)
packages/net-snmp/files/uclibc-fix.patch [new file with mode: 0644]
packages/net-snmp/net-snmp_5.1.2.bb

diff --git a/packages/net-snmp/files/uclibc-fix.patch b/packages/net-snmp/files/uclibc-fix.patch
new file mode 100644 (file)
index 0000000..7109798
--- /dev/null
@@ -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/'`
+     ;;
index 8864ffb..fe7e9dd 100644 (file)
@@ -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"