diff options
author | marcus <marcus@FreeBSD.org> | 2004-02-20 18:01:29 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-02-20 18:01:29 +0000 |
commit | 1ac907744d20f0e7aa25bc39716e7641bc2f1ef9 (patch) | |
tree | b85dd907a3b59af006d393f2288e89697f189ec3 /devel | |
parent | 965535af491ae5b6801ad6b12b55d386cfd75a6a (diff) | |
download | FreeBSD-ports-1ac907744d20f0e7aa25bc39716e7641bc2f1ef9.zip FreeBSD-ports-1ac907744d20f0e7aa25bc39716e7641bc2f1ef9.tar.gz |
Use two different approaches for 4.X and 5.X for the printf(size_t) problem.
Reported by: bento via kris
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gnome-build/Makefile | 10 | ||||
-rw-r--r-- | devel/gnome-build/files/current-src_backends_libgbf_am_gbf-am-project.c | 11 | ||||
-rw-r--r-- | devel/gnome-build/files/stable-src_backends_libgbf_am_gbf-am-project.c (renamed from devel/gnome-build/files/patch-src_backends_libgbf_am_gbf-am-project.c) | 0 | ||||
-rw-r--r-- | devel/gnomebuild/Makefile | 10 | ||||
-rw-r--r-- | devel/gnomebuild/files/current-src_backends_libgbf_am_gbf-am-project.c | 11 | ||||
-rw-r--r-- | devel/gnomebuild/files/stable-src_backends_libgbf_am_gbf-am-project.c (renamed from devel/gnomebuild/files/patch-src_backends_libgbf_am_gbf-am-project.c) | 0 |
6 files changed, 40 insertions, 2 deletions
diff --git a/devel/gnome-build/Makefile b/devel/gnome-build/Makefile index 8928fe4..64121df 100644 --- a/devel/gnome-build/Makefile +++ b/devel/gnome-build/Makefile @@ -27,4 +27,12 @@ INSTALLS_SHLIB= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib -lgnuregex" -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 500000 +EXTRA_PATCHES+= ${FILESDIR}/current-src_backends_libgbf_am_gbf-am-project.c +.else +EXTRA_PATCHES+= ${FILESDIR}/stable-src_backends_libgbf_am_gbf-am-project.c +.endif + +.include <bsd.port.post.mk> diff --git a/devel/gnome-build/files/current-src_backends_libgbf_am_gbf-am-project.c b/devel/gnome-build/files/current-src_backends_libgbf_am_gbf-am-project.c new file mode 100644 index 0000000..10ae4be --- /dev/null +++ b/devel/gnome-build/files/current-src_backends_libgbf_am_gbf-am-project.c @@ -0,0 +1,11 @@ +--- src/backends/libgbf_am/gbf-am-project.c.orig Fri May 2 06:12:51 2003 ++++ src/backends/libgbf_am/gbf-am-project.c Sat Jan 31 13:22:04 2004 +@@ -1750,7 +1750,7 @@ + + switch (status) { + case G_IO_STATUS_NORMAL: +- DEBUG (g_message ("wrote %d bytes", bytes_written)); ++ DEBUG (g_message ("wrote %zu bytes", bytes_written)); + + if (data->input.length < data->input.size) { + /* don't remove the source */ diff --git a/devel/gnome-build/files/patch-src_backends_libgbf_am_gbf-am-project.c b/devel/gnome-build/files/stable-src_backends_libgbf_am_gbf-am-project.c index 262756b..262756b 100644 --- a/devel/gnome-build/files/patch-src_backends_libgbf_am_gbf-am-project.c +++ b/devel/gnome-build/files/stable-src_backends_libgbf_am_gbf-am-project.c diff --git a/devel/gnomebuild/Makefile b/devel/gnomebuild/Makefile index 8928fe4..64121df 100644 --- a/devel/gnomebuild/Makefile +++ b/devel/gnomebuild/Makefile @@ -27,4 +27,12 @@ INSTALLS_SHLIB= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib -lgnuregex" -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 500000 +EXTRA_PATCHES+= ${FILESDIR}/current-src_backends_libgbf_am_gbf-am-project.c +.else +EXTRA_PATCHES+= ${FILESDIR}/stable-src_backends_libgbf_am_gbf-am-project.c +.endif + +.include <bsd.port.post.mk> diff --git a/devel/gnomebuild/files/current-src_backends_libgbf_am_gbf-am-project.c b/devel/gnomebuild/files/current-src_backends_libgbf_am_gbf-am-project.c new file mode 100644 index 0000000..10ae4be --- /dev/null +++ b/devel/gnomebuild/files/current-src_backends_libgbf_am_gbf-am-project.c @@ -0,0 +1,11 @@ +--- src/backends/libgbf_am/gbf-am-project.c.orig Fri May 2 06:12:51 2003 ++++ src/backends/libgbf_am/gbf-am-project.c Sat Jan 31 13:22:04 2004 +@@ -1750,7 +1750,7 @@ + + switch (status) { + case G_IO_STATUS_NORMAL: +- DEBUG (g_message ("wrote %d bytes", bytes_written)); ++ DEBUG (g_message ("wrote %zu bytes", bytes_written)); + + if (data->input.length < data->input.size) { + /* don't remove the source */ diff --git a/devel/gnomebuild/files/patch-src_backends_libgbf_am_gbf-am-project.c b/devel/gnomebuild/files/stable-src_backends_libgbf_am_gbf-am-project.c index 262756b..262756b 100644 --- a/devel/gnomebuild/files/patch-src_backends_libgbf_am_gbf-am-project.c +++ b/devel/gnomebuild/files/stable-src_backends_libgbf_am_gbf-am-project.c |