Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/dev86/files: dev86-0.16.19-memmove.patch dev86-0.16.19-fortify.patch
Date: Fri, 02 Nov 2012 19:03:45
Message-Id: 20121102190329.4376721601@flycatcher.gentoo.org
1 vapier 12/11/02 19:03:29
2
3 Added: dev86-0.16.19-memmove.patch
4 dev86-0.16.19-fortify.patch
5 Log:
6 Version bump. Include fix from Debian for ncc #354351 by Joerg Neikes. Fix stripping errors #413275 by Michele Ciacci. Also fix up libdir handling as bcc had /usr/lib/gcc/ hardcoded.
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
9
10 Revision Changes Path
11 1.1 sys-devel/dev86/files/dev86-0.16.19-memmove.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/dev86/files/dev86-0.16.19-memmove.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/dev86/files/dev86-0.16.19-memmove.patch?rev=1.1&content-type=text/plain
15
16 Index: dev86-0.16.19-memmove.patch
17 ===================================================================
18 https://bugs.gentoo.org/354351
19
20 fix sniped from Debian:
21 * Fix "FTBFS: ncc: illegal label": apply patch by dai that replaces strcpy
22 by memmove (closes: #591133).
23
24 --- copt/copt.c
25 +++ copt/copt.c
26 @@ -174,7 +174,7 @@
27 /* Delete leading white spaces */
28 for (cp = buf; *cp && isspace(*cp); cp++) ;
29 if (cp != buf && *cp)
30 - strcpy(buf, cp);
31 + memmove(buf, cp, strlen(cp) + 1);
32
33 return(buf);
34 }
35
36
37
38 1.1 sys-devel/dev86/files/dev86-0.16.19-fortify.patch
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/dev86/files/dev86-0.16.19-fortify.patch?rev=1.1&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/dev86/files/dev86-0.16.19-fortify.patch?rev=1.1&content-type=text/plain
42
43 Index: dev86-0.16.19-fortify.patch
44 ===================================================================
45 --- dev86-0.16.19/bcc/bcc.c
46 +++ dev86-0.16.19/bcc/bcc.c
47 @@ -596,12 +597,17 @@
48 }
49 }
50
51 -void
52 -command_reset()
53 -{
54 #ifndef MAXPATHLEN
55 +#ifdef PATH_MAX
56 +#define MAXPATHLEN PATH_MAX
57 +#else
58 #define MAXPATHLEN 1024
59 #endif
60 +#endif
61 +
62 +void
63 +command_reset()
64 +{
65 char buf[MAXPATHLEN];
66 char ** prefix;
67 char * saved_cmd;