diff --git a/eclipse-bug-466499.patch b/eclipse-bug-466499.patch new file mode 100644 index 0000000..196f971 --- /dev/null +++ b/eclipse-bug-466499.patch @@ -0,0 +1,90 @@ +From a41f152c868984b41b73945f374966ad621c3e13 Mon Sep 17 00:00:00 2001 +From: Snjezana Peco +Date: Thu, 21 May 2015 10:41:39 +0200 +Subject: Bug 466499 - [GTK3] Path text not drawn in column of commit dialog + window + +Change-Id: I508432a354314ca11839e03fbac7b5adc44fff3c +Signed-off-by: Snjezana Peco +--- + .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java | 3 ++- + .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java | 17 ++++------------- + 2 files changed, 6 insertions(+), 14 deletions(-) + +diff --git a/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java b/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java +index e49865b..9b904ad 100644 +--- a/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java ++++ b/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java +@@ -2662,7 +2662,8 @@ void rendererRender (long /*int*/ cell, long /*int*/ cr, long /*int*/ window, lo + } + } + if (item != null) { +- if (OS.GTK_IS_CELL_RENDERER_TOGGLE (cell) || (OS.GTK_IS_CELL_RENDERER_PIXBUF (cell) && (columnIndex != 0 || (style & SWT.CHECK) == 0))) { ++ if (OS.GTK_IS_CELL_RENDERER_TOGGLE (cell) || ++ ( (OS.GTK_IS_CELL_RENDERER_PIXBUF (cell) || OS.GTK_VERSION > OS.VERSION(3, 13, 0)) && (columnIndex != 0 || (style & SWT.CHECK) == 0))) { + drawFlags = (int)/*64*/flags; + drawState = SWT.FOREGROUND; + long /*int*/ [] ptr = new long /*int*/ [1]; +diff --git a/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java b/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java +index 4d5448a..bc64152 100644 +--- a/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java ++++ b/eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java +@@ -2675,7 +2675,8 @@ void rendererRender (long /*int*/ cell, long /*int*/ cr, long /*int*/ window, lo + } + } + if (item != null) { +- if (OS.GTK_IS_CELL_RENDERER_TOGGLE (cell) || (OS.GTK_IS_CELL_RENDERER_PIXBUF (cell) && (columnIndex != 0 || (style & SWT.CHECK) == 0))) { ++ if (OS.GTK_IS_CELL_RENDERER_TOGGLE (cell) || ++ ( (OS.GTK_IS_CELL_RENDERER_PIXBUF (cell) || OS.GTK_VERSION > OS.VERSION(3, 13, 0)) && (columnIndex != 0 || (style & SWT.CHECK) == 0))) { + drawFlags = (int)/*64*/flags; + drawState = SWT.FOREGROUND; + long /*int*/ [] ptr = new long /*int*/ [1]; +@@ -2775,9 +2776,6 @@ void rendererRender (long /*int*/ cell, long /*int*/ cr, long /*int*/ window, lo + sendEvent (SWT.EraseItem, event); + drawForeground = null; + drawState = event.doit ? event.detail : 0; +- if (OS.GTK3 && OS.GTK_VERSION <= OS.VERSION(3, 14, 8)) { +- drawState |= SWT.FOREGROUND; +- } + drawFlags &= ~(OS.GTK_CELL_RENDERER_FOCUSED | OS.GTK_CELL_RENDERER_SELECTED); + if ((drawState & SWT.SELECTED) != 0) drawFlags |= OS.GTK_CELL_RENDERER_SELECTED; + if ((drawState & SWT.FOCUSED) != 0) drawFlags |= OS.GTK_CELL_RENDERER_FOCUSED; +@@ -2821,10 +2819,8 @@ void rendererRender (long /*int*/ cell, long /*int*/ cr, long /*int*/ window, lo + if (OS.GTK_IS_CELL_RENDERER_TEXT (cell)) { + if (hooks (SWT.PaintItem)) { + GdkRectangle rect = new GdkRectangle (); +- GdkRectangle clipRect = new GdkRectangle (); + long /*int*/ path = OS.gtk_tree_model_get_path (modelHandle, iter); + OS.gtk_tree_view_get_cell_area (handle, path, columnHandle, rect); +- OS.gtk_tree_view_get_background_area (handle, path, columnHandle, clipRect); + OS.gtk_tree_path_free (path); + // A workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=459117 + if (cr != 0 && OS.GTK_VERSION > OS.VERSION(3, 9, 0) && OS.GTK_VERSION <= OS.VERSION(3, 14, 8)) { +@@ -2877,12 +2873,9 @@ void rendererRender (long /*int*/ cell, long /*int*/ cr, long /*int*/ window, lo + gc.setFont (item.getFont (columnIndex)); + if ((style & SWT.MIRRORED) != 0) { + rect.x = getClientWidth () - rect.width - rect.x; +- clipRect.x = getClientWidth () - clipRect.width - clipRect.x; + } + +- if (!OS.GTK3){ +- gc.setClipping (clipRect.x, clipRect.y, clipRect.width, clipRect.height); +- } ++ gc.setClipping (rect.x, rect.y, rect.width, rect.height); + + Event event = new Event (); + event.item = item; +@@ -2893,9 +2886,7 @@ void rendererRender (long /*int*/ cell, long /*int*/ cr, long /*int*/ window, lo + event.width = contentWidth [0]; + event.height = rect.height; + event.detail = drawState; +- if (!OS.GTK3 || OS.GTK_VERSION > OS.VERSION(3, 14, 8)) { +- sendEvent (SWT.PaintItem, event); +- } ++ sendEvent(SWT.PaintItem, event); + gc.dispose(); + } + } +-- +cgit v0.11.2-4-g4a35 + diff --git a/eclipse.spec b/eclipse.spec index eb25713..feadb99 100644 --- a/eclipse.spec +++ b/eclipse.spec @@ -37,7 +37,7 @@ Epoch: 1 Summary: An open, extensible IDE Name: eclipse Version: %{eclipse_version} -Release: 12%{?dist} +Release: 13%{?dist} License: EPL URL: http://www.eclipse.org/ @@ -120,6 +120,9 @@ Patch22: e9b5adb1.diff Patch23: %{pkg_name}-javaxannotation-import.patch Patch24: %{pkg_name}-fix-tests.patch +# For https://bugzilla.redhat.com/show_bug.cgi?id=1255150 +Patch25: eclipse-bug-466499.patch + BuildRequires: rsync BuildRequires: make, gcc BuildRequires: glib2-devel @@ -238,6 +241,7 @@ Eclipse OSGi - Equinox %package platform Summary: Eclipse platform common files +Provides: %{name} = %{epoch}:%{eclipse_version}-%{release} Requires: ant-antlr ant-apache-bcel ant-apache-log4j ant-apache-oro ant-apache-regexp ant-apache-resolver ant-commons-logging ant-apache-bsf ant-commons-net Requires: ant-javamail ant-jdepend ant-junit ant-swing ant-jsch ant-testutil ant-apache-xalan2 ant-jmf Requires: apache-commons-el >= 1.0-23 @@ -290,7 +294,6 @@ developing software written in the Java programming language. %package pde Summary: Eclipse Plugin Development Environment -Provides: %{name} = %{epoch}:%{eclipse_version}-%{release} Requires: %{name}-platform = %{epoch}:%{eclipse_version}-%{release} Requires: %{name}-jdt = %{epoch}:%{eclipse_version}-%{release} Requires: objectweb-asm >= 5.0.3-1 @@ -370,6 +373,7 @@ pushd eclipse.platform.ui %patch23 -p1 popd %patch24 +%patch25 -p1 # Disable as many things as possible to make the build faster. We care only for Eclipse. %pom_disable_module platform.sdk eclipse.platform.releng.tychoeclipsebuilder @@ -579,7 +583,7 @@ sed -i -e "s|lucene.analysis|lucene.analyzers-common|g" eclipse.platform.releng. export MAVEN_OPTS="-Xmx1000m -XX:CompileCommand=exclude,org/eclipse/tycho/core/osgitools/EquinoxResolver,newState ${MAVEN_OPTS}" export JAVA_HOME=%{java_home} -%mvn_build -j -f -- -DforceContextQualifier=$(date +v%Y%m%d-%H00) \ +%mvn_build -j -f -- -DforceContextQualifier=$(date -u +v%Y%m%d-%H00) \ %if %{bootstrap} -P !api-generation,!build-docs \ %endif @@ -1099,6 +1103,11 @@ fi %{_libdir}/%{pkg_name}/plugins/org.eclipse.osgi.compatibility.state_* %changelog +* Thu Aug 20 2015 Mat Booth - 1:4.5.0-13 +- Add patch for rhbz#1255150 +- Always use UTC timestamps to prevent rpmdiff failures +- Move eclipse provides away from PDE rhbz#1253898 + * Tue Aug 11 2015 Mat Booth - 1:4.5.0-12 - Rebuild for new ECF