summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Glagolev2012-01-28 00:47:24 +0400
committerVlad Glagolev2012-01-28 00:47:24 +0400
commit5e033208bbcaefb01635660754b53306b5287949 (patch)
tree7df7c6c53073caaa3765a164ced162fe30bb8e46
parent265c1f1802e97d44dc7db5e99f3c0d93f66fcba3 (diff)
iproute2: fixed compilation with kernel 2.6
-rwxr-xr-xnet/iproute2/BUILD2
-rwxr-xr-xnet/iproute2/DEPENDS6
-rw-r--r--net/iproute2/HISTORY4
3 files changed, 12 insertions, 0 deletions
diff --git a/net/iproute2/BUILD b/net/iproute2/BUILD
index 2b9650d216..31036fdbe0 100755
--- a/net/iproute2/BUILD
+++ b/net/iproute2/BUILD
@@ -1,5 +1,7 @@
./configure &&
+echo "CFLAGS += -I$INSTALL_ROOT/usr/include/libnl3" >> ip/Makefile &&
+
if gcc -include netinet/in.h -E - < /dev/null | grep -q IPPROTO_SCTP ; then
echo "" > sctpfix.h
else
diff --git a/net/iproute2/DEPENDS b/net/iproute2/DEPENDS
index 3502de87f4..3866c1e663 100755
--- a/net/iproute2/DEPENDS
+++ b/net/iproute2/DEPENDS
@@ -1,5 +1,11 @@
+. "$GRIMOIRE/FUNCTIONS" &&
+
depends bison &&
+if is_version_less $(get_kernel_version) 3.2; then
+ depends libnl
+fi &&
+
if [ "$BUILD_DOCS" == "y" ]; then
depends linuxdoc-tools &&
depends psutils &&
diff --git a/net/iproute2/HISTORY b/net/iproute2/HISTORY
index b74e909dc7..64c7593b95 100644
--- a/net/iproute2/HISTORY
+++ b/net/iproute2/HISTORY
@@ -1,3 +1,7 @@
+2012-01-28 Vlad Glagolev <stealth@sourcemage.org>
+ * BUILD: fixed compilation with 2.6.35 and such
+ * DEPENDS: added missing dependency
+
2012-01-20 Ladislav Hagara <hgr@vabo.cz>
* DETAILS: 3.2.0, SOURCE_URL[0] updated
* PRE_BUILD, m_xt.patch: patch removed