1 |
vapier 14/03/30 06:28:51 |
2 |
|
3 |
Added: salinfo-1.2-build.patch |
4 |
Log: |
5 |
New package by me. |
6 |
|
7 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-apps/salinfo/files/salinfo-1.2-build.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/salinfo/files/salinfo-1.2-build.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/salinfo/files/salinfo-1.2-build.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: salinfo-1.2-build.patch |
16 |
=================================================================== |
17 |
--- a/Makefile |
18 |
+++ b/Makefile |
19 |
@@ -1,3 +1,4 @@ |
20 |
+prefix = $(DESTDIR) |
21 |
mandir := /usr/share/man |
22 |
sbindir := /usr/sbin |
23 |
logdir := /var/log/salinfo |
24 |
@@ -5,7 +6,7 @@ initdir := /etc/rc.d/init.d |
25 |
sysconfigdir := /etc/sysconfig |
26 |
logrotate := /etc/logrotate.d |
27 |
|
28 |
-CFLAGS += -Wall -g -O2 $(EXTRA_CFLAGS) |
29 |
+CFLAGS += -Wall $(EXTRA_CFLAGS) |
30 |
export CFLAGS |
31 |
|
32 |
ifneq ($(VPATH),) |
33 |
--- a/sal.h |
34 |
+++ b/sal.h |
35 |
@@ -27,6 +27,8 @@ |
36 |
* Keith Owens <kaos@×××.com> |
37 |
*/ |
38 |
|
39 |
+#include <asm/fpu.h> |
40 |
+ |
41 |
#include "efi.h" |
42 |
#include "pal.h" |
43 |
|
44 |
--- a/salinfo_decode.c |
45 |
+++ b/salinfo_decode.c |
46 |
@@ -303,7 +303,7 @@ log_dropped_records(void) |
47 |
snprintf(line, sizeof(line), ", %d %s", |
48 |
dropped_all[i]->dropped, dropped_all[i]->name); |
49 |
dropped_all[i]->dropped = 0; |
50 |
- strncat(log, line, sizeof(log)); |
51 |
+ strncat(log, line, sizeof(log) - strlen(log)); |
52 |
} |
53 |
} |
54 |
syslog(LOG_NOTICE, "%s", log); |
55 |
@@ -424,7 +424,7 @@ talk_to_sal (void) |
56 |
int fd; |
57 |
char filename[PATH_MAX]; |
58 |
snprintf(filename, sizeof(filename), "%s/%s/.check", directory, rd[i]); |
59 |
- if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC)) < 0) { |
60 |
+ if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0644)) < 0) { |
61 |
perror(filename); |
62 |
goto out; |
63 |
} |