FreeBSD Bugzilla – Attachment 83123 Details for
Bug 118794
[patch] french/gfaim unbreak fix build with GCC 4.2 + adopt maintainship
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
_gfaim.diff
_gfaim.diff (text/plain), 2.26 KB, created by
Pietro Cerutti
on 2007-12-17 21:50:01 UTC
(
hide
)
Description:
_gfaim.diff
Filename:
MIME Type:
Creator:
Pietro Cerutti
Created:
2007-12-17 21:50:01 UTC
Size:
2.26 KB
patch
obsolete
>--- Makefile.orig 2007-12-17 22:03:53.000000000 +0100 >+++ Makefile 2007-12-17 22:13:54.000000000 +0100 >@@ -9,10 +9,11 @@ > PORTVERSION= 0.30 > PORTREVISION= 3 > CATEGORIES= french >-MASTER_SITES= http://sheepkiller.nerim.net/ports/${PORTNAME}/ \ >+MASTER_SITES= http://freeperso.free.fr/ \ >+ http://sheepkiller.nerim.net/ports/${PORTNAME}/ \ > http://www.cultdeadsheep.org/FreeBSD/ports/download/distfiles/ > >-MAINTAINER= ports@FreeBSD.org >+MAINTAINER= gahr@gahr.ch > COMMENT= Gfaim est un logiciel de recherche de recettes de cuisine > > USE_X_PREFIX= yes >@@ -29,10 +30,4 @@ > MAKE_ENV+= NOPORTDOCS=yes > .endif > >-.include <bsd.port.pre.mk> >- >-.if ${OSVERSION} >= 700042 >-BROKEN= Broken with gcc 4.2 >-.endif >- >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >--- /dev/null 2007-12-17 22:37:23.000000000 +0100 >+++ files/patch-gfaim.c 2007-12-17 22:37:43.000000000 +0100 >@@ -0,0 +1,46 @@ >+--- gfaim.c.orig 2000-11-21 20:58:42.000000000 +0100 >++++ gfaim.c 2007-12-17 22:37:41.000000000 +0100 >+@@ -1142,7 +1142,7 @@ >+ champs=g_strsplit(buf,":",0); >+ >+ /*le numero de la recette*/ >+- plist[i].numero=atoi(champs[0]); >++ plist[i].numero= atoi(champs[0]); >+ >+ /*le nom de la recette*/ >+ strcpy(buffer,champs[1]); >+@@ -1188,7 +1188,7 @@ >+ >+ /*recherche de rlibelle dans buf*/ >+ >+- (int *) loc = strcasestr(buf,rlibelle); >++ loc = strcasestr(buf,rlibelle); >+ >+ /* si c'est zero je passe*/ >+ if (loc != NULL) >+@@ -1203,7 +1203,7 @@ >+ >+ gtk_clist_append( (GtkCList *) data,texte[0]); >+ /*accroche numero au titre de la recette comme index*/ >+- gtk_clist_set_row_data(GTK_CLIST(liste),ligne,(int *) plist[k].numero); >++ gtk_clist_set_row_data(GTK_CLIST(liste),ligne, &plist[k].numero); >+ ligne++; >+ g_free(label); >+ >+@@ -1242,12 +1242,12 @@ >+ { >+ gchar *text = NULL; >+ >+- int position; >++ int *position; >+ >+ /* renseigne les variables de la position de la recette */ >+- (int *) position=gtk_clist_get_row_data(GTK_CLIST(liste),row); >+- vdebut=plist[position].rdebut; >+- vfin=plist[position].rfin; >++ position=gtk_clist_get_row_data(GTK_CLIST(liste),row); >++ vdebut=plist[*position].rdebut; >++ vfin=plist[*position].rfin; >+ >+ /*affiche la recette*/ >+ charge_recette(vdebut,vfin);
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 118794
: 83123