aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-04-11 11:41:12 +0800
committerobrien <obrien@FreeBSD.org>2002-04-11 11:41:12 +0800
commit0181ccec23e2aeb5aebd14c621a2536497a650a0 (patch)
tree4ecbe2fe7bddb2c6cb7b0f46dcfe2819f5b1e193 /www
parentc4ee6900bba56c21cb434ac8f86d1557d185141a (diff)
downloadfreebsd-ports-gnome-0181ccec23e2aeb5aebd14c621a2536497a650a0.tar.gz
freebsd-ports-gnome-0181ccec23e2aeb5aebd14c621a2536497a650a0.tar.zst
freebsd-ports-gnome-0181ccec23e2aeb5aebd14c621a2536497a650a0.zip
Fix 'expr' usage and allow to compile with GCC 3.1.
Submitted by: Hye-Shik Chang <perky@fallin.lv> (maintainer)
Diffstat (limited to 'www')
-rw-r--r--www/apache2/files/patch-srclib:apr:build:ltmain.sh49
-rw-r--r--www/apache20/files/patch-srclib:apr:build:ltmain.sh49
-rw-r--r--www/apache21/files/patch-srclib:apr:build:ltmain.sh49
-rw-r--r--www/apache22/files/patch-srclib:apr:build:ltmain.sh49
4 files changed, 196 insertions, 0 deletions
diff --git a/www/apache2/files/patch-srclib:apr:build:ltmain.sh b/www/apache2/files/patch-srclib:apr:build:ltmain.sh
new file mode 100644
index 000000000000..db3756689e34
--- /dev/null
+++ b/www/apache2/files/patch-srclib:apr:build:ltmain.sh
@@ -0,0 +1,49 @@
+--- srclib/apr/build/ltmain.sh.orig Sun Apr 7 23:04:28 2002
++++ srclib/apr/build/ltmain.sh Sun Apr 7 23:05:33 2002
+@@ -1959,14 +1959,14 @@
+ if test $? -eq 0 ; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+- name="`expr $i : '-l\(.*\)'`"
++ name="`expr -- $i : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
++ if test `expr -- "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+@@ -1984,7 +1984,7 @@
+ # Error occured in the first compile. Let's try to salvage the situation:
+ # Compile a seperate program for each library.
+ for i in $deplibs; do
+- name="`expr $i : '-l\(.*\)'`"
++ name="`expr -- $i : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ $rm conftest
+@@ -1996,7 +1996,7 @@
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
++ if test `expr -- "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+@@ -2022,9 +2022,9 @@
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method
+- file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
++ file_magic_regex="`expr -- \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
+ for a_deplib in $deplibs; do
+- name="`expr $a_deplib : '-l\(.*\)'`"
++ name="`expr -- $a_deplib : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
diff --git a/www/apache20/files/patch-srclib:apr:build:ltmain.sh b/www/apache20/files/patch-srclib:apr:build:ltmain.sh
new file mode 100644
index 000000000000..db3756689e34
--- /dev/null
+++ b/www/apache20/files/patch-srclib:apr:build:ltmain.sh
@@ -0,0 +1,49 @@
+--- srclib/apr/build/ltmain.sh.orig Sun Apr 7 23:04:28 2002
++++ srclib/apr/build/ltmain.sh Sun Apr 7 23:05:33 2002
+@@ -1959,14 +1959,14 @@
+ if test $? -eq 0 ; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+- name="`expr $i : '-l\(.*\)'`"
++ name="`expr -- $i : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
++ if test `expr -- "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+@@ -1984,7 +1984,7 @@
+ # Error occured in the first compile. Let's try to salvage the situation:
+ # Compile a seperate program for each library.
+ for i in $deplibs; do
+- name="`expr $i : '-l\(.*\)'`"
++ name="`expr -- $i : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ $rm conftest
+@@ -1996,7 +1996,7 @@
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
++ if test `expr -- "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+@@ -2022,9 +2022,9 @@
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method
+- file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
++ file_magic_regex="`expr -- \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
+ for a_deplib in $deplibs; do
+- name="`expr $a_deplib : '-l\(.*\)'`"
++ name="`expr -- $a_deplib : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
diff --git a/www/apache21/files/patch-srclib:apr:build:ltmain.sh b/www/apache21/files/patch-srclib:apr:build:ltmain.sh
new file mode 100644
index 000000000000..db3756689e34
--- /dev/null
+++ b/www/apache21/files/patch-srclib:apr:build:ltmain.sh
@@ -0,0 +1,49 @@
+--- srclib/apr/build/ltmain.sh.orig Sun Apr 7 23:04:28 2002
++++ srclib/apr/build/ltmain.sh Sun Apr 7 23:05:33 2002
+@@ -1959,14 +1959,14 @@
+ if test $? -eq 0 ; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+- name="`expr $i : '-l\(.*\)'`"
++ name="`expr -- $i : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
++ if test `expr -- "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+@@ -1984,7 +1984,7 @@
+ # Error occured in the first compile. Let's try to salvage the situation:
+ # Compile a seperate program for each library.
+ for i in $deplibs; do
+- name="`expr $i : '-l\(.*\)'`"
++ name="`expr -- $i : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ $rm conftest
+@@ -1996,7 +1996,7 @@
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
++ if test `expr -- "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+@@ -2022,9 +2022,9 @@
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method
+- file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
++ file_magic_regex="`expr -- \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
+ for a_deplib in $deplibs; do
+- name="`expr $a_deplib : '-l\(.*\)'`"
++ name="`expr -- $a_deplib : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
diff --git a/www/apache22/files/patch-srclib:apr:build:ltmain.sh b/www/apache22/files/patch-srclib:apr:build:ltmain.sh
new file mode 100644
index 000000000000..db3756689e34
--- /dev/null
+++ b/www/apache22/files/patch-srclib:apr:build:ltmain.sh
@@ -0,0 +1,49 @@
+--- srclib/apr/build/ltmain.sh.orig Sun Apr 7 23:04:28 2002
++++ srclib/apr/build/ltmain.sh Sun Apr 7 23:05:33 2002
+@@ -1959,14 +1959,14 @@
+ if test $? -eq 0 ; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+- name="`expr $i : '-l\(.*\)'`"
++ name="`expr -- $i : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ libname=`eval \\$echo \"$libname_spec\"`
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
++ if test `expr -- "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+@@ -1984,7 +1984,7 @@
+ # Error occured in the first compile. Let's try to salvage the situation:
+ # Compile a seperate program for each library.
+ for i in $deplibs; do
+- name="`expr $i : '-l\(.*\)'`"
++ name="`expr -- $i : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ $rm conftest
+@@ -1996,7 +1996,7 @@
+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
+ set dummy $deplib_matches
+ deplib_match=$2
+- if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
++ if test `expr -- "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+@@ -2022,9 +2022,9 @@
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method
+- file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
++ file_magic_regex="`expr -- \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
+ for a_deplib in $deplibs; do
+- name="`expr $a_deplib : '-l\(.*\)'`"
++ name="`expr -- $a_deplib : '-l\(.*\)'`"
+ # If $name is empty we are operating on a -L argument.
+ if test "$name" != "" ; then
+ libname=`eval \\$echo \"$libname_spec\"`