Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 3085 Details for
Bug 6496
Metacity 2.4.0 fails to build on Gentoo 1.4_beta for PPC
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for compilation issue
metacity-2.4.0-ppc.patch (text/plain), 1.25 KB, created by
Brad House
on 2002-08-14 23:46:18 UTC
(
hide
)
Description:
Fix for compilation issue
Filename:
MIME Type:
Creator:
Brad House
Created:
2002-08-14 23:46:18 UTC
Size:
1.25 KB
patch
obsolete
>diff -ur metacity-2.4.0/src/screen.c metacity-2.4.0-new/src/screen.c >--- metacity-2.4.0/src/screen.c Tue Aug 6 14:25:48 2002 >+++ metacity-2.4.0-new/src/screen.c Thu Aug 15 00:35:11 2002 >@@ -1334,6 +1334,7 @@ > } > } > >+ > void > meta_screen_calc_workspace_layout (MetaScreen *screen, > int num_workspaces, >@@ -1368,17 +1369,34 @@ > if (rows <= 0 && cols <= 0) > cols = num_workspaces; > >- if (rows <= 0) >- rows = num_workspaces / cols + ((num_workspaces % cols) > 0 ? 1 : 0); >- if (cols <= 0) >- cols = num_workspaces / rows + ((num_workspaces % rows) > 0 ? 1 : 0); >+ if (rows <= 0) { >+ /* fix PPC compile issue >+ * ICE occurs using embedded macro in calculation, split >+ * into if statements >+ */ >+ if ((num_workspaces % cols) > 0) { >+ rows = num_workspaces / cols + 1; >+ } else { >+ rows = num_workspaces / cols; >+ } >+ } >+ if (cols <= 0) { >+ /* another fix for PPC compile issue */ >+ if ((num_workspaces % rows) > 0) { >+ cols = num_workspaces / rows + 1; >+ } else { >+ cols = num_workspaces / rows; >+ } >+ } > > /* paranoia */ >+ > if (rows < 1) > rows = 1; > if (cols < 1) > cols = 1; > >- *r = rows; >- *c = cols; >+ r[0] = rows; >+ c[0] = cols; > } >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 6496
: 3085