1 |
jer 13/06/29 13:30:53 |
2 |
|
3 |
Added: palo-9999-toolchain.patch palo-9999-open.patch |
4 |
Log: |
5 |
Add live ebuild. |
6 |
|
7 |
(Portage version: 2.2.0_alpha185/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-boot/palo/files/palo-9999-toolchain.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/palo/files/palo-9999-toolchain.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/palo/files/palo-9999-toolchain.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: palo-9999-toolchain.patch |
16 |
=================================================================== |
17 |
--- a/palo/Makefile |
18 |
+++ b/palo/Makefile |
19 |
@@ -14,7 +14,7 @@ |
20 |
ifeq ($(strip ${OS}),HP-UX) |
21 |
CFLAGS=-g -O -I../include -I../lib -I$(PA)/include |
22 |
else |
23 |
-CFLAGS=-g -O -I../include -I../lib |
24 |
+CFLAGS += -O -I../include -I../lib |
25 |
endif |
26 |
|
27 |
# LDFLAGS=-Wl,-Bstatic |
28 |
@@ -34,7 +34,7 @@ |
29 |
$(CC) $(CFLAGS) $(LDFLAGS) -o palo palo.a build.o |
30 |
|
31 |
palo.a: $(OFILES) |
32 |
- ar rv palo.a $? |
33 |
+ $(AR) rv palo.a $? |
34 |
|
35 |
mkbootable: $(OFILES2) |
36 |
$(CC) $(CFLAGS) $(LDFLAGS) -o mkbootable $(OFILES2) |
37 |
|
38 |
|
39 |
|
40 |
1.1 sys-boot/palo/files/palo-9999-open.patch |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/palo/files/palo-9999-open.patch?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-boot/palo/files/palo-9999-open.patch?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: palo-9999-open.patch |
46 |
=================================================================== |
47 |
--- a/palo/palo.c |
48 |
+++ b/palo/palo.c |
49 |
@@ -479,7 +479,7 @@ |
50 |
error(14, "bootloader"); |
51 |
|
52 |
sprintf(badblockfilename, "/tmp/paloblk-%d", getpid()); |
53 |
- if ((fd = open(badblockfilename, O_RDWR | O_CREAT | O_TRUNC)) < 0) { |
54 |
+ if ((fd = open(badblockfilename, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) < 0) { |
55 |
perror(badblockfilename); |
56 |
exit(1); |
57 |
} |