]> git.pld-linux.org Git - packages/bcc.git/commitdiff
- rel 5; fortify and make fixes from gentoo auto/th/bcc-0_16_17-5
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 28 Mar 2011 12:23:32 +0000 (12:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bcc.spec -> 1.35
    dev86-0.16.17-fortify.patch -> 1.1
    dev86-0.16.17-make382.patch -> 1.1
    dev86-pic.patch -> 1.1

bcc.spec
dev86-0.16.17-fortify.patch [new file with mode: 0644]
dev86-0.16.17-make382.patch [new file with mode: 0644]
dev86-pic.patch [new file with mode: 0644]

index 8306d264ee6377c3c2381b0316c66476323b9212..cf536e2bacb97fdabc0e31e7b8a6778c8070acf4 100644 (file)
--- 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.17
-Release:       4
+Release:       5
 License:       GPL
 Group:         Development/Languages
 #Source0Download: http://www.cix.co.uk/~mayday/
@@ -10,6 +10,9 @@ Source0:      http://www.cix.co.uk/~mayday/dev86/Dev86src-%{version}.tar.gz
 # Source0-md5: e7bbfdbe61c2fb964994a087e29b0087
 Patch0:                Dev86src-noroot.patch
 Patch1:                Dev86src-opt.patch
+Patch2:                dev86-0.16.17-fortify.patch
+Patch3:                dev86-pic.patch
+Patch4:                dev86-0.16.17-make382.patch
 URL:           http://homepage.ntlworld.com/robert.debath/
 Requires:      bin86
 ExclusiveArch: %{ix86}
@@ -35,6 +38,9 @@ są odwzorowywane do jednego z innych typów całkowitych.
 %setup -q -n dev86-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p0
+%patch4 -p0
 
 mv -f bootblocks/README README.bootblocks
 mv -f copt/README README.copt
@@ -45,7 +51,7 @@ mv -f unproto/README README.unproto
 %build
 CC="%{__cc}" \
 %{__make} -j1 all other \
-       OPT="%{rpmcflags}" <<!FooBar!
+       OPT="%{rpmcppflags} %{rpmcflags}" <<!FooBar!
 5
 quit
 !FooBar!
diff --git a/dev86-0.16.17-fortify.patch b/dev86-0.16.17-fortify.patch
new file mode 100644 (file)
index 0000000..715d0c4
--- /dev/null
@@ -0,0 +1,43 @@
+--- dev86-0.16.17/bcc/bcc.c
++++ dev86-0.16.17/bcc/bcc.c
+@@ -19,6 +19,7 @@
+ #ifdef __STDC__
+ #include <stdlib.h>
+ #ifndef MSDOS
++#include <limits.h>
+ #include <unistd.h>
+ #endif
+ #else
+@@ -596,12 +597,17 @@
+    }
+ }
+-void
+-command_reset()
+-{
+ #ifndef MAXPATHLEN
++#ifdef PATH_MAX
++#define MAXPATHLEN PATH_MAX
++#else
+ #define MAXPATHLEN 1024
+ #endif
++#endif
++
++void
++command_reset()
++{
+    char buf[MAXPATHLEN];
+    char ** prefix;
+    char * saved_cmd;
+@@ -1308,11 +1314,7 @@
+       for(d=s=ptr; d && *s; s=d)
+       {
+-#ifdef MAXPATHLEN
+          char buf[MAXPATHLEN];
+-#else
+-         char buf[1024];
+-#endif
+        free(temp);
+          d=strchr(s, ':');
diff --git a/dev86-0.16.17-make382.patch b/dev86-0.16.17-make382.patch
new file mode 100644 (file)
index 0000000..e7ce065
--- /dev/null
@@ -0,0 +1,11 @@
+--- libc/i386sys/Makefile
++++ libc/i386sys/Makefile
+@@ -12,7 +12,7 @@
+ DOBJ=opendir.o closedir.o readdir.o
+ ifeq ($(LIB_CPU)-$(LIB_OS),i386-ELKS)
+-OBJ=$(LOBJ3) $(LOBJ) $(EOBJ) $(DOBJ) setjmp3.o
++OBJ=$(LOBJ) $(LOBJ) $(EOBJ) $(DOBJ) setjmp3.o
+ SYSCALLS=syscalls
+ CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
diff --git a/dev86-pic.patch b/dev86-pic.patch
new file mode 100644 (file)
index 0000000..439c264
--- /dev/null
@@ -0,0 +1,20 @@
+--- elksemu/elks.c.orig        2005-11-04 01:35:37.000000000 +0100
++++ elksemu/elks.c     2005-11-04 01:45:28.000000000 +0100
+@@ -129,8 +129,17 @@
+ static inline int vm86_mine(struct vm86_struct* v86)
+ {
+       int __res;
++#ifndef __PIC__
+       __asm__ __volatile__("int $0x80\n"
+       :"=a" (__res):"a" ((int)OLD_SYS_vm86), "b" ((int)v86));
++#else
++      __asm__ __volatile__(
++              "movl   %%ebx,%%ecx\n\t"
++              "movl   %2,%%ebx\n\t"
++              "int    $0x80\n\t"
++              "movl   %%ecx,%%ebx\n\t"
++              :"=a" (__res):"a" ((int)OLD_SYS_vm86), "r" ((int)v86) : "ecx");
++#endif
+       return __res;
+ } 
+ #endif
This page took 0.047361 seconds and 4 git commands to generate.