diff options
author | bland <bland@FreeBSD.org> | 2003-09-03 11:18:55 +0800 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2003-09-03 11:18:55 +0800 |
commit | 97318940a30135bb8922f725894d5c928a9928a6 (patch) | |
tree | 5a67728228b55a8c67e68a97d6fee3ad9c30bc8c /devel/libgtop2 | |
parent | 552b1cb0d049dfb24d53ee6e40500b4aa9a8e4a8 (diff) | |
download | freebsd-ports-gnome-97318940a30135bb8922f725894d5c928a9928a6.tar.gz freebsd-ports-gnome-97318940a30135bb8922f725894d5c928a9928a6.tar.zst freebsd-ports-gnome-97318940a30135bb8922f725894d5c928a9928a6.zip |
Fix illegal function argument list referencing. This gets back
user process list in g-s-m on -CURRENT.
Diffstat (limited to 'devel/libgtop2')
-rw-r--r-- | devel/libgtop2/Makefile | 1 | ||||
-rw-r--r-- | devel/libgtop2/files/patch-lib::lib.pl | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/devel/libgtop2/Makefile b/devel/libgtop2/Makefile index a7ef8db4c943..692c0c48330d 100644 --- a/devel/libgtop2/Makefile +++ b/devel/libgtop2/Makefile @@ -7,6 +7,7 @@ PORTNAME= libgtop2 PORTVERSION= 2.0.4 +PORTREVISION= 1 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.0 diff --git a/devel/libgtop2/files/patch-lib::lib.pl b/devel/libgtop2/files/patch-lib::lib.pl new file mode 100644 index 000000000000..6e08ba030855 --- /dev/null +++ b/devel/libgtop2/files/patch-lib::lib.pl @@ -0,0 +1,62 @@ +--- lib/lib.pl.orig Mon Sep 1 20:17:45 2003 ++++ lib/lib.pl Wed Sep 3 11:53:12 2003 +@@ -116,6 +116,8 @@ + $param_decl = ''; + $send_size = ''; + $send_ptr = ''; ++ $send_buf_decl = ''; ++ $send_buf = ''; + $nr_params = (@params = split(/:/, $param_def, 9999)); + for ($param = 1; $param <= $nr_params; $param++) { + $list = $params[$param]; +@@ -135,28 +137,37 @@ + + $fields[$field]; + $call_param = $call_param . ', ' . $fields[$field]; +- if ($send_ptr eq '') { +- $send_ptr = "\n\tconst void *send_ptr = &" . +- +- $fields[$field] . ';'; +- } +- if ($send_size eq '') { +- $send_size = "\n\tconst size_t send_size =\n\t\t"; ++ if ($send_buf eq '') { ++ $send_size = "\n\tconst size_t send_size = "; ++ $send_ptr = "\n\tconst void *send_ptr = &"; ++ if ($nr_params == 1 && $count == 1) { ++ $send_size = $send_size . 'sizeof (' . $fields[$field] . ');'; ++ $send_ptr = $send_ptr . $fields[$field] . ';'; ++ last; ++ } ++ $send_size = $send_size . 'sizeof (send_buf);'; ++ $send_ptr = $send_ptr . 'send_buf;'; + } + else { +- $send_size = $send_size . ' + '; ++ $send_buf_decl = $send_buf_decl . ' '; ++ $send_buf = $send_buf . ', '; + } +- $send_size = $send_size . 'sizeof (' . $fields[$field] . ')'; ++ $send_buf_decl = $send_buf_decl . '' . $convert{$type} . ' ' . ++ ++ $fields[$field] . ';'; ++ $send_buf = $send_buf . '' . $fields[$field]; + } + } +- if ($send_size ne '') { +- $send_size = $send_size . ';'; +- } +- else { ++ if ($send_size eq '') { + $send_size = "\n\tconst size_t send_size = 0;"; + } + if ($send_ptr eq '') { + $send_ptr = "\n\tconst void *send_ptr = NULL;"; ++ } ++ if ($send_buf ne '') { ++ $send_ptr = "\n\tconst struct { " . $send_buf_decl . " } send_buf =\n" . ++ "\t\t{ " . $send_buf . ' };' . ++ $send_ptr; + } + } + |