瀏覽代碼

gcc preprocessor strips leading tabs while processing xmakefile

Thorsten Hohmeier 21 年之前
父節點
當前提交
afacaefc42
共有 2 個文件被更改,包括 13 次插入1 次删除
  1. 10 0
      nn/nn.patch
  2. 3 1
      nn/nn.spec

+ 10 - 0
nn/nn.patch

@@ -0,0 +1,10 @@
+--- Makefile.orig	2004-06-01 13:36:00.000000000 +0200
++++ Makefile	2004-06-01 14:48:32.000000000 +0200
+@@ -59,6 +59,7 @@
+ 	       -DLDEBUG="$(LDFLAGS)" \
+ 	       -DCDEBUG="$(CFLAGS)" -Iconf MF.c | \
+ 	sed -e '1,/MAKE WILL CUT HERE/d' \
++	    -e 's/^ \(.*\)/	\1/' \
+ 	    -e '/^#/d' \
+ 	    -e 's/^        /	/' \
+ 	    -e '/^[ \f	]$$/d' \

+ 3 - 1
nn/nn.spec

@@ -34,10 +34,11 @@ Class:        BASE
 Group:        News
 License:      BSD-style
 Version:      6.6.5
-Release:      20040207
+Release:      20040601
 
 #   list of sources
 Source0:      ftp://ftp.nndev.org/pub/nn-6.6/nn-%{version}.tar.Z
+Patch0:       nn.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -60,6 +61,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %patch -p0
 
 %build
     S="template"; M="template"