summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-12-31 05:53:21 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-12-31 05:53:21 +0400
commitf0d58cf26d1e6917c953f7670a8d64c27194c3a9 (patch)
treedabf5c7a1a2ebb5cdad6c5f854a3aa09ccc1f062
parentbfbd462a5e65f4d9def7dea885a8e893ff6e8dd9 (diff)
downloadcdrkit-f0d58cf26d1e6917c953f7670a8d64c27194c3a9.tar.gz
Funny patch for libnsl
-rw-r--r--debian/patches/AddNetworkBits.cmake-libnsl.patch35
-rw-r--r--debian/patches/series1
-rw-r--r--debian/source/format1
3 files changed, 37 insertions, 0 deletions
diff --git a/debian/patches/AddNetworkBits.cmake-libnsl.patch b/debian/patches/AddNetworkBits.cmake-libnsl.patch
new file mode 100644
index 0000000..fdd8372
--- /dev/null
+++ b/debian/patches/AddNetworkBits.cmake-libnsl.patch
@@ -0,0 +1,35 @@
+Index: cdrkit/include/AddNetworkBits.cmake
+===================================================================
+--- cdrkit.orig/include/AddNetworkBits.cmake 2012-12-31 05:04:44.315707768 +0400
++++ cdrkit/include/AddNetworkBits.cmake 2012-12-31 05:51:50.125187009 +0400
+@@ -40,13 +40,13 @@
+ }
+ ")
+
+-CHECK_C_SOURCE_COMPILES("${TESTSRC}" USE_LIBC_NLS)
+-IF(NOT USE_LIBC_NLS)
+- SET(CMAKE_REQUIRED_LIBRARIES nls)
+- CHECK_C_SOURCE_COMPILES("${TESTSRC}" USE_LIBNLS)
+- IF(USE_LIBNLS)
+- LIST(APPEND EXTRA_LIBS nls)
+- ELSE(USE_LIBNLS)
++CHECK_C_SOURCE_COMPILES("${TESTSRC}" USE_LIBC_NSL)
++IF(NOT USE_LIBC_NSL)
++ SET(CMAKE_REQUIRED_LIBRARIES nsl)
++ CHECK_C_SOURCE_COMPILES("${TESTSRC}" USE_LIBNSL)
++ IF(USE_LIBNSL)
++ LIST(APPEND EXTRA_LIBS nsl)
++ ELSE(USE_LIBNSL)
+ SET(CMAKE_REQUIRED_LIBRARIES xnet)
+ CHECK_C_SOURCE_COMPILES("${TESTSRC}" USE_LIBXNET)
+ IF(NOT USE_LIBXNET)
+@@ -54,7 +54,7 @@
+ ELSE(NOT USE_LIBXNET)
+ LIST(APPEND EXTRA_LIBS xnet)
+ ENDIF(NOT USE_LIBXNET)
+- ENDIF(USE_LIBNLS)
+-ENDIF(NOT USE_LIBC_NLS)
++ ENDIF(USE_LIBNSL)
++ENDIF(NOT USE_LIBC_NSL)
+ SET(CMAKE_REQUIRED_LIBRARIES )
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..92cedfc
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+AddNetworkBits.cmake-libnsl.patch
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)