FreeBSD Bugzilla – Attachment 103148 Details for
Bug 143027
[PATCH] x11/gmrun: fix build and amd64 runtime
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
gmrun-0.9.2_6.patch
gmrun-0.9.2_6.patch (text/plain), 3.20 KB, created by
Yuri Pankov
on 2010-01-20 18:40:06 UTC
(
hide
)
Description:
gmrun-0.9.2_6.patch
Filename:
MIME Type:
Creator:
Yuri Pankov
Created:
2010-01-20 18:40:06 UTC
Size:
3.20 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/ncvs/ports/x11/gmrun/Makefile,v >retrieving revision 1.30 >diff -u -u -r1.30 Makefile >--- Makefile 20 Jan 2010 14:52:04 -0000 1.30 >+++ Makefile 20 Jan 2010 18:24:24 -0000 >@@ -28,16 +28,8 @@ > PLIST_FILES= bin/gmrun %%DATADIR%%/gmrunrc > PLIST_DIRS= %%DATADIR%% > >-BROKEN= Does not build with recent GTK >-DEPRECATED= yes >-EXPIRATION_DATE= 2010-03-20 >- > .include <bsd.port.pre.mk> > >-post-patch: >- @${REINPLACE_CMD} -e '/select_executables_only(const struct dirent/ s,const ,,' \ >- ${WRKSRC}/src/gtkcompletionline.cc >- > post-install: > .if !defined(NOPORTDOCS) > @${MKDIR} ${DOCSDIR} >Index: files/patch-src__gtkcompletionline.cc >=================================================================== >RCS file: files/patch-src__gtkcompletionline.cc >diff -N files/patch-src__gtkcompletionline.cc >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-src__gtkcompletionline.cc 20 Jan 2010 18:24:24 -0000 >@@ -0,0 +1,50 @@ >+--- ./src/gtkcompletionline.cc.orig 2003-11-16 13:55:07.000000000 +0300 >++++ ./src/gtkcompletionline.cc 2010-01-20 21:25:08.847480188 +0300 >+@@ -39,6 +39,8 @@ >+ >+ /* GLOBALS */ >+ >++GtkType type = 0; >++ >+ /* signals */ >+ enum { >+ UNIQUE, >+@@ -76,14 +78,13 @@ >+ on_key_press(GtkCompletionLine *cl, GdkEventKey *event, gpointer data); >+ >+ /* get_type */ >+-guint gtk_completion_line_get_type(void) >++GtkType gtk_completion_line_get_type(void) >+ { >+- static guint type = 0; >+ if (type == 0) >+ { >+ GtkTypeInfo type_info = >+ { >+- "GtkCompletionLine", >++ (gchar *)"GtkCompletionLine", >+ sizeof(GtkCompletionLine), >+ sizeof(GtkCompletionLineClass), >+ (GtkClassInitFunc)gtk_completion_line_class_init, >+@@ -376,7 +377,7 @@ >+ return 0; >+ } >+ >+-int my_alphasort(const void* va, const void* vb) { >++int my_alphasort(const struct dirent** va, const struct dirent** vb) { >+ const struct dirent** a = (const struct dirent**)va; >+ const struct dirent** b = (const struct dirent**)vb; >+ >+@@ -551,10 +552,10 @@ >+ { >+ string text = gtk_entry_get_text(GTK_ENTRY(object)); >+ gint where = (gint)text.find("~"); >+- if (where != string::npos) { >++ if (where != (gint)string::npos) { >+ if ((where > 0) && (text[where - 1] != ' ')) >+ return 0; >+- if (where < text.size() - 1 && text[where + 1] != '/') { >++ if (where < (gint)text.size() - 1 && text[where + 1] != '/') { >+ // FIXME: Parse another user's home >+ } else { >+ string home = g_get_home_dir(); >Index: files/patch-src__gtkcompletionline.h >=================================================================== >RCS file: files/patch-src__gtkcompletionline.h >diff -N files/patch-src__gtkcompletionline.h >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-src__gtkcompletionline.h 20 Jan 2010 18:24:24 -0000 >@@ -0,0 +1,11 @@ >+--- ./src/gtkcompletionline.h.orig 2003-11-16 13:43:32.000000000 +0300 >++++ ./src/gtkcompletionline.h 2010-01-20 21:24:57.489100621 +0300 >+@@ -76,7 +76,7 @@ >+ void (* cancel)(GtkCompletionLine *cl); >+ }; >+ >+- guint gtk_completion_line_get_type(void); >++ GtkType gtk_completion_line_get_type(void); >+ GtkWidget *gtk_completion_line_new(); >+ >+ void gtk_completion_line_last_history_item(GtkCompletionLine*);
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 143027
: 103148