1 |
On 12/16/2009 08:47 PM, Walter Dnes wrote: |
2 |
> Attached is the emerge log. I'm running 32 bit on an Intel Core Duo |
3 |
> (Dell D530) USE="-X -debug -gpm -svga". The last step of the gcc |
4 |
> upgrade is "emerge -eav world". dosemu 1.4.0 built under gcc 4.1.2 but |
5 |
> not under 4.3.4. I've added my report to |
6 |
> http://bugs.gentoo.org/show_bug.cgi?id=294843 Any ideas from the log? |
7 |
|
8 |
I'm guessing the doesemu code is getting old and needs maintenance. This |
9 |
patch lets dosemu compile with 4.3.4 but I can't test the result because |
10 |
I don't have any DOS programs. This is just a quick-and-dirty -- the |
11 |
right way would be to add an #ifdef to test for compiler version. |
12 |
|
13 |
#cat dosemu.patch |
14 |
--- work/dosemu-1.4.0/src/tools/periph/dexeconfig.c.orig 2009-12-17 08:02:40.000000000 -0800 |
15 |
+++ work/dosemu-1.4.0/src/tools/periph/dexeconfig.c 2009-12-17 08:05:19.000000000 -0800 |
16 |
@@ -238,7 +238,7 @@ |
17 |
exit(1); |
18 |
} |
19 |
close(fd); |
20 |
- fc = open(cfile, O_WRONLY | O_CREAT | O_TRUNC); |
21 |
+ fc = open(cfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); |
22 |
if (fc < 0) { |
23 |
perror("cannot open config file"); |
24 |
exit(1); |