[packages/bcc] - fix for "ncc: illegal label" build error, taken from Debian

hawk hawk at pld-linux.org
Thu Sep 20 14:19:14 CEST 2012


commit 66d65e6ee2ef4faef505e9458c5f16ccec786e19
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Thu Sep 20 12:25:03 2012 +0000

    - fix for "ncc: illegal label" build error, taken from Debian

 bcc.spec         |  4 +++-
 dev86-copt.patch | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/bcc.spec b/bcc.spec
index d094a97..f1a6108 100644
--- a/bcc.spec
+++ b/bcc.spec
@@ -2,7 +2,7 @@ Summary:	Bruce's C compiler
 Summary(pl.UTF-8):	Kompilator C Bruce'a
 Name:		bcc
 Version:	0.16.18
-Release:	1
+Release:	2
 License:	GPL
 Group:		Development/Languages
 Source0:	http://www.debath.co.uk/dev86/Dev86src-%{version}.tar.gz
@@ -17,6 +17,7 @@ Patch6:		dev86-long.patch
 Patch7:		dev86-nostrip.patch
 Patch8:		dev86-print-overflow.patch
 Patch9:		dev86-make.patch
+Patch10:	dev86-copt.patch
 URL:		http://www.debath.co.uk/
 Requires:	bin86 >= %{version}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,6 +54,7 @@ są odwzorowywane do jednego z innych typów całkowitych.
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 mv -f bootblocks/README README.bootblocks
 mv -f copt/README README.copt
diff --git a/dev86-copt.patch b/dev86-copt.patch
new file mode 100644
index 0000000..726196f
--- /dev/null
+++ b/dev86-copt.patch
@@ -0,0 +1,11 @@
+--- linux86-0.16.17/copt/copt.c.orig	2003-10-08 04:46:35.000000000 +0900
++++ linux86-0.16.17/copt/copt.c	2010-10-12 12:30:25.000000000 +0900
+@@ -174,7 +174,7 @@ static char *readline(FILE *fp)
+   /* Delete leading white spaces */
+   for (cp = buf; *cp && isspace(*cp); cp++) ;
+   if (cp != buf && *cp)
+-	strcpy(buf, cp);
++	memmove(buf, cp, strlen(cp) + 1);
+ 
+   return(buf);
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bcc.git/commitdiff/66d65e6ee2ef4faef505e9458c5f16ccec786e19



More information about the pld-cvs-commit mailing list