]> git.pld-linux.org Git - packages/dazuko.git/commitdiff
- fixing module build
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 2 Mar 2006 18:33:32 +0000 (18:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dazuko-kbuild.patch -> 1.1
    dazuko.spec -> 1.14

dazuko-kbuild.patch [new file with mode: 0644]
dazuko.spec

diff --git a/dazuko-kbuild.patch b/dazuko-kbuild.patch
new file mode 100644 (file)
index 0000000..563f777
--- /dev/null
@@ -0,0 +1,20 @@
+--- dazuko-2.0.6/configure~    2006-03-02 20:27:30.000000000 +0200
++++ dazuko-2.0.6/configure     2006-03-02 20:27:33.000000000 +0200
+@@ -1012,7 +1012,7 @@
+                       echo "CC ?= gcc" > Makefile
+                       TEMPNAME="$LINUX_SRC/include"
+-                      echo "CFLAGS = -Wall -D__KERNEL__ -DMODULE -I$TEMPNAME" >> Makefile
++                      echo "CFLAGS = -Wall -D__KERNEL__ -DMODULE -I$TEMPNAME -Io/include" >> Makefile
+                       if [ -f "$TEMPNAME/linux/config.h" ]
+                       then
+@@ -1047,7 +1047,7 @@
+                       ./linux_conf > linux.config
+                       rm -f linux_conf
+-                      . linux.config
++                      . ./linux.config
+                       rm -f linux.config
+                       echo -n "checking if Linux is RSBAC patched... "
index e3add157218150d3776bcdc20fcaada7ebf0d35e..abc554abe167a48c496040d12ad30baf197ada2f 100644 (file)
@@ -21,6 +21,7 @@ License:      BSD (library), GPL (Linux kernel module)
 Group:         Base/Kernel
 Source0:       http://www.dazuko.org/files/%{name}-%{version}.tar.gz
 # Source0-md5: 844498651d22ddd76bea4104bf7c3e43
+Patch0:                %{name}-kbuild.patch
 URL:           http://www.dazuko.org/
 %if %{with kernel}
 %{?with_dist_kernel:BuildRequires:     kernel-module-build >= 2.6.7}
@@ -131,17 +132,9 @@ Statyczne biblioteki Dazuko.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
-# NOTE: It's not autoconf configure.
-bash ./configure \
-       %{?debug:--enable-debug} \
-       --kernelsrcdir=%{_kernelsrcdir} \
-       --disable-local-dpath \
-       --disable-compat1 \
-       %{!?with_userspace:--without-library} \
-       %{!?with_kernel:--without-module}
-
 %if %{with kernel}
 for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
        if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
@@ -160,7 +153,15 @@ for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}
 %endif
 #
 #      patching/creating makefile(s) (optional)
-#
+
+       # NOTE: It's not autoconf configure.
+       bash ./configure \
+               --kernelsrcdir=%{_kernelsrcdir} \
+               %{?debug:--enable-debug} \
+               --disable-local-dpath \
+               --disable-compat1 \
+               --without-library
+
        %{__make} -C %{_kernelsrcdir} clean \
                RCS_FIND_IGNORE="-name '*.ko' -o" \
                SYSSRC=%{_kernelsrcdir} \
@@ -179,6 +180,13 @@ done
 %endif
 
 %if %{with userspace}
+# NOTE: It's not autoconf configure.
+bash ./configure \
+       %{?debug:--enable-debug} \
+       --disable-local-dpath \
+       --disable-compat1 \
+       --without-module
+
 cd library
 %{__make} \
        CC="%{__cc}" \
This page took 0.051143 seconds and 4 git commands to generate.