1 |
corsair 08/10/26 08:16:28 |
2 |
|
3 |
Added: hal-0.5.11-ppc64.patch |
4 |
Log: |
5 |
Add the patch for ppc64 and ~ppc64 to keywords; bug #176380 |
6 |
(Portage version: 2.1.4.5) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sys-apps/hal/files/hal-0.5.11-ppc64.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/files/hal-0.5.11-ppc64.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/hal/files/hal-0.5.11-ppc64.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: hal-0.5.11-ppc64.patch |
15 |
=================================================================== |
16 |
From 4e44e6ee79de160c70a1dc38dddbf4623f6a7965 Mon Sep 17 00:00:00 2001 |
17 |
From: root <root@×××××××××××××××××××.de> |
18 |
Date: Sat, 27 Sep 2008 13:04:02 +0200 |
19 |
Subject: [PATCH] Fix issue on 64bit big endian architectures. |
20 |
|
21 |
--- |
22 |
hald/create_cache.c | 4 +++- |
23 |
1 files changed, 3 insertions(+), 1 deletions(-) |
24 |
|
25 |
diff --git a/hald/create_cache.c b/hald/create_cache.c |
26 |
index d52f834..6903688 100644 |
27 |
--- a/hald/create_cache.c |
28 |
+++ b/hald/create_cache.c |
29 |
@@ -305,15 +305,17 @@ static void remember_jump_position(struct fdi_context *fdi_ctx) |
30 |
static void set_jump_position(struct fdi_context *fdi_ctx) |
31 |
{ |
32 |
off_t offset; |
33 |
+ u_int32_t offset32; |
34 |
|
35 |
if (fdi_ctx->depth <= 0) |
36 |
DIE(("Rule depth underrun")); |
37 |
|
38 |
fdi_ctx->depth--; |
39 |
offset = RULES_ROUND(lseek(fdi_ctx->cache_fd, 0, SEEK_END)); |
40 |
+ offset32 = (u_int32_t)offset; |
41 |
pad32_write(fdi_ctx->cache_fd, |
42 |
fdi_ctx->match_at_depth[fdi_ctx->depth] + offsetof(struct rule, jump_position), |
43 |
- &offset, sizeof(fdi_ctx->rule.jump_position)); |
44 |
+ &offset32, sizeof(fdi_ctx->rule.jump_position)); |
45 |
|
46 |
if (haldc_verbose) |
47 |
HAL_INFO(("modify rule=0x%08x, set jump to 0x%08x", |
48 |
-- |
49 |
1.6.0.2 |