FreeBSD Bugzilla – Attachment 146383 Details for
Bug 193073
[PATCH]: devel/anjuta broken for version 2.32.1.1_13: autogen 5 not found
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
New patch file for the anjuta port
patch-plugins__project-wizard__autogen.c (text/x-csrc), 1.02 KB, created by
Jimmy Kelley
on 2014-08-27 17:33:46 UTC
(
hide
)
Description:
New patch file for the anjuta port
Filename:
MIME Type:
Creator:
Jimmy Kelley
Created:
2014-08-27 17:33:46 UTC
Size:
1.02 KB
patch
obsolete
>--- ./plugins/project-wizard/autogen.c.orig 2010-11-27 10:47:30.000000000 -0600 >+++ ./plugins/project-wizard/autogen.c 2014-08-27 09:20:36.000000000 -0500 >@@ -99,15 +99,28 @@ > gchar* ptr; > > /* Check autogen */ >- if (strstr(output, "The Automated Program Generator") == NULL) return FALSE; >+ if (strstr(output, "The Automated Program Generator") != NULL) { > >- /* Get version number */ >- ptr = strstr(output, "Ver. "); >- if (ptr == NULL) return FALSE; >- ptr += 5; >- sscanf(ptr,"%d.%d.%d", &ver[0], &ver[1], &ver[2]); >+ /* Get version number */ >+ ptr = strstr(output, "Ver. "); >+ if (ptr == NULL) return FALSE; >+ ptr += 5; >+ sscanf(ptr,"%d.%d.%d", &ver[0], &ver[1], &ver[2]); > >- return (ver[0] == 5); >+ return (ver[0] == 5); >+ } >+ else if (strstr(output, "AutoGen") != NULL) { >+ gchar* end = output; >+ while (*end != '\0' && *end != '\n') >+ end++; >+ end--; >+ while (isdigit(*end) || *end == '.') >+ end--; >+ end++; >+ return (atoi(end) == 5); >+ } >+ >+ return FALSE; > } > > return FALSE;
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 Raw
Actions:
View
Attachments on
bug 193073
: 146383