aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2008-09-16 00:28:18 +0800
committergahr <gahr@FreeBSD.org>2008-09-16 00:28:18 +0800
commitebb237220270413ee1d5de09cda6532d53ebbcda (patch)
treeec9c10431effcc3b255ce19c2bbb21933495e219
parent03adfbf1b86851fcb4d66d3f2d60edb6470cc185 (diff)
downloadfreebsd-ports-gnome-ebb237220270413ee1d5de09cda6532d53ebbcda.tar.gz
freebsd-ports-gnome-ebb237220270413ee1d5de09cda6532d53ebbcda.tar.zst
freebsd-ports-gnome-ebb237220270413ee1d5de09cda6532d53ebbcda.zip
- Fix build on sparc64
- Bump PORTREVISION Approved by: portmgr (erwin)
-rw-r--r--x11-wm/afterstep-stable/Makefile2
-rw-r--r--x11-wm/afterstep-stable/files/patch-src::ASDocGen::xmlproc.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/x11-wm/afterstep-stable/Makefile b/x11-wm/afterstep-stable/Makefile
index dd16bf2ef7d6..b1ee683088b2 100644
--- a/x11-wm/afterstep-stable/Makefile
+++ b/x11-wm/afterstep-stable/Makefile
@@ -7,7 +7,7 @@
PORTNAME= afterstep
PORTVERSION= 2.2.8
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= x11-wm afterstep
MASTER_SITES= ftp://ftp.afterstep.org/stable/ \
${MASTER_SITE_SOURCEFORGE}
diff --git a/x11-wm/afterstep-stable/files/patch-src::ASDocGen::xmlproc.c b/x11-wm/afterstep-stable/files/patch-src::ASDocGen::xmlproc.c
new file mode 100644
index 000000000000..7fdea4ce4c55
--- /dev/null
+++ b/x11-wm/afterstep-stable/files/patch-src::ASDocGen::xmlproc.c
@@ -0,0 +1,14 @@
+--- src/ASDocGen/xmlproc.c.orig 2008-09-15 15:54:38.000000000 +0000
++++ src/ASDocGen/xmlproc.c 2008-09-15 16:00:20.000000000 +0000
+@@ -504,9 +504,10 @@
+ char *target = NULL, *target2 ;
+ char *term = NULL, *term2 ;
+ char *ptr = &(state->dest_file[strlen(state->dest_file)-4]);
++ size_t curr_url_anchor_len = state->curr_url_anchor ? strlen(state->curr_url_anchor) : 0;
+ if( state->doc_type == DocType_PHP && *ptr == '.')
+ *ptr = '\0' ;
+- target = safemalloc( strlen( state->dest_file)+5+1+strlen(state->curr_url_anchor)+1);
++ target = safemalloc( strlen( state->dest_file)+5+1+curr_url_anchor_len+1);
+ sprintf( target, "%s#%s", state->dest_file, state->curr_url_anchor );
+ if( state->doc_type == DocType_PHP && *ptr == '\0' )
+ *ptr = '.' ;