diff options
author | danw <danw> | 2004-05-17 01:17:46 +0000 |
---|---|---|
committer | danw <danw> | 2004-05-17 01:17:46 +0000 |
commit | 84f07502b1fa30d2941cafb8cb663dc9b981e25d (patch) | |
tree | 6b4ab76316d47ff0df8bd5f232d9faa77ba2bb40 /x11/gdm/patches | |
parent | 604657c5d31d45d6fc20230dce867e80874c5ca2 (diff) | |
download | pkgsrc-84f07502b1fa30d2941cafb8cb663dc9b981e25d.tar.gz |
darwin build fixes
Diffstat (limited to 'x11/gdm/patches')
-rw-r--r-- | x11/gdm/patches/patch-aa | 38 | ||||
-rw-r--r-- | x11/gdm/patches/patch-af | 113 | ||||
-rw-r--r-- | x11/gdm/patches/patch-ag | 20 |
3 files changed, 165 insertions, 6 deletions
diff --git a/x11/gdm/patches/patch-aa b/x11/gdm/patches/patch-aa index 577f947c930..19bc1bc6ee7 100644 --- a/x11/gdm/patches/patch-aa +++ b/x11/gdm/patches/patch-aa @@ -1,8 +1,34 @@ -$NetBSD: patch-aa,v 1.7 2004/04/02 15:17:43 jmmv Exp $ +$NetBSD: patch-aa,v 1.8 2004/05/17 01:17:46 danw Exp $ ---- configure.orig 2004-03-15 19:38:10.000000000 +0100 +--- configure.orig Sun Apr 11 21:53:01 2004 +++ configure -@@ -24803,6 +24803,7 @@ VRFY="verify-crypt" +@@ -21237,7 +21237,8 @@ _ACEOF + cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ +-$ac_includes_default ++#include <sys/types.h> ++#include <sys/socket.h> + int + main () + { +@@ -21606,13 +21607,13 @@ echo "${ECHO_T}yes" >&6 + + echo "$as_me:$LINENO: checking DAEMON_CFLAGS" >&5 + echo $ECHO_N "checking DAEMON_CFLAGS... $ECHO_C" >&6 +- DAEMON_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= $GTK_REQUIRED"` ++ DAEMON_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= $GTK_REQUIRED libgnome-2.0"` + echo "$as_me:$LINENO: result: $DAEMON_CFLAGS" >&5 + echo "${ECHO_T}$DAEMON_CFLAGS" >&6 + + echo "$as_me:$LINENO: checking DAEMON_LIBS" >&5 + echo $ECHO_N "checking DAEMON_LIBS... $ECHO_C" >&6 +- DAEMON_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= $GTK_REQUIRED"` ++ DAEMON_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= $GTK_REQUIRED libgnome-2.0"` + echo "$as_me:$LINENO: result: $DAEMON_LIBS" >&5 + echo "${ECHO_T}$DAEMON_LIBS" >&6 + else +@@ -24803,6 +24804,7 @@ VRFY="verify-crypt" if test x$enable_authentication_scheme != xcrypt -a \ x$enable_authentication_scheme != xshadow ; then @@ -10,7 +36,7 @@ $NetBSD: patch-aa,v 1.7 2004/04/02 15:17:43 jmmv Exp $ for ac_header in security/pam_appl.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -@@ -24960,6 +24961,7 @@ fi +@@ -24960,6 +24962,7 @@ fi done fi @@ -18,7 +44,7 @@ $NetBSD: patch-aa,v 1.7 2004/04/02 15:17:43 jmmv Exp $ GDMASKPASS= EXTRA_GDMASKPASS_LIBS= -@@ -28015,6 +28017,10 @@ else +@@ -28015,6 +28018,10 @@ else X_SERVER="/usr/X11R6/bin/X" X_CONF_PATH="/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:/opt/X11R6/bin" fi @@ -29,7 +55,7 @@ $NetBSD: patch-aa,v 1.7 2004/04/02 15:17:43 jmmv Exp $ -@@ -28064,6 +28070,8 @@ prefix=$old_prefix +@@ -28064,6 +28071,8 @@ prefix=$old_prefix exec_prefix=$old_exec_prefix ac_config_files="$ac_config_files Makefile daemon/Makefile gui/Makefile gui/greeter/Makefile gui/greeter/themes/Makefile gui/greeter/themes/circles/Makefile gui/greeter/themes/happygnome/Makefile gui/greeter/themes/happygnome-list/Makefile gui/modules/Makefile gui/modules/AccessKeyMouseEvents gui/modules/AccessDwellMouseEvents utils/Makefile pixmaps/Makefile config/Makefile po/Makefile.in vicious-extensions/Makefile docs/Makefile docs/C/Makefile docs/de/Makefile docs/es/Makefile docs/fr/Makefile docs/it/Makefile docs/sv/Makefile docs/ja/Makefile docs/ko/Makefile docs/zh_CN/Makefile docs/zh_HK/Makefile docs/zh_TW/Makefile config/gdm.conf config/Xsession config/Default config/PreSession config/PostSession daemon/gdm gdm-stop gdm-restart gdm-safe-restart gdmsetup-security gdm.spec" diff --git a/x11/gdm/patches/patch-af b/x11/gdm/patches/patch-af new file mode 100644 index 00000000000..666578224f8 --- /dev/null +++ b/x11/gdm/patches/patch-af @@ -0,0 +1,113 @@ +$NetBSD: patch-af,v 1.10 2004/05/17 01:17:46 danw Exp $ + +http://bugzilla.gnome.org/show_bug.cgi?id=142338 + +--- vicious-extensions/ve-misc.c.orig Sun Apr 11 21:37:56 2004 ++++ vicious-extensions/ve-misc.c +@@ -342,106 +342,6 @@ ve_locale_exists (const char *loc) + return ret; + } + +-/** +- * ve_setenv: +- * @name: An environment variable name. +- * @value: The value to assign to the environment variable. +- * @overwrite: If %TRUE, overwrite the existing @name variable in the +- * environment. +- * +- * Adds "@name=@value" to the environment. Note that on systems without setenv, +- * this leaks memory so please do not use inside a loop or anything like that. +- * The semantics are the same as the glibc setenv() (if setenv() exists, it is +- * used). +- * +- * If @overwrite is %FALSE and the variable already exists in the environment, +- * then %0 is returned and the value is not changed. +- * +- * Returns: %0 on success, %-1 on error +- * +- **/ +-#if ! GLIB_CHECK_VERSION(2,3,1) +-int +-ve_setenv (const char *name, const char *value, gboolean overwrite) +-{ +-#if defined (HAVE_SETENV) +- return setenv (name, value != NULL ? value : "", overwrite); +-#else +- char *string; +- +- if (! overwrite && g_getenv (name) != NULL) { +- return 0; +- } +- +- /* This results in a leak when you overwrite existing +- * settings. It would be fairly easy to fix this by keeping +- * our own parallel array or hash table. +- */ +- string = g_strconcat (name, "=", value, NULL); +- return putenv (string); +-#endif +-} +-#endif +- +-/** +- * ve_unsetenv: +- * @name: The environment variable to unset. +- * +- * Description: Removes @name from the environment. +- * In case there is no native implementation of unsetenv, +- * this could cause leaks depending on the implementation of +- * environment. +- * +- **/ +-#if ! GLIB_CHECK_VERSION(2,3,1) +-void +-ve_unsetenv (const char *name) +-{ +-#if defined (HAVE_SETENV) +- unsetenv (name); +-#else +- extern char **environ; +- int i, len; +- +- len = strlen (name); +- +- /* Mess directly with the environ array. +- * This seems to be the only portable way to do this. +- */ +- for (i = 0; environ[i] != NULL; i++) { +- if (strncmp (environ[i], name, len) == 0 +- && environ[i][len + 1] == '=') { +- break; +- } +- } +- while (environ[i] != NULL) { +- environ[i] = environ[i + 1]; +- i++; +- } +-#endif +-} +-#endif +- +-/** +- * ve_clearenv: +- * +- * Description: Clears out the environment completely. +- * In case there is no native implementation of clearenv, +- * this could cause leaks depending on the implementation +- * of environment. +- * +- **/ +-void +-ve_clearenv (void) +-{ +-#ifdef HAVE_CLEARENV +- clearenv (); +-#else +- extern char **environ; +- environ[0] = NULL; +-#endif +-} +- + char * + ve_find_prog_in_path (const char *prog, const char *path) + { diff --git a/x11/gdm/patches/patch-ag b/x11/gdm/patches/patch-ag new file mode 100644 index 00000000000..d85360c1a1b --- /dev/null +++ b/x11/gdm/patches/patch-ag @@ -0,0 +1,20 @@ +$NetBSD: patch-ag,v 1.3 2004/05/17 01:17:46 danw Exp $ + +http://bugzilla.gnome.org/show_bug.cgi?id=142338 + +--- vicious-extensions/ve-misc.h.orig Sun Apr 11 21:38:02 2004 ++++ vicious-extensions/ve-misc.h +@@ -86,10 +86,10 @@ gboolean ve_locale_exists (const char *l + #define ve_setenv g_setenv + #define ve_unsetenv g_unsetenv + #else +-int ve_setenv (const char *name, const char *value, gboolean overwrite); +-void ve_unsetenv (const char *name); ++#define ve_setenv gnome_setenv ++#define ve_unsetenv gnome_unsetenv + #endif +-void ve_clearenv (void); ++#define ve_clearenv gnome_clearenv + + /* just like gnome_i18n_get_language_list (in fact if you link to + gnome it uses that */ |