metacity stable port information

Package: metacity
Version: 2.28.1
Revision: 2
Depends: <<
%N-shlibs (>= %v-%r),
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
dpkg-base-files,
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
gconf2 (>= 2.28.0-1),
gconf2-shlibs (>= 2.28.0-1),
glib2-shlibs (>= 2.22.0-1),
gtk+2-shlibs (>= 2.18.0-1),
libcanberra-gtk0-shlibs (>= 0.23-1),
libcanberra0-shlibs (>= 0.23-1),
libgettext8-shlibs,
libgtop2.0.7-shlibs (>= 2.28.0-1),
pango1-xft2-ft219 (>= 1.24.5-4),
startup-notification-shlibs (>= 0.8-1),
x11,
zenity (>= 2.26.0-1)
<<
BuildDepends: <<
atk1 (>= 1.28.0-1),
cairo (>= 1.8.8-3),
fink (>= 0.24.12-1),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
gconf2-dev (>= 2.28.0-1),
gettext-bin,
gettext-tools,
glib2-dev (>= 2.22.0-1),
glitz,
gnome-doc-utils (>= 0.18.1-1),
gtk+2-dev (>= 2.18.0-1),
intltool40,
libcanberra-gtk0 (>= 0.23-1),
libcanberra0 (>= 0.23-1),
libgettext8-dev,
libgtop2.0.7-dev (>= 2.28.0-1),
pango1-xft2-ft219-dev (>= 1.24.5-4),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
startup-notification-dev (>= 0.8-1),
x11-dev
<<
Source: mirror:gnome:sources/%n/2.28/%n-%v.tar.bz2
Source-MD5: cd444560753d63dec3ac5ee3bd061007
PatchFile: %n.patch
PatchFile-MD5: 5ff01be0e6d7e2e6cd35089a2b1dec8b
SetCPPFLAGS: -I%p/lib/fontconfig2/include
SetLDFLAGS: -L%p/lib/fontconfig2/lib
SetCFLAGS: -Os
ConfigureParams: <<
--libexecdir=%p/lib/%n --mandir=%p/share/man \
--enable-dependency-tracking \--disable-schemas-install \
--disable-static \
--disable-compositor --disable-render \
PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
<<
CompileScript: <<
F77=no ./configure %c
make
fink-package-precedence --prohibit-bdep %n-dev .
<<
InstallScript: make -j1 install DESTDIR="%d"
SplitOff: <<
Package: %N-shlibs
Depends: <<
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
gconf2-shlibs (>= 2.28.0-1),
glib2-shlibs (>= 2.22.0-1),
gtk+2-shlibs (>= 2.18.0-1),
libcanberra-gtk0-shlibs (>= 0.23-1),
libcanberra0-shlibs (>= 0.23-1),
libgettext8-shlibs,
libgtop2.0.7-shlibs (>= 2.28.0-1),
pango1-xft2-ft219-shlibs (>= 1.24.5-4),
startup-notification-shlibs (>= 0.8-1),
x11-shlibs,
zenity (>= 2.28.0-1)
<<
Replaces: %N (<< 2.6.1-1)
Description: Shared libraries from metacity
Files: lib/libmetacity-private.0*.dylib
Shlibs: %p/lib/libmetacity-private.0.dylib 1.0.0 %n (>= 2.7.1-1)
DocFiles: AUTHORS COPYING ChangeLog po/ChangeLog:ChangeLog.po NEWS README
<<
SplitOff2: <<
Package: %N-dev
Depends: %N (= %v-%r)
BuildDependsOnly: True
Replaces: %N (<< 2.6.1-1)
Description: Headers and libraries for developing with metacity
Files: <<
include
lib/lib*
lib/pkgconfig
<<
DocFiles: AUTHORS COPYING ChangeLog po/ChangeLog:ChangeLog.po NEWS README
<<
PostInstScript: <<
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %p/etc/gconf/schemas/metacity.schemas >/dev/null
<<
ConfFiles: %p/etc/gconf/schemas/metacity.schemas
DocFiles: AUTHORS COPYING ChangeLog po/ChangeLog:ChangeLog.po NEWS README
Description: GNOME2 default window manager
DescDetail: <<
Metacity is a simple window manager that integrates nicely with
GNOME 2.
<<
DescPackaging: <<
# Disable compositing manager because it requires x11 components
# we don't have. Needs small hack to make it doable. See:
# http://bugzilla.gnome.org/show_bug.cgi?id=560990
Seems buildable now with --disable-compositor --disable-render

Do we need to disable xrender and/or xrandr any more
stringently for portability among various x11 flavors?
<<
DescPort: <<
Recent glib doesn't publish -lintl, so pass it directly.
Needed in lots of places, so just pass it in main _LIBS to
everything

Uses libgthread directly, so must link against it directly.
See: https://bugzilla.gnome.org/show_bug.cgi?id=610766

Fix vuln: translatable string with no % fields passed to
function that can take format-string as first parameter.

Fix nonportable wait.h. See:
https://bugzilla.gnome.org/show_bug.cgi?id=598572
<<
License: GPL
Maintainer: The Gnome Core Team
Homepage: http://people.redhat.com/~hp/metacity/

metacity stable port .patch

diff -Nurd -x'*~' metacity-2.28.1.orig/configure metacity-2.28.1/configure
--- metacity-2.28.1.orig/configure 2010-01-25 18:57:11.000000000 -0500
+++ metacity-2.28.1/configure 2010-02-23 00:19:42.000000000 -0500
@@ -16060,7 +16060,7 @@
fi
fi

-METACITY_PC_MODULES='gtk+-2.0 >= 2.10.0 pango >= 1.2.0 libcanberra-gtk'
+METACITY_PC_MODULES='gtk+-2.0 >= 2.10.0 pango >= 1.2.0 libcanberra-gtk gthread-2.0'

# Check whether --enable-gconf was given.
if test "${enable_gconf+set}" = set; then
@@ -21135,8 +21135,8 @@

fi

-METACITY_LIBS="$METACITY_LIBS $XSYNC_LIBS $RANDR_LIBS $SHAPE_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lm"
-METACITY_MESSAGE_LIBS="$METACITY_MESSAGE_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
+METACITY_LIBS="$METACITY_LIBS $XSYNC_LIBS $RANDR_LIBS $SHAPE_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lm $INTLLIBS"
+METACITY_MESSAGE_LIBS="$METACITY_MESSAGE_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $INTLLIBS"
METACITY_WINDOW_DEMO_LIBS="$METACITY_WINDOW_DEMO_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
METACITY_PROPS_LIBS="$METACITY_PROPS_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"

diff -Nurd -x'*~' metacity-2.28.1.orig/src/core/keybindings.c metacity-2.28.1/src/core/keybindings.c
--- metacity-2.28.1.orig/src/core/keybindings.c 2010-01-21 11:09:25.000000000 -0500
+++ metacity-2.28.1/src/core/keybindings.c 2010-02-22 16:34:45.000000000 -0500
@@ -3334,7 +3334,7 @@
"No terminal command to run in response to "
"keybinding press\n");

- s = g_strdup_printf (_("No terminal command has been defined.\n"));
+ s = g_strdup_printf ("%s", _("No terminal command has been defined.\n"));
error_on_command (-1, NULL, s, screen->number, event->xkey.time);
g_free (s);

diff -Nurd -x'*~' metacity-2.28.1.orig/src/core/main.c metacity-2.28.1/src/core/main.c
--- metacity-2.28.1.orig/src/core/main.c 2010-01-21 11:09:25.000000000 -0500
+++ metacity-2.28.1/src/core/main.c 2010-02-22 21:50:17.000000000 -0500
@@ -58,7 +58,7 @@

#include
#include
-#include
+#include
#include
#include
#include
diff -Nurd -x'*~' metacity-2.28.1.orig/src/core/prefs.c metacity-2.28.1/src/core/prefs.c
--- metacity-2.28.1.orig/src/core/prefs.c 2010-01-22 16:36:19.000000000 -0500
+++ metacity-2.28.1/src/core/prefs.c 2010-02-22 16:34:45.000000000 -0500
@@ -1231,7 +1231,7 @@
{
first_disable = FALSE;

- meta_warning (_("Workarounds for broken applications disabled. "
+ meta_warning ("%s", _("Workarounds for broken applications disabled. "
"Some applications may not behave properly.\n"));
}
}
diff -Nurd -x'*~' metacity-2.28.1.orig/src/core/session.c metacity-2.28.1/src/core/session.c
--- metacity-2.28.1.orig/src/core/session.c 2010-01-21 11:09:25.000000000 -0500
+++ metacity-2.28.1/src/core/session.c 2010-02-22 16:34:45.000000000 -0500
@@ -1190,7 +1190,7 @@
{
g_set_error (error,
G_MARKUP_ERROR,
- G_MARKUP_ERROR_PARSE,
+ G_MARKUP_ERROR_PARSE, "%s",
_(" attribute seen but we already have the session ID"));
return;
}
@@ -1220,7 +1220,7 @@
{
g_set_error (error,
G_MARKUP_ERROR,
- G_MARKUP_ERROR_PARSE,
+ G_MARKUP_ERROR_PARSE, "%s",
_("nested tag"));
return;
}
diff -Nurd -x'*~' metacity-2.28.1.orig/src/ui/menu.c metacity-2.28.1/src/ui/menu.c
--- metacity-2.28.1.orig/src/ui/menu.c 2010-01-21 15:03:46.000000000 -0500
+++ metacity-2.28.1/src/ui/menu.c 2010-02-22 16:34:45.000000000 -0500
@@ -210,7 +210,7 @@
* a copy copy so we can have our wicked way with it.
*/
if (number == 10)
- new_name = g_strdup_printf (_("Workspace 1_0"));
+ new_name = g_strdup_printf ("%s", _("Workspace 1_0"));
else
new_name = g_strdup_printf (_("Workspace %s%d"),
number < 10 ? "_" : "",
diff -Nurd -x'*~' metacity-2.28.1.orig/src/ui/theme-parser.c metacity-2.28.1/src/ui/theme-parser.c
--- metacity-2.28.1.orig/src/ui/theme-parser.c 2010-01-21 11:09:25.000000000 -0500
+++ metacity-2.28.1/src/ui/theme-parser.c 2010-02-22 16:34:54.000000000 -0500
@@ -1109,7 +1109,7 @@
}
else if (alpha != NULL)
{
- set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
+ set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE, "%s",
_("You must specify a background for an alpha value to be meaningful"));
return;
}
@@ -1339,7 +1339,7 @@
if (!(info->layout->button_sizing == META_BUTTON_SIZING_LAST ||
info->layout->button_sizing == META_BUTTON_SIZING_FIXED))
{
- set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
+ set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE, "%s",
_("Cannot specify both \"button_width\"/\"button_height\" and \"aspect_ratio\" for buttons"));
return;
}
@@ -1353,7 +1353,7 @@
if (!(info->layout->button_sizing == META_BUTTON_SIZING_LAST ||
info->layout->button_sizing == META_BUTTON_SIZING_FIXED))
{
- set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
+ set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE, "%s",
_("Cannot specify both \"button_width\"/\"button_height\" and \"aspect_ratio\" for buttons"));
return;
}
@@ -1398,7 +1398,7 @@

if (info->layout->button_sizing != META_BUTTON_SIZING_LAST)
{
- set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
+ set_error (error, context, G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE, "%s",
_("Cannot specify both \"button_width\"/\"button_height\" and \"aspect_ratio\" for buttons"));
return;
}
@@ -3143,7 +3143,7 @@
if (info->op_list)
{
set_error (error, context,
- G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
+ G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE, "%s",
_("Can't have a two draw_ops for a element (theme specified a draw_ops attribute and also a element, or specified two elements)"));
return;
}
@@ -3181,7 +3181,7 @@
if (info->op_list)
{
set_error (error, context,
- G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE,
+ G_MARKUP_ERROR, G_MARKUP_ERROR_PARSE, "%s",
_("Can't have a two draw_ops for a