summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald van Dijk <truedfx@gentoo.org>2007-03-22 20:49:32 +0000
committerHarald van Dijk <truedfx@gentoo.org>2007-03-22 20:49:32 +0000
commitc334d1786c0ecab48159634aafbbc1b859f43d18 (patch)
treec2dd0bece701376062a556be8e4ff111dc3df202 /dev-lang/lazarus
parentprune old release (diff)
downloadgentoo-2-c334d1786c0ecab48159634aafbbc1b859f43d18.tar.gz
gentoo-2-c334d1786c0ecab48159634aafbbc1b859f43d18.tar.bz2
gentoo-2-c334d1786c0ecab48159634aafbbc1b859f43d18.zip
Avoid storing pointers in 32-bit variables on amd64
(Portage version: 2.1.2.2)
Diffstat (limited to 'dev-lang/lazarus')
-rw-r--r--dev-lang/lazarus/ChangeLog6
-rw-r--r--dev-lang/lazarus/files/lazarus-0.9.20-lcl-handle.patch25
-rw-r--r--dev-lang/lazarus/lazarus-0.9.20-r1.ebuild3
3 files changed, 32 insertions, 2 deletions
diff --git a/dev-lang/lazarus/ChangeLog b/dev-lang/lazarus/ChangeLog
index f8e0a52a94aa..75ab42469125 100644
--- a/dev-lang/lazarus/ChangeLog
+++ b/dev-lang/lazarus/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-lang/lazarus
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/ChangeLog,v 1.12 2007/03/10 08:44:37 truedfx Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/ChangeLog,v 1.13 2007/03/22 20:49:32 truedfx Exp $
+
+ 22 Mar 2007; Harald van Dijk <truedfx@gentoo.org>
+ +files/lazarus-0.9.20-lcl-handle.patch, lazarus-0.9.20-r1.ebuild:
+ Avoid storing pointers in 32-bit variables on amd64
*lazarus-0.9.20-r1 (10 Mar 2007)
diff --git a/dev-lang/lazarus/files/lazarus-0.9.20-lcl-handle.patch b/dev-lang/lazarus/files/lazarus-0.9.20-lcl-handle.patch
new file mode 100644
index 000000000000..772face4a88c
--- /dev/null
+++ b/dev-lang/lazarus/files/lazarus-0.9.20-lcl-handle.patch
@@ -0,0 +1,25 @@
+ If LCLType is not included, then THandle is System.THandle
+ rather than LCLType.THandle. System.THandle is 32 bits wide.
+
+--- lazarus/lcl/interfaces/gtk/gtkwsdialogs.pp
++++ lazarus/lcl/interfaces/gtk/gtkwsdialogs.pp
+@@ -29,7 +29,7 @@
+ uses
+ {$IFDEF GTK2} Gtk2, Glib2, gdk2, {$ELSE} Gtk, gdk, Glib, {$ENDIF}
+ SysUtils, Classes, Controls, LMessages, InterfaceBase, graphics,
+- Dialogs, WSDialogs, WSLCLClasses, gtkint, gtkproc, gtkwscontrols;
++ LCLType, Dialogs, WSDialogs, WSLCLClasses, gtkint, gtkproc, gtkwscontrols;
+
+ type
+
+--- lazarus/lcl/widgetset/wsdialogs.pp
++++ lazarus/lcl/widgetset/wsdialogs.pp
+@@ -44,7 +44,7 @@
+ // To get as little as posible circles,
+ // uncomment only when needed for registration
+ ////////////////////////////////////////////////////
+- Dialogs,
++ LCLType, Dialogs,
+ ////////////////////////////////////////////////////
+ WSLCLClasses, WSControls;
+
diff --git a/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild b/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild
index 458546d1aaf5..594949908681 100644
--- a/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild
+++ b/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild,v 1.1 2007/03/10 08:44:37 truedfx Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/lazarus-0.9.20-r1.ebuild,v 1.2 2007/03/22 20:49:32 truedfx Exp $
inherit eutils
@@ -35,6 +35,7 @@ src_unpack() {
cd "${S}"
epatch "${FILESDIR}"/${P}-lclintf.patch
+ epatch "${FILESDIR}"/${P}-lcl-handle.patch
epatch "${T}"/fpcsrc.patch
}